Update a customer

Update supplied fields. Deactivating a customer can also deactivate associated profiles and schedules; returned token arrays identify those side effects.

Request examples

ContactDetails

PUT /customer-vault/api/v1/customer/22222222-2222-4222-8222-222222222222 HTTP/1.1
Authorization: <PAYOLOGY_API_KEY>
Accept: application/json
Content-Type: application/json

Deactivate

PUT /customer-vault/api/v1/customer/22222222-2222-4222-8222-222222222222 HTTP/1.1
Authorization: <PAYOLOGY_API_KEY>
Accept: application/json
Content-Type: application/json

Result codes in the response examples

HTTP status and result code are operation-specific. Field-validation messages can include the affected field name.

HTTPCodeResultMeaning
200R0000OkThe request was processed successfully
400R0002ErrorField is not properly formatted
400R0221ErrorCustomers organization is inactive
401R0003ErrorAuthentication token is invalid
403R0003ErrorAccess not allowed
404R0142ErrorCustomer token is invalid
500R0999ErrorSomething went wrong
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}

Customer UUID to retrieve/update, or filter in the customer list.

Body Params

JSON request body. Required and conditional fields are defined by the schema. Named examples show supported request variants.

Send at least one recognized field. When changing names, provide a valid first_name/last_name pair or company_name. Empty string can clear supported contact/name fields; phone and postal_code also accept null. Deactivating the customer may deactivate its related profiles and schedules.

string
length ≤ 50

Customer or cardholder given name.

string
length ≤ 50

Customer or cardholder family name.

string
length ≤ 100

Customer company name; can supply the company identity instead of an individual name pair.

string
length ≤ 100

Street address, first line.

string
length ≤ 25

Street address, second line, such as suite or apartment.

string
length ≤ 2

Two-letter country code, such as US or CA.

string
length ≤ 20

Address city.

string
length ≤ 50

State/province code. US and CA values are checked against their country-specific state/province lists when country is supplied.

string | null

Postal code. Creation validates its format against the supplied country; include country when providing postal_code. US examples: 10001 or 10001-1234; CA example: K1A 0B1. The update validator currently accepts US ZIP format, an empty string or null.

string | null

Contact phone. A nonempty value must match the supported phone-number format and have 7–20 characters; null clears the value on update.

string

Customer email address.

string
length ≤ 15

Optional customer identification value; customer read responses mask sensitive values.

string | null

UUID of the customer default payment profile; null represents no default.

string
length ≤ 100

Optional first customer-defined text value.

string
length ≤ 100

Optional second customer-defined text value.

string
length ≤ 100

Optional third customer-defined text value.

string
length ≤ 100

Partner-assigned reference used for reconciliation and supported reference lookups. Resource creation can enforce uniqueness within its scope.

boolean

Whether the resource is active and available for its supported operations.

string
enum

Customer classification: Billing, Shipping or Other.

Allowed:
Responses

default

Other infrastructure or forwarded downstream response. HTTP status and body must be preserved; do not assume every error has a Payology R-code. No fixed payload is guaranteed.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json