Creates a new variant record.
- Get a variant by ID
Final POS API (1.2.4)
Welcome to the Final POS Public API—your playground for crafting the checkout and kiosk flows you want. Create your API keys in Manage (Settings > API Keys) and send them as x-api-key on every request. Customer endpoints use dynamic DTO generation so they adapt to your custom tables in real time, while the rest of the controllers follow a stable, static contract for predictable integrations.
Images of the variant.
Metadata associated with the Variant.
Attributes associated with the Variant.
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/variant
- Official APIhttps://api.finalpos.com/v1/api/variant
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.finalpos.com/_mock/openapi/v1/api/variant \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"productId": "o1p2q3r4s5t6u7v8w9x0y1z2",
"manageStock": true,
"sku": "1234567890",
"isOnSale": true,
"barcode": "1234567890",
"price": 100,
"salePrice": 90,
"externalId": "1234567890",
"allowBackorder": true,
"costPrice": 80,
"images": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"metadata": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value2"
}
],
"attributes": [
{
"name": "color",
"value": "red"
}
],
"inventory": [
{
"stock": 10,
"outletId": "o1p2q3r4s5t6u7v8w9x0y1z2"
}
]
}'The variant has been successfully created.
Timestamp when the Variant was created.
Timestamp when the Variant was last updated.
Images of the variant.
Metadata associated with the Variant.
Attributes associated with the Variant.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "productId": "o1p2q3r4s5t6u7v8w9x0y1z2", "manageStock": true, "sku": "1234567890", "isOnSale": true, "barcode": "1234567890", "price": 100, "salePrice": 90, "externalId": "1234567890", "allowBackorder": true, "costPrice": 80, "images": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "metadata": [ { … }, { … } ], "attributes": [ { … } ], "inventory": [ { … } ] }
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}
- Official APIhttps://api.finalpos.com/v1/api/variant/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'The variant has been successfully retrieved.
Timestamp when the Variant was created.
Timestamp when the Variant was last updated.
Images of the variant.
Metadata associated with the Variant.
Attributes associated with the Variant.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "productId": "o1p2q3r4s5t6u7v8w9x0y1z2", "manageStock": true, "sku": "1234567890", "isOnSale": true, "barcode": "1234567890", "price": 100, "salePrice": 90, "externalId": "1234567890", "allowBackorder": true, "costPrice": 80, "images": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "metadata": [ { … }, { … } ], "attributes": [ { … } ], "inventory": [ { … } ] }
Images of the variant.
Metadata associated with the Variant.
Attributes associated with the Variant.
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}
- Official APIhttps://api.finalpos.com/v1/api/variant/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"productId": "o1p2q3r4s5t6u7v8w9x0y1z2",
"manageStock": true,
"sku": "1234567890",
"isOnSale": true,
"barcode": "1234567890",
"price": 100,
"salePrice": 90,
"externalId": "1234567890",
"allowBackorder": true,
"costPrice": 80,
"images": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"metadata": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value2"
}
],
"attributes": [
{
"name": "color",
"value": "red"
}
],
"inventory": [
{
"stock": 10,
"outletId": "o1p2q3r4s5t6u7v8w9x0y1z2"
}
]
}'The variant has been successfully updated.
Timestamp when the Variant was created.
Timestamp when the Variant was last updated.
Images of the variant.
Metadata associated with the Variant.
Attributes associated with the Variant.
{ "id": "o1p2q3r4s5t6u7v8w9x0y1z2", "createdAt": "2025-12-07T19:31:48.436+00:00", "updatedAt": "2025-12-07T19:35:48.436+00:00", "companyId": "o1p2q3r4s5t6u7v8w9x0y1z2", "productId": "o1p2q3r4s5t6u7v8w9x0y1z2", "manageStock": true, "sku": "1234567890", "isOnSale": true, "barcode": "1234567890", "price": 100, "salePrice": 90, "externalId": "1234567890", "allowBackorder": true, "costPrice": 80, "images": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "metadata": [ { … }, { … } ], "attributes": [ { … } ], "inventory": [ { … } ] }
- Mock serverhttps://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}
- Official APIhttps://api.finalpos.com/v1/api/variant/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.finalpos.com/_mock/openapi/v1/api/variant/{id}' \
-H 'x-api-key: YOUR_API_KEY_HERE'{ "statusCode": 200, "message": "Resource with Id 123 deleted successfully" }