POST /price-lists.json
POST
/price-lists.json
Body Required
-
compareAtPriceHeader string | null
Compare at price header
-
currencyId integer(int32) Required
Currency
-
importFromUrl boolean | null
Import from url
-
importUrl string | null
Import url
-
lastFetchedAt string(date-time) | null
Last fetched at
-
lastFetchedFile string | null
Last fetched file
-
name string Required
Name
-
parseNumber boolean | null
Parse number
-
priceHeader string | null
Price header
-
skuHeader string | null
Sku header
-
status string | null Required
Status
Values are
active
orarchived
. Default value isactive
. -
type string Required
Type
Values are
sale
orpurchase
. Default value issale
. -
zeroCompareAtPrices boolean | null
Zero compare at prices
POST /price-lists.json
curl \
-X POST http://api.example.com/v1/price-lists.json \
-H "Content-Type: application/json" \
-d '{"compareAtPriceHeader":"string","currencyId":42,"importFromUrl":true,"importUrl":"string","lastFetchedAt":"2023-05-04T09:42:00+00:00","lastFetchedFile":"string","name":"string","parseNumber":true,"priceHeader":"string","skuHeader":"string","status":"active","type":"sale","zeroCompareAtPrices":true}'
Request example
{
"compareAtPriceHeader": "string",
"currencyId": 42,
"importFromUrl": true,
"importUrl": "string",
"lastFetchedAt": "2023-05-04T09:42:00+00:00",
"lastFetchedFile": "string",
"name": "string",
"parseNumber": true,
"priceHeader": "string",
"skuHeader": "string",
"status": "active",
"type": "sale",
"zeroCompareAtPrices": true
}
Response examples (200)
{
"compareAtPriceHeader": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"currencyId": 42,
"id": 42,
"importFromUrl": true,
"importUrl": "string",
"lastFetchedAt": "2023-05-04T09:42:00+00:00",
"lastFetchedFile": "string",
"name": "string",
"parseNumber": true,
"priceHeader": "string",
"skuHeader": "string",
"status": "active",
"type": "sale",
"updatedAt": "2023-05-04T09:42:00+00:00",
"zeroCompareAtPrices": true
}