Purchase Orders

List order items

Lists the items of all purchase orders of the team. Filter by purchase_order_id to get the items of one order.

get/api/v1/sa/inventory/purchase-order-items

Request

  • Base URL: https://app.sellerassistant.app (the document declares no server; this is the origin it was published from)
  • URL: https://app.sellerassistant.app/api/v1/sa/inventory/purchase-order-items
  • Auth: one of:
    • API key in query parameter api_key
    • API key in header X-Api-Key

Query parameters

filter[purchase_order_id][eq]integer
Example:42

Keeps the items of one order.

searchstring

A term the list looks for. Each list names the columns it reads.

sortstring
Example:-created_at

The column to order by: created_at, title, asin, sku, unit_cost, unit_count, total_cost, profit_fba. A minus sign in front of the name orders from the highest down. Without a sort the order is -created_at. Another name answers 400.

pageinteger
Example:1

The page to read. It starts at 1.

per_pageinteger
Example:25

The rows a page carries. The maximum is 200.

Response

One page of the items

Example response

{
  "data": [
    {
      "id": 4471,
      "purchase_order_id": 42,
      "internal_product_id": "P-5XK1S0NQNO",
      "asin": "B0019MQM64",
      "unit_cost": 9.5,
      "unit_count": 12,
      "total_cost": 114
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total": 137,
      "last_page": 6
    },
    "trial_limit": {
      "max_rows": 25,
      "total": 137,
      "code": "trial_list_limited",
      "message": "The trial shows only the first rows of a list. Subscribe to see all rows.",
      "subscribe_url": "https://app.sellerassistant.app/subscription"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.