POST /purchase-returns.json
Body Required
-
adminNotes string | null
Admin notes
-
aftershipId string | null
Aftership
-
commercialInvoiceUrl string | null
Commercial invoice url
-
days integer(int32) | null
Days
-
durationTerms string | null
Duration terms
-
externalId string | null
External
-
Grams
Default value is
0
. -
intercomMessageId string | null
Intercom message
-
labelError string | null
Label error
-
labelFileFormat string | null
Label file format
Values are
png
orpdf
. -
Label refund
Default value is
false
. -
labelUrl string | null
Label url
-
Mute error
Default value is
false
. -
Paid
Default value is
0
. -
Payment status
Values are
notPaid
,partiallyPaid
, orpaid
. Default value isnotPaid
. -
Price
Default value is
0
. -
provider string | null
Provider
-
Purchase
-
quoteId string | null
Quote
-
Reference
-
serviceLevel string | null
Service level
-
serviceLevelTerms string | null
Service level terms
-
shippoLabelIds array[string] | null
Shippo label ids
-
Status
Values are
requested
,shipped
,received
, orcancelled
. Default value isrequested
. -
trackingCompany string | null
Tracking company
-
trackingNumber string | null
Tracking number
-
trackingStatus string | null
Tracking status
Values are
delivered
,failure
,pre_transit
,returned
,transit
, orunknown
. -
trackingStatusDate string(date-time) | null
Tracking status date
-
trackingStatusDetails string | null
Tracking status details
-
trackingUrl string | null
Tracking url
POST /purchase-returns.json
curl \
-X POST http://api.example.com/v1/purchase-returns.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"adminNotes":"string","aftershipId":"string","commercialInvoiceUrl":"string","days":42,"durationTerms":"string","externalId":"string","grams":0,"intercomMessageId":"string","labelError":"string","labelFileFormat":"png","labelRefund":false,"labelUrl":"string","muteError":false,"paid":0,"paymentStatus":"notPaid","price":0,"provider":"string","purchaseId":42,"quoteId":"string","reference":"string","serviceLevel":"string","serviceLevelTerms":"string","shippoLabelIds":["string"],"status":"requested","tags":["string"],"trackingCompany":"string","trackingNumber":"string","trackingStatus":"delivered","trackingStatusDate":"2024-05-04T09:42:00+00:00","trackingStatusDetails":"string","trackingUrl":"string"}'
Request example
{
"adminNotes": "string",
"aftershipId": "string",
"commercialInvoiceUrl": "string",
"days": 42,
"durationTerms": "string",
"externalId": "string",
"grams": 0,
"intercomMessageId": "string",
"labelError": "string",
"labelFileFormat": "png",
"labelRefund": false,
"labelUrl": "string",
"muteError": false,
"paid": 0,
"paymentStatus": "notPaid",
"price": 0,
"provider": "string",
"purchaseId": 42,
"quoteId": "string",
"reference": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"shippoLabelIds": [
"string"
],
"status": "requested",
"tags": [
"string"
],
"trackingCompany": "string",
"trackingNumber": "string",
"trackingStatus": "delivered",
"trackingStatusDate": "2024-05-04T09:42:00+00:00",
"trackingStatusDetails": "string",
"trackingUrl": "string"
}
Response examples (200)
{
"adminNotes": "string",
"aftershipId": "string",
"commercialInvoiceUrl": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"days": 42,
"durationTerms": "string",
"externalId": "string",
"grams": 0,
"id": 42,
"intercomMessageId": "string",
"labelError": "string",
"labelFileFormat": "png",
"labelRefund": false,
"labelUrl": "string",
"muteError": false,
"paid": 0,
"paymentStatus": "notPaid",
"price": 0,
"provider": "string",
"purchaseId": 42,
"quoteId": "string",
"reference": "string",
"serviceLevel": "string",
"serviceLevelTerms": "string",
"shippoLabelIds": [
"string"
],
"status": "requested",
"tags": [
"string"
],
"trackingCompany": "string",
"trackingNumber": "string",
"trackingStatus": "delivered",
"trackingStatusDate": "2024-05-04T09:42:00+00:00",
"trackingStatusDetails": "string",
"trackingUrl": "string",
"updatedAt": "2024-05-04T09:42:00+00:00"
}