Actions20
- Customer Actions
- Customer Address Actions
- Basket Actions
- Notification Actions
- Complete API Actions
Complete API → Set Customer
AI-generatedSummary
Create or update an OnPrintShop customer through the Complete API setCustomer operation. Supply the input fields and, optionally, a customer ID; choose whether to block mutations with Safe Mode and configure the returned fields.
Inputs
- Input Mode — Choose Fields to build the input from the available fields, or JSON Object to provide the operation arguments as JSON.
- Input (required) — In Fields mode, provide optional customer attributes: admin extra fields (JSON), company name, corporate and department IDs, email, external reference, first and last name, password, payment account and limit, phone, registration type, secondary emails, set-password flag, status, tax exemption, and user group. The input object itself is required; individual attributes are optional.
- Customer ID — Optional integer customer_id parameter in Fields mode.
- Arguments JSON — In JSON Object mode, provide the operation arguments as JSON.
- Safe Mode — When enabled, blocks mutations in the Complete API.
- Partial Response — Choose whether errors fail the operation or partial data is returned; partial results may contain failures and should be reconciled before further writes.
- Return Fields Mode — Return all fields or select a custom subset.
- Return Fields — Custom selection from external_ref, id, message, and result; shown when Return Fields Mode is Custom Selection.
Output shape
A single API response item for the setCustomer operation.
Returned fields depend on Return Fields Mode. The available fields are external_ref, id, message, and result. The source pack delegates execution to shared domain code, so it does not show the exact response envelope.