Skip to content

Save a price list

POST
/api/v1/commerce/wholesale/lists
curl --request POST \
--url https://digize.com/api/v1/commerce/wholesale/lists \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "id": "example", "name": "example", "percentOff": 1, "minimumOrder": 1, "prices": [ { "variantId": "example", "price": 1 } ] }'

Makes a wholesale price list, or changes one when id names it: the percentage off everything, the minimum order, and the variants it fixes a price for (replacing the ones it had).

Needs the commerce:write permission.

Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
id
string
>= 1 characters <= 64 characters
name
required
string
>= 1 characters <= 80 characters
percentOff
required
integer
<= 90
minimumOrder
required
integer
<= 9007199254740991
prices
required
Array<object>
<= 2000 items
object
variantId
required
string
>= 1 characters <= 64 characters
price
required
integer
<= 9007199254740991

Example generated

{
"id": "example",
"name": "example",
"percentOff": 1,
"minimumOrder": 1,
"prices": [
{
"variantId": "example",
"price": 1
}
]
}

Done

Media typeapplication/json
object
id
required
string
name
required
string
percentOff
required

Whole percent off retail for variants without a price.

number
minimumOrder
required

The least an order comes to, in minor units.

number
prices
required

Variants with a fixed price on it.

number
accounts
required
number
updatedAt
required
string format: date-time
fixed
required
Array<object>
object
variantId
required
string
productId
required
string
productName
required
string
variantLabel
required
string
retailPrice
required
number
price
required
number

Example generated

{
"id": "example",
"name": "example",
"percentOff": 1,
"minimumOrder": 1,
"prices": 1,
"accounts": 1,
"updatedAt": "2026-04-15T12:00:00Z",
"fixed": [
{
"variantId": "example",
"productId": "example",
"productName": "example",
"variantLabel": "example",
"retailPrice": 1,
"price": 1
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}