The Email Invoice endpoint extends the Trace AR Checkout suite by allowing integrators to generate payment requests directly to a customer's inbox, encompassing financial details, customer identification, and specific transaction behavior. It also allows for control over the checkout experience by defining how the payer can interact with the invoice, and manages the lifecycle of the invoiceusing an expiration timestamp. This feature provides a cohesive visual identity for merchant invoices, containing a secure link that seamlessly transitions the recipient to the hosted payment interface to complete their transaction.
Invoice
Create invoice
post /v3/invoice
Parameters
X-Integrator-Id
Type
stringMaximum Length
12Loading...
X-Permalinks
Type
stringMaximum Length
4Loading...
Request Schema
silent_post
Type
stringRange
1 to 2083 charactersExample
https://example.com/payment-responseLoading...
terms_conditions_link
Type
stringRange
1 to 2083 charactersExample
http://example.com/terms-redirect-linkLoading...
payment_approved_link
Type
stringRange
1 to 2083 charactersExample
http://example.com/payment-approved-linkLoading...
payment_declined_link
Type
stringRange
1 to 2083 charactersExample
http://example.com/payment-declined-linkLoading...
return_method
Type
stringDefault
HYPERLINKEnum
HYPERLINKLoading...
email_required
Type
booleanExample
trueLoading...
billing_address_required
Type
booleanExample
trueLoading...
csc_required
Type
booleanExample
trueLoading...
merchant_id required
Type
integerExample
12345Loading...
invoice_amount
Type
numberMinimum
0Loading...
is_amount_editable
Type
booleanLoading...
transaction_type required
Type
stringEnum
SALEAUTHORIZATIONCREATE_CUSTOMERMODIFY_CUSTOMERSALE_AND_CUSTOMERLoading...
invoice_number
Type
stringLoading...
is_invoice_number_editable
Type
booleanLoading...
expire_at
Type
stringLoading...
returning_customer_login
Type
booleanDefault
falseLoading...
customer_label
Type
stringLoading...
customer_id
Type
integerExample
12345671Loading...
send_email
Type
booleanDefault
falseLoading...
email_details
Type
objectLoading...
Example Request
Example Response
201 Successful Response
422 Validation Error
Get checkout URL
get /v3/invoice/checkout-link/{invoice_id}
Parameters
invoice_id required
Type
stringLoading...
merchant_id required
Type
integerLoading...
X-Integrator-Id
Type
stringMaximum Length
12Loading...
X-Permalinks
Type
stringMaximum Length
4Loading...
Example Response
200 Successful Response
422 Validation Error
Get invoice
get /v3/invoice/{invoice_id}
Parameters
invoice_id required
Type
stringLoading...
merchant_id required
Type
integerLoading...
include_attachment
Type
booleanDefault
falseLoading...
X-Integrator-Id
Type
stringMaximum Length
12Loading...
X-Permalinks
Type
stringMaximum Length
4Loading...
Example Response
200 Successful Response
422 Validation Error
Search invoices
post /v3/invoices/{merchant_id}
Parameters
merchant_id required
Type
integerLoading...
X-Integrator-Id
Type
stringMaximum Length
12Loading...
X-Permalinks
Type
stringMaximum Length
4Loading...
Request Schema
invoice_id
Type
stringExample
6ec0bd7f-11c0-43da-975e-2a8ad9ebae0bLoading...
status
Type
stringEnum
INITIATEDIN_PROGRESSEXPIREDCOMPLETEDINVALIDExample
PENDINGLoading...
start_date
Type
stringExample
2025-01-09T00:00:00Loading...
end_date
Type
stringExample
2025-01-11T00:00:00Loading...
Example Request
Example Response
200 Successful Response
422 Validation Error
Delete batch invoices
post /v3/invoice/batch/delete
Parameters
X-Integrator-Id
Type
stringMaximum Length
12Loading...
X-Permalinks
Type
stringMaximum Length
4Loading...
Request Schema
invoices required
Type
arrayLoading...
Example Request
Example Response
200 Successful Response
422 Validation Error