Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Order Item (v2) → Update

AI-generated

Summary

Update an existing order item in a Gambio store by specifying the order ID, item ID, and providing the updated order item data as a JSON object.

Inputs

  • Authentication (required) — Choose the method to authenticate with the Gambio API, either basic auth using admin email and password (compatible with v2 and v3 API) or bearer token (JWT) for v3 API only.
  • Order ID (required) — Numeric ID of the order containing the item to update.
  • Item ID (required) — Numeric ID of the specific order item to update.
  • JSON Body (required) — JSON object with the order item data to be updated, conforming to Gambio API's expected structure.

Output shape

a single updated order item object, as returned by the Gambio API

The shape of the returned data depends on Gambio API's response to the update request. The operation uses an HTTP PUT request to "/api.php/v2/orders/{orderId}/items/{itemId}" with the JSON body parsed from input, and returns the updated order item data. Authentication method chosen affects API version compatibility.

Examples

Example 1: Update an existing order item's quantity and price

Authenticate using Basic Auth, specify the orderId and itemId, and provide a JSON body with updated quantity and price fields.

Discussion