Returns all prices for this SupplierProduct
GET/api/v1/supplier_products/:id/custom_prices
Returns all prices for this SupplierProduct
Request
Path Parameters
id stringrequired
id of the product of which price you want to retrieve
Query Parameters
page int32
Default value: 1
Page offset to fetch.
per_page int32
Default value: 10
Number of results to return per page.
Responses
- 200
Index prices
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
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
}
}
{
"data": [
{
"id": "43027f20-1061-4e74-b50a-8937da1b3f5f",
"type": "prices",
"attributes": {
"in-cents": 10000,
"default": false,
"supplier-product-id": "20ae7da2-fd68-4619-8a84-ce567d658e64",
"businesses": [
"214e7ec1-d740-45d9-a598-0f5367bc6bcb",
"c2d53c04-4fcc-499c-ba0e-b4255605491d"
],
"custom-ref": "7f647421-81c4-4444-b708-cda3c93696b2"
}
}
],
"meta": {
"total-count": 4,
"total-pages": 4
}
}
Loading...