StateSet One API Documentation
Orders
- GETList Orders
- GETRetrieve Order
- POSTAdd Item to Order
- POSTRemove Item from Order
- Add discount
- POSTRemove Discount
- POSTApply Promotion
- POSTRemove Promotion
- POSTCreate Order
- POSTCancel Order
- POSTHold Order
- POSTRelease Order
- POSTShip Order
- POSTReturn Order
- POSTRefund Order
- POSTExchange Order
- POSTSplit Order
- POSTMerge Order
- POSTTag Order
- POSTUpdate Order
Returns
Return Line Items
Warranty Line Items
Wholesale Orders
Inventory Items
Packing List
Packing List Items
Purchase Orders
Bill of Materials
Bill of Materials Line Item
Work Orders
Work Order Line Items
Cycle Counts
Manufacture Orders
Manufacture Order Line Items
Leads
Cases
Return Line Items
Get Return Line Item
This endpoint gets or creates a new return line item.
GET
/
v1
/
return_line_item
curl --location --request GET 'https://api.stateset.com/v1/return_line_item' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
}'
{
"data": {
"insert_return_line_items": {
"returning": [
{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"sku": "123456789",
"name": "Example Item",
"price": 100,
"condition": "New",
"serial_number": "123456789",
"amount": 1,
"return_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30"
}
]
}
}
}
Body
This is the id of the return line item.
Response
This is the id of the return line item.
This is the amount of the return line item.
This is the condition of the return line item.
This is the flat rate shipping of the return line item.
This is the name of the return line item.
This is the price of the return line item.
This is the id of the return associated with the line item.
This is the serial number of the return line item.
This is the sku of the return line item.
This is the tax refunded of the return line item.
curl --location --request GET 'https://api.stateset.com/v1/return_line_item' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
}'
{
"data": {
"insert_return_line_items": {
"returning": [
{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"sku": "123456789",
"name": "Example Item",
"price": 100,
"condition": "New",
"serial_number": "123456789",
"amount": 1,
"return_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30"
}
]
}
}
}
curl --location --request GET 'https://api.stateset.com/v1/return_line_item' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
}'
{
"data": {
"insert_return_line_items": {
"returning": [
{
"id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"sku": "123456789",
"name": "Example Item",
"price": 100,
"condition": "New",
"serial_number": "123456789",
"amount": 1,
"return_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30"
}
]
}
}
}