Price Tables

Explore the limitless potential of Price Tables, designed to bring unparalleled flexibility to your pricing strategies. Price Tables functionality adapts to your needs seamlessly, allowing you to craft tailored pricing structures effortlessly and swap prices on the fly.

Endpoints

The Price Table object

Attributes

_id
Required
string

The ID of the price table

sellerId
Required
string

The ID of the seller of the price table

name
Required
string

The name of the price table. Is used for identification

Optional Attributes

Collapse all
Was this section helpful?
YesNo
Example
{
"_id": "string",
"sellerId": "string",
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}

Create a Price Table

Payload

name
Required
string

The name of the price table. Is used for identification

Optional Attributes

Collapse all
Responses
201
Created
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
post
/api/price-tables
{
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}

Get a Price Table

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
get
/api/price-tables/{id}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}

Update a Price Table

Payload

Optional Attributes

Collapse all
Responses
200
OK
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
put
/api/price-tables/{id}
{
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}

Get all Price Tables

Query

name
Optional
string

The name of the price table to filter for

top
Optional
integer

A limit on the number of objects to be returned. Can range between 1 and 1000.

skip
Optional
integer

The number of objects to skip for the requested result

Responses
200
OK
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
get
/api/price-tables
Response
application/json
{
"docs": [
{
"_id": "string",
"sellerId": "string",
"name": "string",
"categories": [
{
"_id": "string",
"name": "string"
}
],
"types": [
{
"_id": "string",
"name": "string",
"categoryId": "string",
"price": 10.5
}
],
"tiers": [
{
"_id": "string",
"name": "string",
"prices": [
{
"priceTypeId": "string",
"price": 10.5
}
]
}
]
}
],
"total": 1
}