API to create or update a text2pay invoice
Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Provide your bearer token in the Authorization header when making requests to protected resources.
Body
location Id / company Id based on altType
Alt Type
Invoice Name
Currency code
An array of items for the invoice.
Invoice Item Name
Invoice descriptions
Product Id
Price Id
Currency
Product amount
Product Quantity
Tax
Tax category id for calculating automatic tax
Setupfee item, only created when 1st invoice of recurring schedule is generated
Price type of the item
true if item amount is tax inclusive
Terms notes, Also supports HTML markups
Title for the invoice
Contact information to send the invoice to
Contact ID
Contact Name
Contact Phone Number
Contact Email
Secondary email addresses for the contact to be saved
Contact Company Name
Address Line 1
Address Line 2
City
State
Country Code
Postal Code
Custom Values
Invoice Number
Issue date in YYYY-MM-DD format
Due date in YYYY-MM-DD format
Email Address
cc to be kept in any sent out emails
bcc to be kept in any sent out emails
Contact Phone Number
Automatic taxes enabled for the Invoice
split invoice into payment schedule summing up to full invoice amount
Payment schedule type
payment schedule item
late fees configuration
Enable late fees
Late Fees Value
Late Fees Type
Late Fees Frequency
Late fees interval count
Late fees interval
Late Fees Grace
Late fees grace interval count
Late fees grace interval
Max late fees payable
10
tips configuration for the invoice
Percentage of tips allowed
Tips enabled status
prefix for invoice number
Payment Methods for Invoices
Payment Method
Enable Bank Debit Only
attachments for the invoice
Id of the file selected
Name of the file
URL of the file
Type of the file
Size of the file
id of invoice to update. If skipped, a new invoice will be created
include terms & notes with receipts
create invoice in draft mode or send mode
id of user generating invoice
Discount Value
Discount type
Product Ids on which discount is applicable
Business Logo URL
Business Name
Business Phone Number
Business Address
Address Line 1
Address Line 2
City
State
Country Code
Postal Code
Business Website Link
Custom Values
Headers
Access Token
API Version
Responses
200
Successful response
Body
Invoice Id
Invoice Status
Live Mode
Amount Paid
Location Id or Agency Id
Name of the invoice
Business Details
Invoice Number
Currency
Contact Details
Issue date in YYYY-MM-DD format
Due date in YYYY-MM-DD format
Discount
Invoice Items
Total Amount
Title
Total Amount Due
created at
updated at
Automatic taxes enabled for the Invoice
Is Automatic taxes calculated for the Invoice items
split invoice into payment schedule summing up to full invoice amount
preview url of generated invoice
422
Unprocessable Entity
Body
401
Unauthorized
Body
400
Bad Request