- Store API
- Admin API
- Auth
- Batch Jobs
- Currencies
- Customers
- Customer Groups
- Discounts
- Draft Orders
- Gift Cards
- Inventory Items
- Invites
- Notes
- Notifications
- Orders
- Create a Reservation
- Cancel Claim's Fulfillment
- Ship a Claim's Fulfillment
- Cancel Swap's Fulfilmment
- Get Order Reservations
- Add a Shipping Method
- Create a Refund
- Get an Order
- Update an Order
- Create a Fulfillment
- Cancel a Swap
- List Orders
- Create a Swap
- Complete an Order
- Create a Swap Fulfillment
- Cancel a Claim
- Process a Swap Payment
- Ship a Fulfillment
- Capture an Order's Payments
- Archive Order
- Update a Claim
- Request a Return
- Create a Claim Fulfillment
- Ship a Swap's Fulfillment
- Cancel a Fulfilmment
- Create a Claim
- Cancel an Order
- Order Edits
- Payments
- Payment Collections
- Product Collections
- Product Tags
- Product Types
- Product Variants
- Price Lists
- Products
- Product Categories
- Publishable Api Keys
- Reservations
- Regions
- Return Reasons
- Returns
- Sales Channels
- Shipping Options
- Shipping Profiles
- Stock Locations
- Store
- Swaps
- Uploads
- Tax Rates
- Users
- 【Demo】Products
Add or Update Prices
POST
/admin/price-lists/{id}/prices/batch
Admin API/Price ListsPrice Lists
Request
Path Params
id
string
required
Body Params application/json
override
boolean
optional
true
, the prices will replace all existing prices associated with the Price List.prices
array [object {7}]
optional
id
string
optional
region_id
string
optional
currecny_code
is not provided.variant_id
string
required
amount
integer
required
min_quantity
integer
optional
max_quantity
integer
optional
currency_code
string
optional
region_id
is not provided.Example
{
"override": true,
"prices": [
{
"id": "string",
"region_id": "string",
"variant_id": "string",
"amount": 0,
"min_quantity": 0,
"max_quantity": 0,
"currency_code": "string"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/admin/price-lists//prices/batch' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
price_list
object (Price List)
required
id
string
required
Example:
pl_01G8X3CKJXCG5VXVZ87H9KC09W
name
string
required
Example:
VIP Prices
description
string
required
Example:
Prices for VIP customers
starts_at
string <date-time> | null
required
ends_at
string <date-time> | null
required
includes_tax
boolean
optional
Default:
false
created_at
string <date-time>
required
updated_at
string <date-time>
required
deleted_at
string <date-time> | null
required
type
enum<string>
required
sale
or override
.Allowed values:
saleoverride
Default:
sale
status
enum<string>
required
Allowed values:
activedraft
Default:
draft
customer_groups
array[object (Customer Group) {8}]
optional
prices
array[object (Money Amount) {15}]
optional
Example
{
"price_list": {
"id": "pl_01G8X3CKJXCG5VXVZ87H9KC09W",
"name": "VIP Prices",
"description": "Prices for VIP customers",
"starts_at": "2019-08-24T14:15:22Z",
"ends_at": "2019-08-24T14:15:22Z",
"includes_tax": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "sale",
"status": "draft",
"customer_groups": [
{
"id": "cgrp_01G8ZH853Y6TFXWPG5EYE81X63",
"name": "VIP",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"customers": [
{}
],
"price_lists": [
{}
],
"metadata": {
"car": "white"
}
}
],
"prices": [
{
"id": "ma_01F0YESHRFQNH5S8Q0PK84YYZN",
"amount": 100,
"min_quantity": 1,
"max_quantity": 1,
"price_list_id": "pl_01G8X3CKJXCG5VXVZ87H9KC09W",
"price_list": {},
"variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6",
"variant": {},
"region_id": "reg_01G1G5V26T9H8Y0M4JNE3YGA4G",
"region": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"currency_code": "usd",
"currency": {
"symbol": "$",
"symbol_native": "$",
"name": "US Dollar",
"includes_tax": false,
"code": "usd"
}
}
]
}
}
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2024-05-23 07:10:14