Place orders via API using a 2Pay.js token
Overview
How to use a 2Pay.js token
Place an order with 2Pay.js Token example
{
"Country": "br",
"Currency": "brl",
"CustomerIP": "91.220.121.21",
"CustomerReference": "GFDFE",
"ExternalCustomerReference": "IOUER",
"ExternalReference": "REST_API_AVANGTE",
"Language": "en",
"Source": "testAPI.com",
"Affiliate": {},
"BillingDetails": {
"Address1": "Test Address",
"City": "LA",
"CountryCode": "BR",
"Email": "customer@2Checkout.com",
"FirstName": "Customer",
"FiscalCode": "056.027.963-98",
"LastName": "2Checkout",
"Phone": "556133127400",
"State": "DF",
"Zip": "70403-900"
},
"Items": [
{
"Code": "my_subscription_1",
"Quantity": "1"
}
],
"PaymentDetails": {
"Currency": "BRL",
"CustomerIP": "91.220.121.21",
"PaymentMethod": {
"EesToken": "7b88d2cf-6121-4cac-90a1-8eefc4cb3e6e",
"Vendor3DSReturnURL": "www.test.com",
"Vendor3DSCancelURL": "www.test.com"
},
"Type": "EES_TOKEN_PAYMENT"
}
}Place a test order with 2Pay.js token example
Response errors
How to use a 2Pay.js token with API 3D Secure
Recurring Payments and 1-Click Purchases with 2Pay.js Token
Recurring payment
1-Click Purchase
Last updated
Was this helpful?