Creating a Payment Token

Create a credit card or ACH token and save it for future use.

Access Endpoint URL: https://rest.everyware.com/api/Default/CreateToken [POST]

The CreateToken method tokenizes a credit card or bank account and saves it in a vault for future use.

Inbound Parameters

Parameters should be passed in a single JSON-body object.

Parameter NameDescriptionOptional/Required
FirstNameThe first name of the customer making the payment.Required
LastNameThe last name of the customer making the payment.Required
Address1Line one of the address of the customer making the payment.Required
Address2Line two of the address of the customer making the payment.Optional
CityThe city in the address of the customer making the payment.Required
StateCodeThe state code in the address of the customer making the payment.

Format: 2-letter code (TX, FL, etc.)
Required
PostalCodeThe postal/zip code in the address of the customer making the payment.Required
CountryCodeThe country code in the address of the customer making the payment.

Example: United States = US
Required
EmailThe email address of the customer making the payment.

Format: [email protected]
Required
MobilePhoneThe mobile phone number (10-digits max, no formatting) of the customer making the payment. If Everyware messaging and invoicing are not being used, a unique 10-digit number that is not a phone number may be used. Speak with your Everyware representative for more information.

Example: 3055551212
Required
CCNumberThe credit card number of the customer making the payment. No spaces should be included in the parameter.💳 REQUIRED FOR CREDIT CARD METHOD
ExpirationMonthThe month in which the paying customer's credit card will expire. Months 1-9 require a preceding 0.

Example: "05", "11"
💳 REQUIRED FOR CREDIT CARD METHOD
ExpirationYearThe year in which the paying customer's credit card will expire. Must be provided in 2-digit format.

Example: 2016 = "16"
💳 REQUIRED FOR CREDIT CARD METHOD
CVVThe verification code on the paying customer's credit card.

For Visa or Master Card, this is a 3-digit number. For American Express, this is a 4-digit number.
💳 REQUIRED FOR CREDIT CARD METHOD
CardTypeThe brand of the card.Optional
AccountNameThe name associated with the bank account.Optional
AccountTypeThe type of bank account.Optional
RoutingNumberFor ACH transactions, enter the routing account number for the customer.🏦 REQUIRED FOR ACH METHOD
AccountNumberFor ACH transactions, enter the bank account number for the customer.🏦 REQUIRED FOR ACH METHOD
PaymentTypeThe type of payment associated with the token. This can accept the following values:

- PaymentType.CreditCard
- PaymentType.ACH

Default value is set to PaymentType.CreditCard.
Optional
IndividualIDThe ID associated with the individual in the Everyware system.Optional
CustomerExternalIDA unique identifier from an external system for the customer that Everyware can store.Optional

Sample Use Case 1: Card Payment Token

{
    "FirstName": "Test",
    "LastName": "Token",
    "Address1": "123 Main St",
    "Address2": "Apt B",
    "City": "Austin",
    "StateCode": "TX",
    "PostalCode": "73301",
    "CountryCode": "US",
    "Email": "[email protected]",
    "MobilePhone": "5125551212",
    "CCNumber": "4111111111111111",
    "ExpirationMonth": "02",
    "ExpirationYear": "23",
    "CVV": "092"
}
curl --location 'https://rest.everyware.com/api/Default/CreateToken' \
--header 'Authorization: Basic [xxx]' \
--header 'Content-Type: application/json' \
--data-raw ' {
    "FirstName": "Test",
    "LastName": "Token",
    "Address1": "123 Main St",
    "Address2": "Apt B",
    "City": "Austin",
    "StateCode": "TX",
    "PostalCode": "73301",
    "CountryCode": "US",
    "Email": "[email protected]",
    "MobilePhone": "5125551212",
    "CCNumber": "4111111111111111",
    "ExpirationMonth": "02",
    "ExpirationYear": "23",
    "CVV": "092"
}{
{
    "IsSuccess": true,
    "Message": "The token creation has been processed",
    "Data": {
        "TokenStatus": true,
        "TokenResult": "card_1A23bcDefGHiJKlMNopQrS4T"
    },
}

Sample Use Case 2: ACH Payment Token

{
    "FirstName": "Test",
    "LastName": "Token",
    "Address1": "123 Main St",
    "Address2": "Apt B",
    "City": "Austin",
    "StateCode": "TX",
    "PostalCode": "73301",
    "CountryCode": "US",
    "Email": "[email protected]",
    "MobilePhone": "5125551212",
    "AccountNumber": "123456",
    "RoutingNumber": "021000021"
}
curl --location 'https://rest.everyware.com/api/Default/CreateToken' \
--header 'Authorization: Basic [xxx]' \
--header 'Content-Type: application/json' \
--data-raw '{
    "FirstName": "Test",
    "LastName": "Token",
    "Address1": "123 Main St",
    "Address2": "Apt B",
    "City": "Austin",
    "StateCode": "TX",
    "PostalCode": "73301",
    "CountryCode": "US",
    "Email": "[email protected]",
    "MobilePhone": "5125551212",
    "AccountNumber": "123456",
    "RoutingNumber": "021000021"
}
{
    "IsSuccess": true,
    "Message": "The token creation has been processed",
    "Data": {
        "TransactionStatus": false,
        "InvoiceNumber": null,
        "InvoiceID": null,
        "ReceiptNumber": null,
        "TokenStatus": true,
        "TokenResult": "11000015191000112"
    },
    "OrderNumber": "E438273226",
    "SMSID": null
}