Body
Required
-
Admin notes
-
Aftership
-
Commercial invoice url
-
Days
-
Duration terms
-
Grams
Default value is
0
. -
Intercom message
-
Inventory status
Values are
received
orpackedAway
. Default value isreceived
. -
Label error
-
Label file format
Values are
png
orpdf
. -
Label refund
Default value is
false
. -
Label url
-
Mute error
Default value is
false
. -
Price
Default value is
0
. -
Provider
-
Purchase
-
Quote
-
Reference
-
Service level
-
Service level terms
-
Shippo label ids
-
Tracking company
-
Tracking number
-
Tracking status
Values are
delivered
,failure
,pre_transit
,returned
,transit
, orunknown
. -
Tracking status date
-
Tracking status details
-
Tracking url
-
User
-
Xero
POST
/goods-receipts.json
curl \
--request POST 'http://api.example.com/v1/goods-receipts.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"adminNotes":"string","aftershipId":"string","commercialInvoiceUrl":"string","days":42,"durationTerms":"string","files":{},"grams":0,"intercomMessageId":"string","inventoryStatus":"received","labelError":"string","labelFileFormat":"png","labelFiles":{},"labelRefund":false,"labelUrl":"string","muteError":false,"price":0,"provider":"string","purchaseId":42,"quoteId":"string","reference":"string","serviceLevel":"string","serviceLevelTerms":"string","shippoLabelIds":["string"],"tags":["string"],"trackingCompany":"string","trackingNumber":"string","trackingStatus":"delivered","trackingStatusDate":"2025-05-04T09:42:00Z","trackingStatusDetails":"string","trackingUrl":"string","userId":42,"xeroId":"string"}'
Request examples
{
"adminNotes": "string",
"aftershipId": "string",
"commercialInvoiceUrl": "string",
"days": 42,
"durationTerms": "string",
"files": {},
"grams": 0,
"intercomMessageId": "string",
"inventoryStatus": "received",
"labelError": "string",
"labelFileFormat": "png",
"labelFiles": {},
"labelRefund": false,
"labelUrl": "string",
"muteError": false,
"price": 0,
"provider": "string",
"purchaseId": 42,
"quoteId": "string",
"reference": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"shippoLabelIds": [
"string"
],
"tags": [
"string"
],
"trackingCompany": "string",
"trackingNumber": "string",
"trackingStatus": "delivered",
"trackingStatusDate": "2025-05-04T09:42:00Z",
"trackingStatusDetails": "string",
"trackingUrl": "string",
"userId": 42,
"xeroId": "string"
}
Response examples (200)
{
"adminNotes": "string",
"aftershipId": "string",
"commercialInvoiceUrl": "string",
"createdAt": "2025-05-04T09:42:00Z",
"days": 42,
"durationTerms": "string",
"files": {},
"grams": 0,
"id": 42,
"intercomMessageId": "string",
"inventoryStatus": "received",
"labelError": "string",
"labelFileFormat": "png",
"labelFiles": {},
"labelRefund": false,
"labelUrl": "string",
"muteError": false,
"price": 0,
"provider": "string",
"purchaseId": 42,
"quoteId": "string",
"reference": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"shippoLabelIds": [
"string"
],
"tags": [
"string"
],
"trackingCompany": "string",
"trackingNumber": "string",
"trackingStatus": "delivered",
"trackingStatusDate": "2025-05-04T09:42:00Z",
"trackingStatusDetails": "string",
"trackingUrl": "string",
"updatedAt": "2025-05-04T09:42:00Z",
"userId": 42,
"xeroId": "string"
}