Create Apple Pay token
Connect an Apple Pay token to the specified account.
Read our Apple Pay tutorial to learn more.
The token
data is defined by Apple Pay and should be passed through from Apple Pay’s response unmodified.
To access this endpoint using an access token
you’ll need to specify the /accounts/{accountID}/cards.write
scope.
|
|
{
"applePay": {
"brand": "Visa",
"cardDisplayName": "Visa 1256",
"cardType": "credit",
"dynamicLastFour": "string",
"expiration": {
"month": "01",
"year": "21"
},
"fingerprint": "9948962d92a1ce40c9f918cd9ece3a22bde62fb325a2f1fe2e833969de672ba3",
"issuerCountry": "US"
},
"paymentMethodID": "b7a60692-ab86-4eb0-b961-3bb4a714aa42",
"paymentMethodType": "moov-wallet"
}
Response headers
x-request-id
string
<uuid>
required
{
"error": "string"
}
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
{
"error": "string"
}
Response headers
x-request-id
string
<uuid>
required
{
"error": "string",
"paymentData": "string",
"paymentMethod": "string",
"transactionIdentifier": "string"
}
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
Response headers
x-request-id
string
<uuid>
required
Headers
x-moov-version
string
API version
Specify an API version.
API versioning follows the format vYYYY.QQ.BB
, where
YYYY
is the yearQQ
is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)BB
is the build number, starting at.01
, for subsequent builds in the same quarter.- For example,
v2024.01.00
is the initial release of the first quarter of 2024.
- For example,
The latest
version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
v2024.01.00
Path parameters
accountID
string
<uuid>
required
Body
The JSON structure returned from Apple Pay when authorizing a payment session.
Refer to Apple’s documentation for more information.
token
object
required
Contains the user’s payment information as returned from Apple Pay.
Refer to Apple’s documentation for more information.
Show child attributes
paymentData
object
required
Contains the encrypted payment data.
Refer to Apple’s documentation for more information.
Show child attributes
data
string
required
header
object
required
Information needed to decrypt Apple Pay payment data.
Refer to Apple’s documentation for more information.
Show child attributes
publicKeyHash
string
required
transactionId
string
required
ephemeralPublicKey
string
signature
string
required
version
string
required
paymentMethod
object
required
Provides information about the underlying card.
Refer to Apple’s documentation for more information.
Show child attributes
displayName
string
required
network
string
required
type
string
required
transactionIdentifier
string
required
billingContact
object
Billing contact information as returned from Apple Pay.
Refer to Apple’s documentation for more information.
Show child attributes
addressLines
array
administrativeArea
string
countryCode
string
locality
string
postalCode
string
Response
applePay
object
required
Show child attributes
brand
string<enum>
required
American Express
,
Discover
,
Mastercard
,
Visa
,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Apple.
It usually contains the brand and the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit
,
credit
,
prepaid
,
unknown
dynamicLastFour
string
required
expiration
object
required
Show child attributes
month
string
2 characters
required
year
string
2 characters
required
fingerprint
string
<=100 characters
required
issuerCountry
string
paymentMethodID
string<uuid>
required
paymentMethodType
string<enum>
required
moov-wallet
,
ach-debit-fund
,
ach-debit-collect
,
ach-credit-standard
,
ach-credit-same-day
,
rtp-credit
,
card-payment
,
push-to-card
,
pull-from-card
,
apple-pay
,
card-present-payment