Get a customer invoice

Learn how to use the Vendor Direct Fulfillment Shipping API to get a customer invoice (India only).

Learn how to use the Vendor Direct Fulfillment Shipping API to get a customer invoice (India only). The getCustomerInvoice operation returns information about the customer invoice that you specify using the purchase order number. The response includes complete customer invoice information for that purchase order.

You can also use this API to get details for any customer invoice (in the time range of seven days from a rolling window of the last six months, after the vendor went live on the API).

📘

Note

This is a restricted operation and requires a Restricted Data Token (RDT) for authorization. Some operations require restrictions because they contain customer PII data. These operations require passing an additional security review. For more information on RDT, refer to the Tokens API guide.

The following diagram shows the integration workflow for returning a customer invoice:

The Direct Fulfillment integration workflow for retrieving a customer invoice.

Business requirements

What kind of customer invoices are available to download?

The customer invoice is a PDF file which is encoded in binary64 string format. All purchase orders for the India region should have a customer invoice created which should be sent with the shipment.

Prerequisites

To complete this tutorial, you need:

Get a customer invoice

📘

Note

This is a restricted operation and requires a Restricted Data Token (RDT) for authorization. Some operations require restrictions because they contain customer PII data. These operations require passing an additional security review. For more information on RDT, refer to the Tokens API guide.

To return a customer invoice, call the getCustomerInvoice operation.