ReturnGroupSerializer V1
Last updated: July 16, 2025
ReturnGroupSerializer
Field Name Type Description | ||
| integer | Unique identifier for the return group. |
| string | Name of the associated shop. |
| string | Platform-specific ID for the order. |
| string | Display name for the order. |
| string | Timestamp of when the order was created. |
| string | Sales channel associated with the order. |
| string | Name of the customer. |
| string | Email address of the customer. |
| string | Country of the customer. |
| string (optional) | Status of the shipment. |
| string (optional) | Carrier handling the shipment. |
| string (optional) | Tracking number for the shipment. |
| string | Method of return (e.g., mail, in-store). |
| string | Credit method used (e.g., refund, store credit). |
| boolean | Indicates whether the return is an exchange. |
| boolean | Indicates whether the exchange is instant. |
| MoneyBag | Subtotal for the return. |
| MoneyBag | Discounted subtotal for the return. |
| MoneyBag | Total tax for the return. |
| MoneyBag | Total amount for the return. |
| MoneyBag | Total amount refunded. |
| list of strings | List of order IDs associated with gift cards. |
| list of | List of return items included in this group. |
| string | Timestamp of when the return group was created (default: |
| string | Timestamp of when the return group was last updated (default: |
ReturnSerializer
Field Name Type Description | ||
| integer | Unique identifier for the return. |
| string | Status of the return. Possible values:
|
| string | Platform-specific ID for the product. |
| string | Name of the product. |
| string | Platform-specific ID for the product variant. |
| string | Name of the product variant. |
| string | Platform-specific ID for the line item. |
| string (optional) | Stock keeping unit for the product. |
| integer | Quantity of the item being returned (default: 1). |
| string (optional) | Status of the shipment. |
| string (optional) | Carrier handling the shipment. |
| string (optional) | Tracking number for the shipment. |
| string | Path to the return reason (e.g., category hierarchy). |
| string | Reason for the return. |
| string | Additional notes for the return. |
| MoneyBag | Subtotal for the return. |
| MoneyBag | Discounted subtotal for the return. |
| MoneyBag | Total tax for the return. |
| MoneyBag | Total amount for the return. |
| string | Timestamp of when the return was created (default: |
| string | Timestamp of when the return was last updated (default: |
MoneyBag
The MoneyBag type is used to represent monetary amounts in two contexts: shop currency and presentment currency.
Field Name Type Description | ||
| object | Contains |
| object | Contains |
Example
{
"shop_money": {
"amount": 148.0,
"currency_code": "USD"
},
"presentment_money": {
"amount": 148.0,
"currency_code": "USD"
}
}
Example Return Group JSON
{
"id": 1,
"shop_name": "Example Shop",
"order_platform_id": "ORD123",
"order_name": "#12345",
"order_created_at": "2025-01-01T12:00:00Z",
"order_sales_channel": "Online",
"customer_name": "John Doe",
"customer_email": "johndoe@example.com",
"country": "US",
"shipment_status": "Delivered",
"carrier": "UPS",
"tracking_number": "1Z999AA10123456784",
"return_method": "Mail",
"credit_method": "Store Credit",
"is_exchange": true,
"is_instant_exchange": false,
"return_subtotal": {
"shop_money": {
"amount": 100.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 100.00,
"currency_code": "USD"
}
},
"return_discounted_subtotal": {
"shop_money": {
"amount": 90.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 90.00,
"currency_code": "USD"
}
},
"return_tax_total": {
"shop_money": {
"amount": 10.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 10.00,
"currency_code": "USD"
}
},
"return_total": {
"shop_money": {
"amount": 100.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 100.00,
"currency_code": "USD"
}
},
"total_refunded": {
"shop_money": {
"amount": 50.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 50.00,
"currency_code": "USD"
}
},
"gift_card_order_ids": ["GFT123"],
"returns": [
{
"id": 101,
"status": "Pending",
"product_platform_id": "PROD001",
"product_name": "T-Shirt",
"variant_platform_id": "VAR001",
"variant_name": "Large / Blue",
"line_item_platform_id": "LINE001",
"sku": "SKU001",
"quantity": 1,
"return_reason_path": "Clothing > Defective",
"return_reason": "Torn seam",
"return_note": "Visible damage",
"return_subtotal": {
"shop_money": {
"amount": 50.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 50.00,
"currency_code": "USD"
}
},
"return_discounted_subtotal": {
"shop_money": {
"amount": 45.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 45.00,
"currency_code": "USD"
}
},
"return_tax_total": {
"shop_money": {
"amount": 5.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 5.00,
"currency_code": "USD"
}
},
"return_total": {
"shop_money": {
"amount": 50.00,
"currency_code": "USD"
},
"presentment_money": {
"amount": 50.00,
"currency_code": "USD"
}
},
"created_at": "2025-01-01T12:00:00Z",
"updated_at": "2025-01-01T12:30:00Z"
}
],
"created_at": "2025-01-01T12:00:00Z",
"updated_at": "2025-01-01T12:30:00Z"
}