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
{customerTokenId}
is the customer token ID returned in the
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
Update a Customer

REST Example: Updating a Customer

Request
PATCH
https://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" } }
Update a Customer