Create prices for your SKUs.
Endpoint
- Method: POST
- URI:
https://api.jooraccess.com/v4/prices/bulk_create?account=[account_id]
Params
- Accept: application/json
- Authorization: OAuth2 [Base64 encoded token]
Sample cURL Request
curl -X POST "https://api.jooraccess.com/v4/prices/bulk_create" -H "accept: application/json" -H "Content-Type: application/json" -d "[{\"sku_id\":\"string\",\"price_type_id\":\"string\",\"wholesale_value\":\"string\",\"retail_value\":\"string\"}]"
Workflow
- Use the CREATE /products endpoint to create your product
- Use the CREATE /skus endpoint to create skus for your product
- Insert the sku id into the sku_id parameter when creating your price. This is the SKU your price will be mapped to.
- You will need to reference the price id when using the following endpoints:
- UPDATE /prices
Price Data
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
sku_id | Y | string | |
price_type_id | Y | string | |
wholesale_value | Y | string | |
retail_value | N | string |
Request Example
[
{
"sku_id": "sku_id_111",
"price_type_id": "pricetype_id_222",
"wholesale_value": "100.00",
"retail_value": "200.00"
}
]
Response Example
{
"data": [
{
"id": "price_id_333",
"sku_id": "sku_id_111",
"price_type": {
"id": "pricetype_id_222",
"name": "USD-1",
"currency_code": "USD",
"retail_currency_code": "USD"
},
"wholesale_value": "100.00",
"retail_value": "200.00"
}
],
"errors": []
}