Receipt
Get receipts
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/receiptsRequest
Authentication
- authToken in header
Parameters
- offset in query - integerPagination offset default: 0
- limit in query with default of 10 - integerPagination limit default: 10
- orderBy in query with default of DESC - stringAllow: 'DESC', 'ASC'
Allowed: DESC | ASC
- sortBy in query with default of createdAt - stringThe response sorted by which field
Allowed: customerId | externalCustomerId | paymentId | total | transactionType | referenceNumber | createdAt | updatedAt
- q in query - stringYou can perform keyword queries on fields corresponding to the value of "searchBy" or, if "searchBy" is empty, on all fields supported by "searchBy".
- searchBy in query - stringThe response search by which field
Allowed: payerName | referenceNumber | customerId | externalId | externalCustomerId
- paymentStatus[] in query - arrayPayment processing status. 0 means ‘Incomplete’ status, 1 means ‘Awaiting Processing’ status, 2 means ‘Processing’ status, 3 means ‘Completed’ status, 4 means ‘Refunded' statusType: array[number]
Allowed: 0 | 1 | 2 | 3 | 4
example
Response
Body
codenumber
requireddataarray[object]
required
example-1
Get a receipt
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/receipts/{receiptId}Request
Authentication
- authToken in header
Parameters
- receiptId in path - stringrequiredThe unique ID of the receipt.
example
Response
Body
codenumber
requireddataobject
required
example-1
Delete a receipt
DELETE https://api-b2b.bigcommerce.com/api/v3/io/ip/receipts/{receiptId}Request
Authentication
- authToken in header
Parameters
- receiptId in path - stringrequiredThe unique ID of the receipt.
example
Response
Body
codenumber
Response code of a successful request.dataobject
example-1
Get all receipt lines
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/receipt-linesRequest
Authentication
- authToken in header
Parameters
- offset in query - integerPagination offset default: 0
- limit in query with default of 10 - integerPagination limit default: 10
- orderBy in query with default of DESC - stringAllow: 'DESC', 'ASC'
Allowed: DESC | ASC
- paymentStatus[] in query - arrayPayment processing status. 0 means ‘Incomplete’ status, 1 means ‘Awaiting Processing’ status, 2 means ‘Processing’ status, 3 means ‘Completed’ status, 4 means ‘Refunded' statusType: array[number]
Allowed: 0 | 1 | 2 | 3 | 4
- q in query - stringYou can perform keyword queries on fields corresponding to the value of "searchBy" or, if "searchBy" is empty, on all fields supported by "searchBy".
- searchBy in query - stringThe response search by which field
Allowed: customerId | externalId | externalCustomerId | payerName | payerCustomerId | referenceNumber | invoiceId
- sortBy in query with default of createdAt - stringThe response sorted by which field
Allowed: customerId | externalCustomerId | receiptId | invoiceId | amount | createdAt | updatedAt
example
Response
Body
codenumber
requireddataarray[object]
required
example-1
Get lines of a receipt
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/receipts/{receiptId}/linesRequest
Authentication
- authToken in header
Parameters
- receiptId in path - stringrequiredThe unique ID of the receipt.
- offset in query - integerPagination offset default: 0
- limit in query with default of 10 - integerPagination limit default: 10
- orderBy in query with default of DESC - stringAllow: 'DESC', 'ASC'
Allowed: DESC | ASC
- paymentStatus[] in query - arrayPayment processing status. 0 means ‘Incomplete’ status, 1 means ‘Awaiting Processing’ status, 2 means ‘Processing’ status, 3 means ‘Completed’ status, 4 means ‘Refunded' statusType: array[number]
Allowed: 0 | 1 | 2 | 3 | 4
- q in query - stringYou can perform keyword queries on fields corresponding to the value of "searchBy" or, if "searchBy" is empty, on all fields supported by "searchBy".
- searchBy in query - stringThe response search by which field
Allowed: customerId | externalId | externalCustomerId | payerName | payerCustomerId | referenceNumber | invoiceId
- sortBy in query with default of createdAt - stringThe response sorted by which field
Allowed: customerId | externalCustomerId | receiptId | invoiceId | amount | createdAt | updatedAt
example
Response
Body
codenumber
requireddataarray[object]
required
example-1
Get a receipt line detail
GET https://api-b2b.bigcommerce.com/api/v3/io/ip/receipts/{receiptId}/lines/{receiptLineId}Request
Authentication
- authToken in header
Parameters
- receiptId in path - stringrequiredThe unique ID of the receipt.
- receiptLineId in path - stringrequiredThe unique ID of the receipt line.
example
Response
Body
codenumber
requireddataobject
required
example-1
Delete a receipt line
DELETE https://api-b2b.bigcommerce.com/api/v3/io/ip/receipts/{receiptId}/lines/{receiptLineId}Request
Authentication
- authToken in header
Parameters
- receiptId in path - stringrequiredThe unique ID of the receipt.
- receiptLineId in path - stringrequiredThe unique ID of the receipt line.
example
Response
Body
codenumber
Response code of a successful request.dataobject