PUT /price-lists/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
cacheImport boolean | null
Cache import
-
compareAtPriceHeader string | null
If not set, Onport will look for a column called
compare_at_price
. -
Compare previous
Default value is
true
. -
createdAt string(date-time)
Created at
-
Currency
-
delimiter string | null
Defaults to a comma (,) if not set. For example, you can enter | if your CSV file is pipe separated instead of comma separated.
-
id integer(int32)
Id
-
importFromUrl boolean | null
Import from url
-
importSeconds integer(int32) | null
Import seconds
-
importUrl string | null
Import url
-
lastFetchedAt string(date-time) | null
Last fetched at
-
lastFetchedFile string | null
Last fetched file
-
Name
-
parseNumber boolean | null
Parse number
-
priceHeader string | null
If not set, Onport will look for a column called
retail_price
. -
skuHeader string | null
If not set, Onport will look for a column called
sku
. -
Status
Values are
active
orarchived
. Default value isactive
. -
Type
Values are
sale
orpurchase
. Default value issale
. -
updatedAt string(date-time)
Updated at
-
zeroCompareAtPrices boolean | null
Zero compare at prices
PUT
/price-lists/{id}.json
curl \
-X PUT http://api.example.com/v1/price-lists/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"cacheImport":true,"compareAtPriceHeader":"string","comparePrevious":true,"createdAt":"2024-05-04T09:42:00+00:00","currencyId":42,"delimiter":"string","id":42,"importFromUrl":true,"importSeconds":42,"importUrl":"string","lastFetchedAt":"2024-05-04T09:42:00+00:00","lastFetchedFile":"string","name":"string","parseNumber":true,"priceHeader":"string","skuHeader":"string","status":"active","type":"sale","updatedAt":"2024-05-04T09:42:00+00:00","zeroCompareAtPrices":true}'
Request example
{
"cacheImport": true,
"compareAtPriceHeader": "string",
"comparePrevious": true,
"createdAt": "2024-05-04T09:42:00+00:00",
"currencyId": 42,
"delimiter": "string",
"id": 42,
"importFromUrl": true,
"importSeconds": 42,
"importUrl": "string",
"lastFetchedAt": "2024-05-04T09:42:00+00:00",
"lastFetchedFile": "string",
"name": "string",
"parseNumber": true,
"priceHeader": "string",
"skuHeader": "string",
"status": "active",
"type": "sale",
"updatedAt": "2024-05-04T09:42:00+00:00",
"zeroCompareAtPrices": true
}