|
StateCode
|
The state code in the address of the customer making the payment.
Format: 2-letter code (TX, FL, etc.)
</td><td>
Required
</td></tr><tr><td>
PostalCode
</td><td>
The postal/zip code in the address of the customer making the payment.
</td><td>
Required
</td></tr><tr><td>
CountryCode
</td><td>
The country code in the address of the customer making the payment.
Example: United States = US
</td><td>
Required
</td></tr><tr><td>
Email
</td><td>
The email address of the customer making the payment.
Format: [xxx@xxx.xxx](mailto:xxx@xxx.xxx)
</td><td>
Required
</td></tr><tr><td>
MobilePhone
</td><td>
The 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
</td><td>
Required
</td></tr><tr><td>
CCNumber
</td><td>
The credit card number of the customer making the payment. No spaces should be included in the parameter.
</td><td>
💳 REQUIRED FOR CREDIT CARD METHOD
</td></tr><tr><td>
ExpirationMonth
</td><td>
The month in which the paying customer's credit card will expire. Months 1-9 require a preceding 0.
Example: "05", "11"
</td><td>
💳 REQUIRED FOR CREDIT CARD METHOD
</td></tr><tr><td>
ExpirationYear
</td><td>
The year in which the paying customer's credit card will expire. Must be provided in 2-digit format.
Example: 2016 = "16"
</td><td>
💳 REQUIRED FOR CREDIT CARD METHOD
</td></tr><tr><td>
CVV
</td><td>
The 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.
</td><td>
💳 REQUIRED FOR CREDIT CARD METHOD
</td></tr><tr><td>
CardType
</td><td>
The brand of the card.
</td><td>
Optional
</td></tr><tr><td>
AccountName
</td><td>
The name associated with the bank account.
</td><td>
Optional
</td></tr><tr><td>
AccountType
</td><td>
The type of bank account.
</td><td>
Optional
</td></tr><tr><td>
RoutingNumber
</td><td>
For ACH transactions, enter the routing account number for the customer.
</td><td>
🏦 REQUIRED FOR ACH METHOD
</td></tr><tr><td>
AccountNumber
</td><td>
For ACH transactions, enter the bank account number for the customer.
</td><td>
🏦 REQUIRED FOR ACH METHOD
</td></tr><tr><td>
PaymentType
</td><td>
The type of payment associated with the token. This can accept the following values:
* "Card"
* "ACH"\
Default value is set to "Card".
</td><td>
Optional
</td></tr><tr><td>
IndividualID
</td><td>
The ID associated with the individual in the Everyware system.
</td><td>
Optional
* \*REQUIRED when tokenizing ACH
</td></tr><tr><td>
CustomerExternalID
</td><td>
A unique identifier from an external system for the customer that Everyware can store.
</td><td>
Optional
</td></tr></tbody></table>
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": "test@everyware.com",
"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": "test@everyware.com",
"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": "test@everyware.com",
"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": "test@everyware.com",
"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
}
|