Learn how to download the invoice PDF file for an order.
An invoice represents a document associated with a sale you provide to the shopper. The invoice itemizes the products or services rendered, including their cost, quantity, fees, duties, and taxes. It also establishes an obligation on the part of the shopper to pay you for those products and services.
Invoices can be especially useful when selling to other businesses. For business transactions, it's often customary to send customers an invoice, which they pay later, rather than immediately billing a credit card you have on file.
This topic explains how to download the invoice PDF file.
To retrieve the receipt for an invoice, send a GET /v1/orders/{orderId}/invoices/{receiptId} request to download the invoice by its unique invoice identifier (receiptId) for a specified order (orderId):
Replace {orderId} with the order's identifier and {receiptId} with the invoice's identifier. Ensure your 'authorization' header contains the correct basic auth credentials. You will receive a 200 OK response that includes the PDF file of the invoice:
Invoice PDF
Downloading the invoice PDF via a webhook notification