Products (offers)
Update product (offer) availability by id
Changed onRate limit: 100 requests / 10 seconds per shop. See Rate limiting.
Updates a product (offer) availability
put/open-api/v1.0/products/{productId}/availability
Request
- Base URLhttps://api.fourthwall.com
- URLhttps://api.fourthwall.com/open-api/v1.0/products/{productId}/availability
- Auth
- OAuth 2Implicit: https://auth.staging.fourthwall.com/auth/realms/Fourthwall/protocol/openid-connect/authScopes: offer_write
- or HTTP basic
Path parameters
productIdstring required
Request body
Response
OK
Example response
{
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"name": "My t-shirt",
"slug": "my-t-shirt",
"description": "My t-shirt description",
"thumbnailImage": {
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"url": "https://fourthwall.com/image.png",
"width": 800,
"height": 600,
"transformedUrl": "https://fourthwall.com/image.png"
},
"images": [
{
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"url": "https://fourthwall.com/image.png",
"width": 800,
"height": 600,
"transformedUrl": "https://fourthwall.com/image.png"
}
],
"variants": [
{
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"name": "My t-shirt - Black, L",
"sku": "WDEK-DRE200L",
"unitPrice": {
"value": 10,
"currency": "USD"
},
"compareAtPrice": {
"value": 10,
"currency": "USD"
},
"unitCost": {
"value": 10,
"currency": "USD"
},
"attributes": {
"description": "Black, L",
"color": {
"name": "Black",
"swatch": "#000000"
},
"size": {
"name": "L"
}
},
"creatorDeclaredCost": {
"value": 10,
"currency": "USD"
},
"stock": {
"inStock": 5
},
"weight": {
"value": 1,
"unit": "kg"
},
"dimensions": {
"length": 1,
"width": 2,
"height": 3,
"unit": "cm"
},
"images": [
{
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"url": "https://fourthwall.com/image.png",
"width": 800,
"height": 600,
"transformedUrl": "https://fourthwall.com/image.png"
}
],
"thumbnailImage": {
"id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
"url": "https://fourthwall.com/image.png",
"width": 800,
"height": 600,
"transformedUrl": "https://fourthwall.com/image.png"
}
}
],
"digitalFiles": [
{
"uri": "https://storage.googleapis.com/bucket/shop/offer/file",
"name": "my-ebook.pdf",
"fileSize": "15.4 MB",
"mediaType": "application/pdf"
}
],
"createdAt": "2020-08-13T09:05:36.939Z",
"updatedAt": "2020-08-13T09:05:36.939Z"
}Changes
- breaking
added to the
response propertyoneOflist for the response status - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added
PRIVATEdiscriminator mapping keys to the//response property for the response status - info
added
PRIVATEdiscriminator mapping keys to the//response property for the response status - info
added
PRIVATEdiscriminator mapping keys to the//response property for the response status
- breaking