Get a product variant
GET
apiKey readheader
AuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
id*stringFormat
uuidvariantId*stringFormat
uuidlocale?stringContent locale; the workspace default without one
Length
length <= 35OK
application/json- response
id*stringFormat
uuidexternalId*stringlocale*stringtitle*stringsku*string|nullbarcode*string|nulloptions*array<>image*|nullprice*compareAtPrice*stock*stringValue in
"in_stock""out_of_stock""not_tracked"inventory*integer|nullcontinueSellingWhenOutOfStock*booleanavailableForSale*booleanposition*integerremovedAt*|Format
date-timecreatedAt*|Format
date-timeupdatedAt*|Format
date-timecurl -X GET 'https://api.postforge.dev/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "locale": "string", "title": "string", "sku": "string", "barcode": "string", "options": [ { "name": "string", "value": "string" } ], "image": { "url": "http://example.com", "alt": "string" }, "price": { "amount": 0, "currency": "str" }, "compareAtPrice": { "amount": 0, "currency": "str" }, "stock": "in_stock", "inventory": 0, "continueSellingWhenOutOfStock": true, "availableForSale": true, "position": 0, "removedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}