Gambio icon

Gambio

Interact with Gambio REST API v3

Actions220

Customer (v2) → Update

AI-generated

Summary

Update an existing customer using the Gambio v2 API by specifying the customer ID and providing updated customer data in JSON format.

Inputs

  • Authentication — Choose the authentication method: Basic Auth with admin email and password (for v2 and v3 API) or Bearer Token (JWT) for v3 API only.
  • Customer ID (required) — Numeric ID of the customer to update.
  • Customer Data (JSON) (required) — JSON array containing the updated customer data, including personal details and address fields as per the Gambio v2 API structure.
  • Request Options — Optional settings such as batching parameters, SSL certificate validation override, proxy, and request timeout to customize the API request.

Output shape

The operation returns the API response confirming the update; typically includes updated customer details or status information.

The customer data must be provided as a JSON array compatible with the Gambio v2 API. The operation uses HTTP PUT to /api.php/v2/customers/{customerId} endpoint. Authentication defaults to Basic Auth but can be switched to Bearer Token, which is limited to v3 API and may not apply here. Request options allow advanced request control. Error responses depend on the Gambio API's behavior.

Examples

Example 1: Update customer's personal information and address.

Set customerIdV2 to the target customer ID. Provide JSON with updated gender, firstname, lastname, email, dateOfBirth, telephone, statusId, isGuest, and nested address details including company, street, houseNumber, postcode, city, countryId, and other address fields.

Discussion