Get a specific variant of a product by its ID.
This value equals to store.id of Store Resource. You can obtain this id by making a GET /stores call to get existing stores or a POST /stores to create a new store.
The Meta model holds the metadata of the API response, including relevant error details for debugging purposes.Show all...
Error code in integer format. For detailed information, please refer to the Request Error introduction page.
Response type string for the reference. For detailed information, please refer to the Request Error introduction page.
Human-readable response message. For detailed information, please refer to the Request Error introduction page.
Error detail object. Each error object contains a "path" key and an "info" key. The "path" is the JSON path of the request object to indicate the error location. The "info" is a human-readable description of the error.Show all...
A unique identifier for the product variant in your system.
The product SKU of the product variant.
The price of the product variant.
Available quantity of the product variant.
The product image URL of the product variant.
The title of the product variant.
The original price of the item before an adjustment or a sale.
The weight information of the product variant.
Harmonized System (HS) Codes.
The origin country of this product variant. The field should be in ISO 3166-1 alpha-3 format.
To specify whether customers are permitted to place an order for this out-of-stock product variant.
The custom product variant properties, such as size, color, and material.
{ "meta": { "code": 20000, "type": "OK", "message": "The request was successfully processed by AfterShip." }, "data": { "id": "5634477687", "sku": "SKU001", "price": "10", "available_quantity": 1, "image_urls": [ "https://example.com/product/image.png" ], "title": "Power Mobile Phone", "compare_at_price": "string", "weight": { "unit": "kg", "value": 10 }, "hs_code": "6403911600", "origin_country_region": "AUS", "allow_backorder": true, "options": [ { "name": "color", "value": "white" } ] } }