POST
/
catalog
/
products
/
{product-id}
/
pricing
curl --request POST \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{product-id}/pricing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "customer_group_id": "<string>",
    "cost_price": 123,
    "listing_price": 123,
    "selling_price": 123,
    "min_order_quantity": 123,
    "max_order_quantity": 123,
    "incremental_quantity": 123,
    "tax_type": "<string>",
    "tax_rate": 123
  }
]'
{
  "message": "<string>",
  "success": true,
  "content": {
    "pricing": [
      {
        "id": 123,
        "customer_group_id": "<string>",
        "cost_price": 123,
        "listing_price": 123,
        "selling_price": 123,
        "min_order_quantity": 123,
        "max_order_quantity": 123,
        "incremental_quantity": 123,
        "tax_type": "<string>",
        "tax_rate": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

product-id
string
required

product id

Body

application/json · object[]
cost_price
number
required
listing_price
number
required
selling_price
number
required
tax_type
string
required
Maximum length: 64
tax_rate
number
required
customer_group_id
string

customer group ulid

Maximum length: 128
min_order_quantity
integer
max_order_quantity
integer
incremental_quantity
integer

Response

200 - application/json
OK
message
string
success
boolean
content
object