Get invoice by ID
Get details of an invoice by invoice ID.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
Unique request ID
Path Parameters
System-generated invoice ID
Response
Invoice response
Sales channel ID
Currency type in which amount is invoiced
System-generated unique invoice ID
Total invoiced amount captured for the order
24-character system-generated shipment ID for which invoice is generated
Current invoice status. CREATED: Initially, the status is set as CREATED when invoice is generated automatically by fabric POSTED: When Invoice service sends an event notification to webhook service, status gets updated to POSTED. ACKNOWLEDGED: When retailers successfully acknowledge an invoice, status is changed to ACKNOWLEDGED.
CREATED
, POSTED
, ACKNOWLEDGED
Total tax amount invoiced
The current version of invoice document. The integer indicates the number of times the invoice has been updated by any operation.
Invoice acknowledgement time by merchant
Audit log
Time invoice was created
Customer details for the generated invoice
Merchant-defined unique invoice number. If omitted, this is generated by fabric’s sequence generator using Configuration service.
System-generated invoice status. CAPTURED: authorizedAmount
is successfully captured. SETTLED: authorizedAmount
is successfully settled with the customer, meaning the authorized amount is fully paid by the shopper or is returned to the shopper in case of return of the item. SETTLED_FAILED: Settlement for the authorizedAmount
fails for a reason. PARTIAL_SETTLED: authorizedAmount
is partially settled. For example, the shopper might have paid some amount of the total authorized amount.
CAPTURED
, SETTLED
, SETTLE_FAILED
, PARTIAL_SETTLED
System-updated invoice type. RETURN: Return invoices are generated in the event of order returns. SHIPPING: Shipping invoices are generated during standard invoice creation when an item is shipped. APPEASEMENT: These invoices are created when customers are provided appeasements to fulfill their needs. ORDER_DONATION: These invoices are created when order isn't purchased by customer, but is donated. ORDER_CARRY: These invoices are generated when it's a Cash N Carry order. EXCHANGE: Exchange invoices are generated in the event of order exchanges.
RETURN
, SHIPPING
, APPEASEMENT
, ORDER_DONATION
, ORDER_CARRY
, EXCHANGE
System-generated invoice creation time (UTC)
Contains location details regarding shipment if invoiceType= SHIPPING
Unique value to identify ship-from location. This must be the locationNumber
stored in the fabric Location service.
Invoice order details
Time invoice was emitted to third-party system for financial processing
Invoice retail sample
Order shipment details
Merchant-specified shipment number for which invoice is generated
Order shipment time (UTC)
Time invoice was updated
Was this page helpful?