Update a Customer
This section shows you how to update a customer token.
Endpoint
Test:
PATCH
https://apitest.cybersource.com
/tms/v2/customers/{customerTokenId}
Production:
PATCH
https://api.cybersource.com
/tms/v2/customers/{customerTokenId}
Production in India:
PATCH
https://api.in.cybersource.com
/tms/v2/customers/{customerTokenId}
The is the customer token ID returned in the
{customerTokenId}
id
field when you created the customer token. For more information, see Create a Customer. Include only the fields
you want to add or update in the request. Optional Fields for Updating a Customer
You can include any of the following fields in the body of the request:
- buyerInformation.merchantCustomerID
- buyerInformation.email
- clientReferenceInformation.code
- merchantDefinedInformation.name
- merchantDefinedInformation.value
Related Information
REST Example: Updating a Customer
Request
PATCHhttps://apitest.cybersource.com/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078
Response to a Successful Request
{ "_links": { "self": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078" }, "paymentInstruments": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/payment-instruments" }, "shippingAddresses": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/shipping-addresses" } }, "id": "F2F3ADA770102B51E053A2598D0A9078", "buyerInformation": { "merchantCustomerID": "Your customer identifier", "email": "test@cybs.com" }, "clientReferenceInformation": { "code": "TC50171_3" }, "merchantDefinedInformation": [ { "name": "data1", "value": "Your customer data" } ], "metadata": { "creator": "testrest" } }