Create Payment Token

Generate a pay-in-full payment token based on the provided payment source. The token can be used to pay for an order of the given amount and currency.

Authenticated customers can only create tokens for themselves and not for other customers. All other clients may specify the customer they wish to be associated with the payment token using the Customer-Id header or by providing a customer specific payment source. If authenticating with a merchant public key, you cannot use a customer specific payment source.

For marketplace clients, you will need to indicate the merchant to create the token against using the Merchant-Id header.

SecurityMarketplace Api Key | Merchant Public Token | Merchant Secret Token | Customer JWT | Merchant JWT | Marketplace JWT | Admin JWT
Request
header Parameters
Customer-Id
string

Perform operation in the context of the given merchant customer. Usually not required — specify only if acting on behalf of a merchant customer not implied by the credentials specified in the Authorization header.

Merchant-Id
string

Perform operation in the context of the given merchant. Usually not required — specify only if acting on behalf of a merchant not implied by the credentials specified in the Authorization header.

Request Body schema: application/json
required
One of:
required
object (CreateApplePayToken1)

Create a payment token based on an Apple Pay datagram.

Responses
200
400
401
403
404
405
406
409
422
429
500
503
post/tokens
Request samples
application/json
{
  • "CreateApplePayToken": {
    }
}
Response samples
application/json
{
  • "BankAccountToken": {
    }
}
Copyright © April Solutions 2023. All right reserved.