cURL
curl --request POST \ --url https://pay.chargily.net/test/api/v2/customers/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "email": "<string>", "phone": "<string>", "address": { "country": "<string>", "state": "<string>", "address": "<string>" }, "metadata": {} }'
{ "id": "01hj0p5s3ygy2mx1czg2wzcc4x", "entity": "customer", "livemode": false, "name": "Hocine Saad", "email": null, "phone": null, "address": { "country": "Algeria", "state": "Tizi-Ouzou", "address": "123 Main Street" }, "metadata": null, "created_at": 1702977791, "updated_at": 1702977791 }
Updates the information of a customer by defining the values for the passed parameters. Any parameters not supplied will remain unaltered.
Show address