Return Prices of products for a Business
GET/api/v1/custom_prices/businesses/:business_id
Return Prices of products for a Business
Request
Path Parameters
business_id stringrequired
Query Parameters
sort string
page int32
Default value: 1
Page offset to fetch.
per_page int32
Default value: 10
Number of results to return per page.
supplier_product_ids[] string[]required
Possible values: >= 1
IDs of the Custom Prices to return
fallback_to_default boolean
when set to 'true' missing custom prices will be replaced by a default one
Responses
- 200
 
Return Custom Prices from provided ids
- application/vnd.api+json
 
- Schema
 - Example (from schema)
 
Schema
Array [
]
data
object[]
required
id string
type string
attributes
object
in-cents integer
default boolean
supplier-product-id string
businesses array
custom-ref string
meta
object
required
total-count numberrequired
total-pages numberrequired
{
  "data": [
    {
      "id": "string",
      "type": "string",
      "attributes": {
        "in-cents": 0,
        "default": true,
        "supplier-product-id": "string",
        "businesses": [
          null
        ],
        "custom-ref": "string"
      }
    }
  ],
  "meta": {
    "total-count": 0,
    "total-pages": 0
  }
}
Loading...