Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Order Item (v2) → Create

AI-generated

Summary

Create a new order item within a specified order in the Gambio shop via its REST API v2.

Inputs

  • Authentication — Choose the authentication method to use with the Gambio API: Basic Auth with admin email and password (v2 and v3 API) or Bearer Token (JWT) from Gambio Admin (v3 API only).
  • Order ID (required) — Specify the ID of the order to which the new order item will be added.
  • JSON Body (required) — Provide a JSON object containing the order item details to create. Refer to Gambio API documentation for the required structure.

Output shape

a single record representing the created order item returned from the Gambio API

The operation sends a POST request to the endpoint /api.php/v2/orders/{orderId}/items with the JSON body parsed from user input. The response includes the created order item's data as returned by the API. No automatic pagination is involved.

Examples

Example 1: Create an order item with Basic Auth

Set Authentication to 'Basic Auth', specify the target Order ID, and provide the order item details as JSON in the 'JSON Body'.

Example 2: Create an order item with Bearer Token

Select 'Bearer Token (JWT)' as Authentication, input the Order ID, and provide the order item JSON data to add the item to the order.

Discussion