Products
Get a store product
GET /stores/{storeResourceId}/products/{resourceId}
GET
/stores/{storeResourceId}/products/{resourceId}Returns one product with its categories and variants.
When to use: To check the data of a product you already know, including its variants.
When not to use: To list products use list_store_products.
Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
storeResourceId*string
Identifier (resource_id) of the store the product belongs to.
resourceId*string
Identifier (resource_id) of the product: the one you chose when you created it with create_store_product.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/stores/acme-shop/products/sneaker-01" \ -H "X-Auth-Token: YOUR_API_KEY"{ "resource_id": "string", "title": "string", "description": "string", "vendor": "string", "url": "http://example.com", "image_url": "http://example.com", "variants": [ { "resource_id": "string", "title": "string", "sku": "string", "price": 0, "inventory_quantity": 0, "image_url": "http://example.com", "url": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "categories": [ "/entity/1" ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}