POST /price-list-variants.json

POST /price-list-variants.json
application/json

Body Required

  • compareAtPrice number | null

    Compare at price

  • hash string | null

    Hash

  • price number Required

    Price

  • priceListId integer(int32) Required

    Price list

  • priceListImportId integer(int32) | null

    Price list import

  • sku string Required

    Sku

  • variantId integer(int32) | null

    Variant

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • compareAtPrice number | null

      Compare at price

    • createdAt string(date-time)

      Created at

    • hash string | null

      Hash

    • id integer(int32)

      Id

    • price number Required

      Price

    • priceListId integer(int32) Required

      Price list

    • priceListImportId integer(int32) | null

      Price list import

    • sku string Required

      Sku

    • updatedAt string(date-time)

      Updated at

    • variantId integer(int32) | null

      Variant

POST /price-list-variants.json
curl \
 --request POST 'http://api.example.com/v1/price-list-variants.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"compareAtPrice":42.0,"hash":"string","price":42.0,"priceListId":42,"priceListImportId":42,"sku":"string","variantId":42}'
Request examples
{
  "compareAtPrice": 42.0,
  "hash": "string",
  "price": 42.0,
  "priceListId": 42,
  "priceListImportId": 42,
  "sku": "string",
  "variantId": 42
}
Response examples (200)
{
  "compareAtPrice": 42.0,
  "createdAt": "2025-05-04T09:42:00Z",
  "hash": "string",
  "id": 42,
  "price": 42.0,
  "priceListId": 42,
  "priceListImportId": 42,
  "sku": "string",
  "updatedAt": "2025-05-04T09:42:00Z",
  "variantId": 42
}