Update product by product id
Authorization
bearerAuth In: header
Path Parameters
id of a product
Request Body
application/json
The default price, used if a store-specific price is not specified.
0 <= value00 <= valueURL to thumbnail. If not provided best-effort will be taken to resolve thumbnail url automatically
Marks whether thumbnail is a valid image. Can only be specified if 'thumbnail' was also specified and it's value is not empty. If 'thumbnail' was specified then default value for this field is 'false'. Otherwise there is no default value and this field's value depends on whether thumbnail's url was automatically resolved
Client defined product identifier
Avalara tax code, available ig avalara integration is enabled
Whether the product is a restriction item
An optional list to specify prices per store. IMPORTANT - if specified once, you cannot go back to the default price! You will need to update the prices every time going forward.
Default barcode of default variant for this product
Weight of a default variant
Response Body
application/json
application/json
curl -X PUT "https://oasis-api.public.sandbox.oasis.aifi.com/api/admin/v2/products/0" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "price": 0, "barcode": "string", "weight": 0 }'{
"id": "string",
"name": "string",
"price": "string",
"barcode": "string",
"category": "string",
"thumbnail": "string",
"invalidThumbnail": true,
"productId": 0,
"quantity": 0,
"weight": 0,
"sku": "string",
"inventoryItemId": 0,
"externalId": "string",
"restricted": true,
"taxCode": "string",
"storePrices": [
{
"storeId": "string",
"productId": "string",
"price": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
],
"variants": [
{
"id": 0,
"name": "string",
"thumbnail": "string",
"invalidThumbnail": true,
"externalId": "string",
"weight": "string",
"barcodes": [
{
"isDefault": true,
"barcode": "string"
}
],
"isDefault": true,
"productId": 0
}
]
}{
"message": "Invalid request body",
"type": "E_INVALID_BODY",
"errors": [
{
"error": "\"email\" is required",
"rule": "any.required",
"field": "\"email\""
}
]
}How is this guide?