List Return Registration
Changed onReturn Registrations represent a return request from a customer. There might be multiple return registrations for a single order. There might also be multiple labels for one return registration, if requested by the customer.
A return registration is linked to a configuration bundle (field 'code'), multiple configurations might be available on one account (e.g. country-specific courier configurations).
Return registrations are created by the parcelLab return portal, or by the retailer via the parcelLab API.
Certain fields of the return registration are not mutable via requests on the registration resource, but require 'action' payloads to be submitted (e.g. 'AddLabel') to the 'mutate' action.
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
Query parameters
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Describes the method used to create this return registration
- self_registration - Self registration
- existing_order - Existing order
The pagination cursor value.
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Number of results to return per page.
Order results by any response field. Prefix with - for descending (e.g. -id).
Multiple values may be separated by commas.
Repeat this parameter to filter by multiple pretty return reasons.
Multiple values may be separated by commas.
- created - Created
- pending_payment - Pending Payment
- submitted - Submitted
- pending_approval - Pending Approval
- pending_label - Pending Label
- approved - Approved
- rejected - Rejected
- cancelled - Cancelled
- closed - Closed
- processing_failed - Processing Failed
- invalid - Invalid
- created - Created
- pending_payment - Pending Payment
- submitted - Submitted
- pending_approval - Pending Approval
- pending_label - Pending Label
- approved - Approved
- rejected - Rejected
- cancelled - Cancelled
- closed - Closed
- processing_failed - Processing Failed
- invalid - Invalid
Response
Example response
{
"next": "http://api.example.org/accounts/?cursor=cD00ODY%3D\"",
"previous": "http://api.example.org/accounts/?cursor=cj0xJnA9NDg3",
"results": [
{
"articles_order": [
{
"article_name": "Blue T-Shirt",
"line_item_id": "ITEM-001",
"product_id": "PROD-123",
"quantity": 2,
"sku": "TSHIRT-BLUE-M"
}
],
"articles_return": [
{
"article_name": "Blue T-Shirt",
"line_item_id": "ITEM-001",
"product_id": "PROD-123",
"quantity": 2,
"sku": "TSHIRT-BLUE-M"
}
],
"mutations": [
{
"items": [
{
"article_name": "Blue T-Shirt",
"line_item_id": "ITEM-001",
"product_id": "PROD-123",
"quantity": 2,
"sku": "TSHIRT-BLUE-M"
}
]
}
]
}
]
}Changes
- info
endpoint added
- info