Invoices
The output contains the binary code for invoices in the PDF file format, Base64 encoded (Base64 is used to represent binary data in the ASCII string format).
Reference number for approved/paid orders.
1234567application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
invoice_BV12333333.pdfapplication/pdf;base64,BASE_64_DATAInvalid data
GET /rest/6.0/invoices/{OrderReference}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
{
"filename": "invoice_BV12333333.pdf",
"data": "application/pdf;base64,BASE_64_DATA"
}Queues an asynchronous resend of the shopper invoice email for an order. By default, the invoice is sent to the shopper's email address on file. Optionally, you can send it to a different recipient by providing the email property in the request body. The override applies to this send only and is never saved as the contact email of the order or of the account.
Only shopper invoices are supported (merchant invoices are not). The order must belong to the authenticated account.
The email is sent asynchronously, by a background worker. A successful response (202 Accepted) confirms only that the resend was queued, not that the email was delivered.
Available in API 6.0 over REST, JSON-RPC (resendInvoice) and SOAP (resendInvoice).
Reference number for approved/paid orders.
1234567application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"Recipient override for this send only. It is never saved as the contact email of the order or of the account. If omitted, the invoice is sent to the shopper's email address on file.
Accepted. The resend was queued. This does not confirm that the email was delivered.
Always "queued" when the resend was accepted.
queuedBad request
Not found
The resend could not be queued (for example, the queue is unavailable). A success is never returned in this case.
POST /rest/6.0/invoices/{OrderReference}/resend/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Content-Type: application/json
Content-Length: 35
{
"email": "jonathan.smith@mail.com"
}{
"status": "queued"
}The output contains the binary code for invoices in the PDF file format, Base64 encoded (Base64 is used to represent binary data in the ASCII string format).
Reference number for approved/paid orders.
1234567One of the following: sale or refunds.
refundsChoose a specific item out of multiple invoices.
0application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
invoice_BV12333333.pdfapplication/pdf;base64,BASE_64_DATAInvalid data
GET /rest/6.0/invoices/{OrderReference}/{Type}/{Count}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
{
"filename": "invoice_BV12333333.pdf",
"data": "application/pdf;base64,BASE_64_DATA"
}Last updated
Was this helpful?