Apple Pay Tokenization
You can use this endpoint to handle Apple Pay token provisioning. If you want to use this endpoint, communicate with us.
Authorization
authorization
AuthorizationBearer <token>
In: header
Path Parameters
card_idstring
Card ID (Base 62 format)
Match
^[A-Za-z]{2,6}_[\w-]{22}$Example
"car_5tgliBmzjZ6mpQPRbQjfKj"Request Body
application/json
Attributes for Apple Pay token provisioning
certificatesarray<string>
List of certificates for token provisioning
noncestring
Nonce for token provisioning
nonce_signaturestring
Nonce signature for token provisioning
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.cert.monoban.co/v1/cards/car_5tgliBmzjZ6mpQPRbQjfKj/token-provisioning/apple-pay" \ -H "Content-Type: application/json" \ -d '{ "certificates": [ "string" ], "nonce": "string", "nonce_signature": "string" }'{
"activation_data": "string",
"encrypted_pass_data": "string",
"ephemeral_public_key": "string"
}{
"code": "400 Bad Request",
"errors": [
{
"error_code": "validation_error",
"message": "Generic changeset errors",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Malformed request"
}{
"code": "401 Unauthorized",
"errors": [
{
"error_code": "expired_token",
"message": "The token is expired, inactive, or doesn't exist.",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Authorization header is missing or invalid."
}{
"code": "403 Forbidden",
"errors": [
{
"error_code": "not_authorized",
"message": "Not authorized to have access to this resource.",
"path": null,
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Not authorized to have access to this resource"
}{
"code": "422 Unprocessable Entity",
"errors": [
{
"error_code": "missing_field",
"message": "The field is missing on the request body or parameters.",
"path": "#/path/to/field",
"url": null
}
],
"id": "log_7MkWaFqvfosB8fzHhb1Eql",
"message": "Validation errors"
}