Variations (variation)

Variations are created first, then referenced by items using variation_id.

Auth

  • All variation endpoints require authorization:
    • Authorization: Bearer {{oauth_access_token}}, or
    • mobstep-customer-token: {{customer_token}}

Base URL

  • {{base_path}}{{api_v3_path}}/variation

Notes

  • Friendly entity names are supported in URLs (example: /variation).
  • Legacy internal names (example: /apps_variation) are still accepted.
GET

GET Variations (Auth required)

URL
https://mobstep.com/api/v3.0/variation?fields=id,uuid,application_id,name,price,sku,image,has_components,components,langcode,created,changed
Fields
Name Description
id -
uuid -
application_id -
name -
price -
sku -
image -
has_components -
components -
langcode -
created -
changed -
Headers
Name Value Description
Authorization Bearer {{oauth_access_token}} -
mobstep-customer-token {{customer_token}} -
POST

POST Variations: Create (Auth required)

URL
https://mobstep.com/api/v3.0/variation
Headers
Name Value Description
Content-Type application/json -
Authorization Bearer {{oauth_access_token}} -
mobstep-customer-token {{customer_token}} -
Body
{
  "name": "Size Large",
  "application_id": {{application_id}},
  "price": 0.0
}
DELETE

DELETE Variations (Auth required)

URL
https://mobstep.com/api/v3.0/variation/{{api_entity_id}}
Headers
Name Value Description
Authorization Bearer {{oauth_access_token}} -
mobstep-customer-token {{customer_token}} -