Skip to main content
PUT
Update One Customer By Source System Id
Updates by external key. Send sourceSystem and sourceSystemId as top-level JSON fields or as query parameters. See Idempotency & retries.

Authorizations

Authorization
string
header
required

Your API key, sent in the Authorization header: Authorization: YOUR_API_KEY. A Bearer prefix is also accepted (Authorization: Bearer YOUR_API_KEY). Keys are created in the Upwell dashboard (Account → API keys) and are scoped to one organization.

Query Parameters

sourceSystem
string

"sourceSystem" is required (enter it either in parameters or request body)

sourceSystemId
string

"sourceSystemId" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

customerRulesInput
CustomerRulesSetInput Ā· object | null

Customer rules to update. For Net 30, send { "dueOption": 30 }. Use 0 for due on receipt. Omit dueOption to keep the current terms.

input
jsonb Ā· object | null

Object containing the fields to create or update. Only the fields in this endpoint schema are accepted.

sourceSystem
string

Name of the originating system. Together with sourceSystemId, identifies the external record within your organization.

sourceSystemId
string

Record identifier in the originating system. Preserve leading zeros; use it with sourceSystem for lookup/update.

Response

Responses for PUT /api/rest/customers

updateCustomer
CustomerApiMutationResponse Ā· object

Related-record query object. Keys are selectable fields or logical operators (_and, _or, _not); scalar fields contain comparison objects such as { "_eq": "value" }. Relationships contain another query object. Only fields accessible to your API key are accepted. Aggregate filters use their aggregate function envelope. See Query filters.

Example:
updateCustomerRules
CustomerRulesMutationResponse Ā· object | null

Update customer rules. See the schema for its JSON type and allowed values.