Create token
Tokens
Using our tokenization service you can tokenize re-usable payment data like card data, bank account data including Direct Debit Mandates and PayPal BillingAgreementIDs. The main purpose for tokens is re-use of payment details. The additional benefit is that you do not need to store any sensitive payment details on your server, while still having the benefit to be able to re-use them. This allows you to process recurring card transactions without actually having access to the real card data.
Tokens can be used for two types of transactions:
- Recurring: Automatically charging your consumer in a regular, e.g. monthly, time frame;
- One-off: Charge the consumer without the consumer having to re-enter all of their payment details.
The second scenario can be used to facilitate a one-click checkout solution, that would still allow the consumer to enter only their CVV value for a card transaction. CVV values can't be tokenized as they are not allowed to be stored at all.
Besides the re-use of payment data, tokens have one other major use-case: Direct Debit Mandates. Especially SEPA Direct Debit transactions require that the mandate for the transactions is managed through a token with an associated mandate. Mandates are created in one go with the token, but can have a state that requires that they are approved before they can be used. As the mandate process is in most cases an offline process the approval will allow you to set the location and date where and when the mandate was signed by the consumer. Without an approved SEPA mandate you will not be able to process any payments regarding this mandate.
Request
Use this call to tokenize payment details. Note that only basic input validation is performed as no actual transaction is processed. We do not check the validity of the payment details with any of its acquirers or third party payment processors. If you want to only tokenize payment details that have been successfully processed it is advised to create tokens using the tokenize action on successful payments. The payload can, next to the paymentProductID contain one of the following types of objects to tokenize:
- card data
- SEPA Direct Debit data (including mandate information)
- Non SEPA Direct Debit data
- eWallet data
Tokenization using Encrypted Customer Input
Note: this applies only for sending encrypted customer card data, and cannot be used to tokenize (SEPA) Direct Debit or eWallet data
The mandatory and optional fields are the same as for the card group when not using the encrypted customer input.
Please ensure that the following 3 mandatory fields are present:- cardNumber
- expiryDate
- countryCode
- cardholderName
- additionalInfo
- city
- houseNumber
- stateCode
- street
- zip
- firstName
- surname
PayloadCreateTokenRequest
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
object | no | read close | |
close
DescriptionObject containing card details
|
|||
close
DescriptionAn alias for the token. This can be used to visually represent the token.
If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products. Do not include any unobfuscated sensitive data in the alias. |
|||
close
DescriptionObject containing the details of the customer
Depends on:Required for requests that will be processed by the GlobalCollect Payment platform.
|
|||
close
DescriptionAdditional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
|
|||
close
DescriptionCity
Note: For payments with product 1503 the maximum length is not 40 but 20. Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionISO 3166-1 alpha-2 country code
Depends on:Required for create token requests that will be processed by the GlobalCollect Payment platform.
|
|||
close
DescriptionHouse number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Depends on:Required when address is included in Seller.
Required for 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) and 6107 (PicPay). |
|||
close
DescriptionFull name of the state or province
Depends on:Required by the TechProcess platform for cross-border merchants.
|
|||
close
DescriptionISO 3166-2 alpha-3 state code
Notes:
Depends on:Required for payments with paymentProductId 1503 (Boleto), 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay).
|
|||
close
DescriptionStreetname
Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705), except when a token has been included in the request that includes this value. Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionZip code
Note: For payments with product 1503 the maximum length is not 10 but 8. Depends on:Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value.
Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brazil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. |
|||
close
DescriptionThe date of incorporation is the specific date when the company was registered with the relevant authority.
Format: YYYYMMDD Depends on:Required by the TechProcess platform for cross-border payments when the property order.customer.isCompany is set to true.
|
|||
close
DescriptionName of company, as a customer
Depends on:Required by the WOPA platform for payments when the property order.customer.fiscalNumber is set to:
|
|||
close
DescriptionLocal VAT number of the company
Depends on:One of the following properties is required for merchants that use Merchant Category Codes (MCC)
V4829, V6012, M4829, V6051, M6540, 7995:
|
|||
close
DescriptionYour identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
|
|||
close
DescriptionObject containing personal information of the customer
|
|||
close
DescriptionGiven name(s) or first name(s) of the customer
|
|||
close
DescriptionSurname(s) or last name(s) of the customer
|
|||
close
DescriptionMiddle name - In between first name and surname - of the customer
|
|||
close
Deprecated:
Use companyInformation.vatNumber instead
DescriptionLocal VAT number of the company
|
|||
close
DescriptionThe complete credit/debit card number (also know as the PAN). The minimum input length is 12 digits.
Depends on:Required for Create and Update token.
|
|||
close
DescriptionThe card holder's name on the card. Minimum length of 2, maximum length of 51 characters.
|
|||
close
DescriptionExpiry date of the card
Format: MMYY Depends on:Required for Create and Update token.
|
|||
close
DescriptionIssue number on the card (if applicable)
|
|||
close
DescriptionDate of the first transaction (for ATOS)
Format: YYYYMMDD |
|||
close
DescriptionReference of the provider (of the first transaction) - used to store the ATOS Transaction Certificate
|
|||
object | no | read close | |
close
DescriptionObject containing eWallet details
|
|||
close
DescriptionAn alias for the token. This can be used to visually represent the token.
If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products. Do not include any unobfuscated sensitive data in the alias. |
|||
close
DescriptionAdditional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
|
|||
close
DescriptionCity
Note: For payments with product 1503 the maximum length is not 40 but 20. Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionISO 3166-1 alpha-2 country code
Depends on:Required by the GlobalCollect platform.
Required by the TechProcess platform. |
|||
close
DescriptionHouse number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Depends on:Required when address is included in Seller.
Required for 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) and 6107 (PicPay). |
|||
close
DescriptionFull name of the state or province
Depends on:Required by the TechProcess platform for cross-border merchants.
|
|||
close
DescriptionISO 3166-2 alpha-3 state code
Notes:
Depends on:Required for payments with paymentProductId 1503 (Boleto), 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay).
|
|||
close
DescriptionStreetname
Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705), except when a token has been included in the request that includes this value. Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionZip code
Note: For payments with product 1503 the maximum length is not 10 but 8. Depends on:Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value.
Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brazil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. |
|||
close
DescriptionThe date of incorporation is the specific date when the company was registered with the relevant authority.
Format: YYYYMMDD Depends on:Required by the TechProcess platform for cross-border payments when the property order.customer.isCompany is set to true.
|
|||
close
DescriptionName of company, as a customer
Depends on:Required by the WOPA platform for payments when the property order.customer.fiscalNumber is set to:
|
|||
close
DescriptionLocal VAT number of the company
Depends on:One of the following properties is required for merchants that use Merchant Category Codes (MCC)
V4829, V6012, M4829, V6051, M6540, 7995:
|
|||
close
DescriptionYour identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
|
|||
close
DescriptionObject containing personal information of the customer
|
|||
close
DescriptionGiven name(s) or first name(s) of the customer
|
|||
close
DescriptionSurname(s) or last name(s) of the customer
|
|||
close
DescriptionMiddle name - In between first name and surname - of the customer
|
|||
close
Deprecated:
Use companyInformation.vatNumber instead
DescriptionLocal VAT number of the company
|
|||
close
DescriptionIdentification of the PayPal recurring billing agreement
Depends on:Required for the creation of a PayPal token.
|
|||
object | no | read close | |
close
DescriptionObject containing non SEPA Direct Debit details
|
|||
close
DescriptionAn alias for the token. This can be used to visually represent the token.
If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products. Do not include any unobfuscated sensitive data in the alias. |
|||
close
DescriptionAdditional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
|
|||
close
DescriptionCity
Note: For payments with product 1503 the maximum length is not 40 but 20. Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionISO 3166-1 alpha-2 country code
Depends on:Required by the GlobalCollect platform.
Required by the TechProcess platform. |
|||
close
DescriptionHouse number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Depends on:Required when address is included in Seller.
Required for 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) and 6107 (PicPay). |
|||
close
DescriptionFull name of the state or province
Depends on:Required by the TechProcess platform for cross-border merchants.
|
|||
close
DescriptionISO 3166-2 alpha-3 state code
Notes:
Depends on:Required for payments with paymentProductId 1503 (Boleto), 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay).
|
|||
close
DescriptionStreetname
Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705), except when a token has been included in the request that includes this value. Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionZip code
Note: For payments with product 1503 the maximum length is not 10 but 8. Depends on:Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value.
Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brazil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. |
|||
close
DescriptionThe date of incorporation is the specific date when the company was registered with the relevant authority.
Format: YYYYMMDD Depends on:Required by the TechProcess platform for cross-border payments when the property order.customer.isCompany is set to true.
|
|||
close
DescriptionName of company, as a customer
Depends on:Required by the WOPA platform for payments when the property order.customer.fiscalNumber is set to:
|
|||
close
DescriptionLocal VAT number of the company
Depends on:One of the following properties is required for merchants that use Merchant Category Codes (MCC)
V4829, V6012, M4829, V6051, M6540, 7995:
|
|||
close
DescriptionYour identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
|
|||
close
DescriptionObject containing personal information of the customer
|
|||
close
DescriptionGiven name(s) or first name(s) of the customer
|
|||
close
DescriptionSurname(s) or last name(s) of the customer
|
|||
close
DescriptionMiddle name - In between first name and surname - of the customer
|
|||
close
Deprecated:
Use companyInformation.vatNumber instead
DescriptionLocal VAT number of the company
|
|||
close
DescriptionObject containing specific data for Direct Debit UK
|
|||
close
DescriptionCore reference number for the direct debit instruction in UK
Depends on:Required, except when a token has been included in the request that includes this value.
|
|||
close
DescriptionObject containing account holder name and bank account information
|
|||
close
DescriptionName of the account holder
Depends on:Required for Create and Update token calls for ACH (730).
|
|||
close
DescriptionBank account number
Depends on:Required for Direct Debit UK (705) and ACH (730) payments, except when a token has been included in the request that includes this value.
Required for Create and Update token calls. |
|||
close
DescriptionBank code
Depends on:Required for Direct Debit UK (705) and ACH (730) payments, except when a token has been included in the request that includes this value.
Required for Create and Update token calls for ACH (730). |
|||
close
DescriptionName of the bank
|
|||
close
DescriptionBranch code
|
|||
close
DescriptionBank check digit
|
|||
close
DescriptionISO 3166-1 alpha-2 country code of the country where the bank account is held
For UK payouts this value is automatically set to GB as only payouts to UK accounts are supported.
|
|||
close
DescriptionObject containing specific data for ACH
|
|||
close
DescriptionObject containing account holder name and bank account information
|
|||
close
DescriptionName of the account holder
Depends on:Required for Create and Update token calls for ACH (730).
|
|||
close
DescriptionBank account number
Depends on:Required for Direct Debit UK (705) and ACH (730) payments, except when a token has been included in the request that includes this value.
Required for Create and Update token calls. |
|||
close
DescriptionBank code
Depends on:Required for Direct Debit UK (705) and ACH (730) payments, except when a token has been included in the request that includes this value.
Required for Create and Update token calls for ACH (730). |
|||
close
DescriptionName of the bank
|
|||
close
DescriptionBranch code
|
|||
close
DescriptionBank check digit
|
|||
close
DescriptionISO 3166-1 alpha-2 country code of the country where the bank account is held
For UK payouts this value is automatically set to GB as only payouts to UK accounts are supported.
|
|||
object | no | read close | |
close
DescriptionObject containing SEPA Direct Debit details
|
|||
close
DescriptionAn alias for the token. This can be used to visually represent the token.
If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products. Do not include any unobfuscated sensitive data in the alias. |
|||
close
DescriptionObject containing the details of the customer
|
|||
close
DescriptionObject containing the billing address details
Depends on:Required for the creation of a token for the countryCode property within this object.
|
|||
close
DescriptionAdditional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
|
|||
close
DescriptionCity
Note: For payments with product 1503 the maximum length is not 40 but 20. Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionISO 3166-1 alpha-2 country code
Depends on:Required by the GlobalCollect platform.
Required by the TechProcess platform. |
|||
close
DescriptionHouse number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Depends on:Required when address is included in Seller.
Required for 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) and 6107 (PicPay). |
|||
close
DescriptionFull name of the state or province
Depends on:Required by the TechProcess platform for cross-border merchants.
|
|||
close
DescriptionISO 3166-2 alpha-3 state code
Notes:
Depends on:Required for payments with paymentProductId 1503 (Boleto), 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay).
|
|||
close
DescriptionStreetname
Depends on:Required by the GlobalCollect platform for Invoice payments (201)
Required by the GlobalCollect platform for Direct Debit UK (705), except when a token has been included in the request that includes this value. Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brasil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. Required by the GlobalCollect platform when address is included in Seller. Required by the GlobalCollect platform for the creation of a Payout. |
|||
close
DescriptionZip code
Note: For payments with product 1503 the maximum length is not 10 but 8. Depends on:Required by the GlobalCollect platform for Direct Debit UK (705) except when a token has been included in the request that includes this value.
Required by the GlobalCollect platform for payments with product 9000 (AfterPay Installments) or 9001 (AfterPay Invoice). Required by the WOPA platform for payments with product 6101 (Banco do Brazil), 6102 (Itaú), 6103 (Banrisul), 6104 (Bradesco), 6105 (Pix) or 6107 (PicPay). Required by the TechProcess platform for cross-border merchants. |
|||
close
DescriptionThe date of incorporation is the specific date when the company was registered with the relevant authority.
Format: YYYYMMDD Depends on:Required by the TechProcess platform for cross-border payments when the property order.customer.isCompany is set to true.
|
|||
close
DescriptionName of company, as a customer
Depends on:Required by the WOPA platform for payments when the property order.customer.fiscalNumber is set to:
|
|||
close
DescriptionLocal VAT number of the company
Depends on:One of the following properties is required for merchants that use Merchant Category Codes (MCC)
V4829, V6012, M4829, V6051, M6540, 7995:
|
|||
close
DescriptionObject containing contact details like email address and phone number
|
|||
close
DescriptionEmail address of the customer
|
|||
close
DescriptionPreference for the type of email message markup
|
|||
close
DescriptionYour identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
|
|||
close
DescriptionObject containing personal information of the customer
|
|||
close
DescriptionGiven name(s) or first name(s) of the customer
|
|||
close
DescriptionSurname(s) or last name(s) of the customer
|
|||
close
DescriptionMiddle name - In between first name and surname - of the customer
|
|||
close
Deprecated:
Use companyInformation.vatNumber instead
DescriptionLocal VAT number of the company
|
|||
close
DescriptionObject containing the mandate details
|
|||
close
DescriptionObject containing Account holder and IBAN information
Depends on:Required for the creation of a token for the iban property within this object.
|
|||
close
DescriptionName in which the account is held.
Depends on:Required for the creation of a Payout
Required for Create and Update token calls. |
|||
close
DescriptionThe IBAN is the International Bank Account Number. It is an internationally agreed format for the BBAN and includes the ISO country code and two check digits.
Depends on:Required for the creation of a Payout
Required for Create and Update token. Required for payments with product 9000 (AfterPay Installments) in Austria (AT) and Germany (DE). Required for Create mandate and Create payment with mandate calls |
|||
close
DescriptionIdentifies the contract between customer and merchant
|
|||
close
DescriptionObject containing information on the debtor
Depends on:Required for the creation of a token for the surname property within this object.
|
|||
close
DescriptionAdditional information about the debtor's address, like Suite II, Apartment 2a
|
|||
close
DescriptionCity of the debtor's address
|
|||
close
DescriptionISO 3166-1 alpha-2 country code of the debtor's address
|
|||
close
DescriptionDebtor first name
|
|||
close
DescriptionHouse number of the debtor's address
|
|||
close
DescriptionState of debtor address
|
|||
close
DescriptionISO 3166-2 alpha-3 state code
Notes:
Depends on:Required for payments with paymentProductId 1503 (Boleto)
|
|||
close
DescriptionStreet of debtor's address
|
|||
close
DescriptionDebtor's last name
Depends on:Required for the creation of a token.
|
|||
close
DescriptionPrefix of the debtor's last name
|
|||
close
DescriptionZIP code of the debtor's address
|
|||
close
Description
|
|||
close
DescriptionObject containing the details of the mandate approval
|
|||
close
DescriptionThe date when the mandate was signed
Format: YYYYMMDD |
|||
close
DescriptionThe city where the mandate was signed
|
|||
close
Description
|
|||
close
DescriptionIndicates whether a pre-notification should be sent to the customer.
|
|||
encryptedCustomerInput | string | no | read close |
close
DescriptionData that was encrypted client side containing all customer entered data elements like card data.
Note: Because this data can only be submitted once to our system and contains encrypted card data you should not store it. As the data was captured within the context of a client session you also need to submit it to us before the session has expired. |
|||
paymentProductId | integer (5) | depends no no no | read close |
close
DescriptionPayment product identifier
Please see payment products for a full overview of possible values. Depends on:Required by the WOPA platform for creating tokens
|
|||
Property | Type | Required | Details |
Request example
This scenario you will probably use the most
-
Address billingAddress = new Address(); billingAddress.setAdditionalInfo("Suite II"); billingAddress.setCity("Monument Valley"); billingAddress.setCountryCode("US"); billingAddress.setHouseNumber("1"); billingAddress.setState("Utah"); billingAddress.setStreet("Desertroad"); billingAddress.setZip("84536"); CompanyInformation companyInformation = new CompanyInformation(); companyInformation.setName("Acme Labs"); PersonalNameToken name = new PersonalNameToken(); name.setFirstName("Wile"); name.setSurname("Coyote"); name.setSurnamePrefix("E."); PersonalInformationToken personalInformation = new PersonalInformationToken(); personalInformation.setName(name); CustomerToken customer = new CustomerToken(); customer.setBillingAddress(billingAddress); customer.setCompanyInformation(companyInformation); customer.setMerchantCustomerId("1234"); customer.setPersonalInformation(personalInformation); BankAccountBban bankAccountBban = new BankAccountBban(); bankAccountBban.setAccountNumber("000000123456"); bankAccountBban.setBankCode("05428"); bankAccountBban.setBranchCode("11101"); bankAccountBban.setCheckDigit("X"); bankAccountBban.setCountryCode("IT"); TokenNonSepaDirectDebitPaymentProduct705SpecificData paymentProduct705SpecificData = new TokenNonSepaDirectDebitPaymentProduct705SpecificData(); paymentProduct705SpecificData.setAuthorisationId("123456"); paymentProduct705SpecificData.setBankAccountBban(bankAccountBban); MandateNonSepaDirectDebit mandate = new MandateNonSepaDirectDebit(); mandate.setPaymentProduct705SpecificData(paymentProduct705SpecificData); TokenNonSepaDirectDebit nonSepaDirectDebit = new TokenNonSepaDirectDebit(); nonSepaDirectDebit.setCustomer(customer); nonSepaDirectDebit.setMandate(mandate); CreateTokenRequest body = new CreateTokenRequest(); body.setNonSepaDirectDebit(nonSepaDirectDebit); body.setPaymentProductId(705); CreateTokenResponse response = client.v1().merchant("merchantId").tokens().create(body);
Responses
When we are able to tokenize the payment details two possible responses can occur:
- HTTP Response 200 is returned when you try to tokenize card details for a card that has already been tokenized in the past
- HTTP Response 201 is returned when the system successfully created a new token
Response 200 - OKCreateTokenResponse
An HTTP 200 response indicates that the card data was previously tokenized. The previous token is returned again. The evaluation regarding duplication is done purely on the card number. Please note that it is possible that the data other than the card number is different from the stored data, in that case you may need to update the token with the new data.
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
isNewToken | boolean | no | read close |
close
DescriptionIndicates if a new token was created
|
|||
originalPaymentId | string | no | read close |
close
DescriptionThe initial Payment ID of the transaction from which the token has been created
|
|||
token | string | no | read close |
close
DescriptionID of the token
|
|||
Property | Type | Required | Details |
Response example
This scenario you will probably use the most
-
{ "isNewToken" : false, "token" : "49575a9c-5bd5-4539-a672-b5b4e7abf681" }
Response 201 - CreatedCreateTokenResponse
An HTTP 201 response indicates that the data was successfully tokenized and the newly created token is returned.
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
isNewToken | boolean | no | read close |
close
DescriptionIndicates if a new token was created
|
|||
originalPaymentId | string | no | read close |
close
DescriptionThe initial Payment ID of the transaction from which the token has been created
|
|||
token | string | no | read close |
close
DescriptionID of the token
|
|||
Property | Type | Required | Details |
Response example
This scenario you will probably use the most
-
{ "isNewToken" : true, "token" : "49575a9c-5bd5-4539-a672-b5b4e7abf681" }
Response 400 - Bad requestErrorResponse
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
errorId | string | yes | read close |
close
DescriptionUnique reference, for debugging purposes, of this error response
|
|||
array of object | yes | read close | |
close
DescriptionList of one or more errors
|
|||
close
DescriptionCategory the error belongs to. The category should give an indication of the type of error you are dealing with.
Possible values:
|
|||
close
DescriptionError code
|
|||
close
DescriptionHTTP status code for this error that can be used to determine the type of error
|
|||
close
DescriptionID of the error. This is a short human-readable message that briefly describes the error.
|
|||
close
DescriptionHuman-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
|
|||
close
DescriptionReturned only if the error relates to a value that was missing or incorrect.
Contains a location path to the value as a JSonata query. Some common examples:
|
|||
close
DescriptionID of the request that can be used for debugging purposes
|
|||
Property | Type | Required | Details |
Response example
This scenario you will probably use the most
-
{ "errorId" : "15eabcd5-30b3-479b-ae03-67bb351c07e6-00000092", "errors" : [ { "code" : "20000000", "propertyName" : "bankAccountBban.accountNumber", "message" : "PARAMETER_NOT_FOUND_IN_REQUEST" } ] }
Response 403 - UnauthorizedErrorResponse
When something is wrong with your credentials you will get a 403 response. This could happen when your account is not allowed to tokenize any payment data.
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
errorId | string | yes | read close |
close
DescriptionUnique reference, for debugging purposes, of this error response
|
|||
array of object | yes | read close | |
close
DescriptionList of one or more errors
|
|||
close
DescriptionCategory the error belongs to. The category should give an indication of the type of error you are dealing with.
Possible values:
|
|||
close
DescriptionError code
|
|||
close
DescriptionHTTP status code for this error that can be used to determine the type of error
|
|||
close
DescriptionID of the error. This is a short human-readable message that briefly describes the error.
|
|||
close
DescriptionHuman-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
|
|||
close
DescriptionReturned only if the error relates to a value that was missing or incorrect.
Contains a location path to the value as a JSonata query. Some common examples:
|
|||
close
DescriptionID of the request that can be used for debugging purposes
|
|||
Property | Type | Required | Details |
Response example
This scenario you will probably use the most
-
{ "errorId" : "657b10da-d2f9-4088-a948-bf190ef516b1-000002b4", "errors" : [ { "code" : "700660", "message" : "SERVICE_NOT_ALLOWED" } ] }