Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Order Item Attribute (v2) → Create

AI-generated

Summary

Create a new attribute for a specific order item in Gambio via the v2 API.

Inputs

  • Authentication — Choose how to authenticate with the Gambio API: Basic Auth with admin email and password (works for v2 and v3 API) or Bearer Token (JWT) for v3 API only.
  • Order ID (required) — The ID of the order to which the item attribute will be added.
  • Item ID (required) — The ID of the specific order item to which the attribute will be attached.
  • Attribute Data (JSON) (required) — A JSON object containing the attribute data, which may use either the attributes system (optionId and optionValueId) or properties system (combisId). Typical fields include 'name', 'value', 'price', 'priceType', 'combisId', 'optionId', and 'optionValueId'.

Output shape

a single record containing the created order item attribute as returned by the Gambio API.

This operation sends a POST request to the endpoint /api.php/v2/orders/{orderId}/items/{itemId}/attributes. The response includes the details of the created attribute. No pagination applies.

Examples

Example 1: Create a color attribute 'Farbe: rot' with zero price for order 123 item 456

Set Order ID to 123, Item ID to 456, and use the Attribute Data JSON to specify name, value, and pricing fields accordingly.

Discussion