List data source shipping options
Returns a paginated list of data source shipping options. In each result the bound shipping option is expanded into an object and the bound data source into a summary object.
The list covers every binding regardless of its status, so deactivated records are included as well. Pass is_active=true to narrow the results to the bindings that are evaluated at checkout.
The sort parameter accepts the fields of the record itself: pk, is_active, calculator, rule, sort_order, shipping_option, data_source and description. Prefix the field with - to sort in descending order. shipping_option and data_source sort by the referenced identifier, not by name.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by the exact identifier of a data source shipping option.
Filter by a comma-separated list of identifiers. Returns only records whose identifier is in the list.
1,2,3Filter by the identifier of the bound shipping option. Returns every binding of that shipping option across all data sources.
Filter by the identifier of the bound data source. Returns every shipping option bound to that seller.
Filter by active status.
Filter by exact sort order value.
Filter by exact description.
Filter by exact creation timestamp.
Filter by exact last-modification timestamp.
A page of data source shipping options.
A paginated list of data source shipping options.
Total number of data source shipping options.
URL of the next page, or null if this is the last page.
URL of the previous page, or null if this is the first page.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
GET /api/v1/remote/1/data_source_shipping_options/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 12,
"is_active": true,
"calculator": {
"slug": "fixed-price-calculator",
"fixed_price": "14.99"
},
"rule": {
"slug": "any-rule",
"name": "Any Rule"
},
"sort_order": 0,
"shipping_option": {
"pk": 4,
"name": "Standard Shipping",
"slug": "standard-shipping",
"is_active": true,
"sort_order": 0,
"description": null,
"kwargs": {
"required_fields": []
},
"delivery_type": {
"value": "standard",
"label": "Standard Delivery"
}
},
"data_source": {
"pk": 2,
"name": "Main Warehouse",
"title": "Main Warehouse",
"slug": "main-warehouse",
"is_active": true
},
"description": "Flat rate for the main warehouse"
}
]
}Last updated
Was this helpful?

