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

List product–category links

Returns a paginated list of product–category links.

Filter by id, product, or category. Order results with sort.

get
/product_category/
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
idintegerOptional

Filter by the link's own identifier. Exact match.

Example: 42
productintegerOptional

Filter by product identifier. Keeps only links for the given product.

Example: 100
categoryintegerOptional

Filter by category-node identifier. Keeps only links for the given category node.

Example: 5
Responses
200

A page of product–category links.

application/json

A paginated list of product–category links.

countintegerOptional

Total number of links matching the request.

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/product_category/
GET /api/v1/remote/1/product_category/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "pk": 42,
      "product": 100,
      "category": 5,
      "is_main": true
    }
  ]
}

Last updated

Was this helpful?