palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/products/{product_id}/variants

Create product variant

Create product variant

Called by your server, with the project's secret key.

Path

product_idstring · requiredPath parameter product_id.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/products/<product_id>/variants" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

201Create product variant

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation CreateVariant of commerce's contract.