Create a Customer
This section shows you how to create a customer token with no payment details.
Endpoint
Test:
POST
https://apitest.visaacceptance.com
/tms/v2/customersProduction:
POST
https://api.visaacceptance.com
/tms/v2/customersRequired Fields for Creating 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
REST Example: Creating a Customer
Request
12345678910111213{"buyerInformation": { "merchantCustomerID": "Your customer identifier", "email": "test@vas.com" }, "clientReferenceInformation": { "code": "123456" }, "merchantDefinedInformation": [ { "name": "data1", "value": "Your customer data" } ]}
Response to a Successful Request
12345678910111213141516171819202122232425262728{"_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@vas.com" }, "clientReferenceInformation": { "code": "TC50171_3" }, "merchantDefinedInformation": [ { "name": "data1", "value": "Your customer data" } ], "metadata": { "creator": "testrest" }}