Use this page to create Product Variations on Purpl via the API. Fill in the placeholders and run the requests with your favorite REST client.
<aside> 🪪
Before you start, make sure you have a valid BASE_URL and access TOKEN.
</aside>
<aside> 🔑
Need an access token? See: Create an OAuth Application and Obtain an Access Token
</aside>
Create the product that will hold the variations.
POST <BASE_URL>/products/
Authorization: Bearer <TOKEN>
Content-Type: application/json
{
"name": "<product_name>",
"description": "Optional description"
}
product_id.Defines what varies between product versions (e.g., Size, Color, Duration).