Create or update price

Creates or updates price details for one or many items based on given item IDs. Support for currency code is determined based on the currency code you have set while creating the price list, whuch is identified by priceListId in the request body.

SecurityAuthorizationToken
Request
header Parameters
required
object

Valid JSON object that must contain account, stage, date, and channel attributes. eg - {"stage":"prod","account":"5f328bf0b","date":"2020-12-12T08:00:00.000Z","channel":12}

Authorization
required
string

Authorization token or access token for the user, provided by fabric. It can be obtained after logging into fabric's copilot account.

Example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Request Body schema: application/json

A JSON object containing price information

string or number

Optional. ID or name of the price list to update the price for. If you do not provide ID or name, price will be updated for the default price list.
If you are using this endpoint to create price details, the price list ID will be generated automatically.

itemIds
required
Array of numbers

Item IDs to create or update the price for

itemSkus
Array of strings

SKUs of the products to create or update the price for

required
Array of objects [ 1 .. 10 ] items
Responses
200

OK

400

Bad request

404

Not Found

500

Internal Server Error

post/api-offers/price
Request samples
application/json
{
  • "priceListId": "100-TwoWeeks",
  • "itemIds": [
    ],
  • "itemSkus": [
    ],
  • "offers": [
    ]
}
Response samples
application/json
[
  • {
    }
]