PUT /sale-return-items/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
adjustmentReasonId integer(int32) | null
Adjustment reason
-
createdAt string(date-time)
Created at
-
externalId string | null
External
-
id integer(int32)
Id
-
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
-
updatedAt string(date-time)
Updated at
-
Vendor status
Values are
pending
,approved
, orrejected
. Default value ispending
. -
Warehouse
PUT
/sale-return-items/{id}.json
curl \
-X PUT http://api.example.com/v1/sale-return-items/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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}'
Request example
{
"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
}