Logo
GoCardless API API Documentation

Update a Customer

PUT {{url}}/customers/{{customer}}

Updates a customer object. Supports all of the fields supported when creating a customer.

Update a customer API Docs

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "customers": { "id": "CU0014DQP7YPKP", "created_at": "2024-03-22T20:42:11.311Z", "email": "marjorie95@example.net", "given_name": "Sammie", "family_name": "Mitchell", "company_name": null, "address_line1": "1045 Bernhard Motorway", "address_line2": null, "address_line3": null, "city": "East Jameyport", "region": null, "postal_code": "E8 3GX", "country_code": "GB", "language": "en", "swedish_identity_number": null, "danish_identity_number": null, "phone_number": null, "metadata": { "crm_id": "ABCD158" } } }



Curl
curl -X PUT 'https://api-sandbox.gocardless.com/customers/https://api-sandbox.gocardless.com' -d '{"customers":{"email":"$randomExampleEmail","given_name":"$randomExampleEmail","family_name":"$randomExampleEmail","address_line1":"$randomExampleEmail","city":"$randomExampleEmail","postal_code":"E8 3GX","country_code":"GB","metadata":{"crm_id":"ABCD$randomExampleEmail"}}}'

ENDPOINTS