FILTER BY TAG

Generate Payment Credentials

This section describes how to generate payment credentials.
You can use the payment credentials API to retrieve the payment credentials for an existing customer, payment instrument, instrument identifier or tokenized card. For information about these token types, see these topics:

Endpoint

Test:
POST
https://nabgateway-api-test.nab.com.au
/tms/v2/tokens/
{tokenId}/
payment-credentials
Production:
POST
https://nabgateway-api.nab.com.au
/tms/v2/tokens/
{tokenId}/
payment-credentials
The
{tokenId}
is the identifier of the tokenized card.

Required Fields for Generating Payment Credentials

paymentCredentialType
Set to one of these values:
  • CRYPTOGRAM
  • NETWORK_TOKEN
  • SECURITY_CODE
transactionType

REST Example: Generating Payment Credentials

Request
{ "paymentCredentialType": "CRYPTOGRAM", "transactionType": "ECOM" }
Response to a Successful Request
{ "_links": { "self": { "href": "/tms/v2/tokens/7010000000016241111/payment-credentials" } }, "tokenizedCard": { "state": "ACTIVE", "enrollmentId": "c2d1b36fad46aed1ca8318dca5ed1e02", "tokenReferenceId": "168661ada5115ca3589b1ba3dabdb102", "number": "4895370016750801", "expirationMonth": "12", "expirationYear": "2023", "type": "visa", "cryptogram": "AwAAAADggP/Ce5+ZciCXQUUAAAA=", "eci": "05", "requestorId": "40010052236", "card": { "suffix": "0394", "expirationMonth": "12", "expirationYear": "2023" } }, "card": { "number": "411111XXXXXX1111" }, "issuer": { "paymentAccountReference": "V0010013022298169667504231315" }, "processingInformation": { "authorizationOptions": { "initiator": { "merchantInitiatedTransaction": { "previousTransactionId": "123456789619999" } } }, "commerceIndicator": "vbv" } }