Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/data_source_shipping_options/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
pkintegerOptional

Filter by the exact identifier of a data source shipping option.

pk__instringOptional

Filter by a comma-separated list of identifiers. Returns only records whose identifier is in the list.

Example: 1,2,3
shipping_optionintegerOptional

Filter by the identifier of the bound shipping option. Returns every binding of that shipping option across all data sources.

data_sourceintegerOptional

Filter by the identifier of the bound data source. Returns every shipping option bound to that seller.

is_activebooleanOptional

Filter by active status.

sort_orderintegerOptional

Filter by exact sort order value.

descriptionstringOptional

Filter by exact description.

created_datestring · date-timeOptional

Filter by exact creation timestamp.

modified_datestring · date-timeOptional

Filter by exact last-modification timestamp.

Responses
200

A page of data source shipping options.

application/json

A paginated list of data source shipping options.

countintegerOptional

Total number of data source shipping options.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/data_source_shipping_options/
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?