Create a Customer {#tms-cust-tkn-create-intro}
==============================================

This section describes how to create a customer token with no payment details.

Endpoint
--------

**Test:** `POST ``https://apitest.visaacceptance.com``/tms/v2/customers`{#tms-cust-tkn-create-intro_restcust-test}  
**Production:** `POST ``https://api.visaacceptance.com``/tms/v2/customers`

Required Fields for Creating a Customer {#tms-cust-tkn-create-reqfields}
========================================================================

You can include any of the following fields in the body of the request:

buyerInformation.merchantCustomerID
:

buyerInformation.email
:

clientReferenceInformation.code
:

merchantDefinedInformation.name
:

merchantDefinedInformation.value
:
{#tms-cust-tkn-create-reqfields_dl_u12_vqy_dwb}

REST Example: Creating a Customer {#tms-cust-tkn-create-ex-rest}
================================================================

Request

```keyword
{
  "buyerInformation": {
    "merchantCustomerID": "Your customer identifier",
    "email": "test@vas.com"
  },
  "clientReferenceInformation": {
    "code": "123456"
  },
  "merchantDefinedInformation": [
    {
      "name": "data1",
      "value": "Your customer data"
    }
  ]
}
```

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@vas.com"
  },
  "clientReferenceInformation": {
    "code": "TC50171_3"
  },
  "merchantDefinedInformation": [
    {
      "name": "data1",
      "value": "Your customer data"
    }
  ],
  "metadata": {
    "creator": "testrest"
  }
}
```

