POST /sale-return-items.json
Body Required
-
adjustmentReasonId integer(int32) | null
Adjustment reason
-
externalId string | null
External
-
Merchant status
Values are
pending
,approved
, orrejected
. Default value isapproved
. -
Price
Default value is
0
. -
purchaseItemId integer(int32) | null
Purchase item
-
Quantity
Default value is
0
. -
Quantity cancelled
Default value is
0
. -
Quantity refunded
Default value is
0
. -
Quantity written off
Default value is
0
. -
Sale item
-
Sale return
-
Vendor status
Values are
pending
,approved
, orrejected
. Default value ispending
. -
Warehouse
POST
/sale-return-items.json
curl \
-X POST http://api.example.com/v1/sale-return-items.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"adjustmentReasonId":42,"externalId":"string","merchantStatus":"approved","price":0,"purchaseItemId":42,"quantity":0,"quantityCancelled":0,"quantityRefunded":0,"quantityWrittenOff":0,"saleItemId":42,"saleReturnId":42,"vendorStatus":"pending","warehouseId":42}'
Request example
{
"adjustmentReasonId": 42,
"externalId": "string",
"merchantStatus": "approved",
"price": 0,
"purchaseItemId": 42,
"quantity": 0,
"quantityCancelled": 0,
"quantityRefunded": 0,
"quantityWrittenOff": 0,
"saleItemId": 42,
"saleReturnId": 42,
"vendorStatus": "pending",
"warehouseId": 42
}
Response examples (200)
{
"adjustmentReasonId": 42,
"createdAt": "2024-05-04T09:42:00+00:00",
"externalId": "string",
"id": 42,
"merchantStatus": "approved",
"price": 0,
"purchaseItemId": 42,
"quantity": 0,
"quantityCancelled": 0,
"quantityRefunded": 0,
"quantityWrittenOff": 0,
"saleItemId": 42,
"saleReturnId": 42,
"updatedAt": "2024-05-04T09:42:00+00:00",
"vendorStatus": "pending",
"warehouseId": 42
}