Create Payment Credential - Field Descriptions

The following tables describe the fields in the request and the response for the Create Payment Credential endpoint.

Request

The following table describes the fields that can be included in the request.

FieldDescriptionTypeMin LengthMax LengthMandatory
paymentTypeThe payment credential type. Select from CARD, BANK, CARDANDBANK, THREDDTOKENANYes
paymentInfoObject that details the payment information.



Yes
cardInfoObject that is present if the payment type is CARD or CARDANDBANK.



Yes
bankInfoObject that is present if the payment type is BANK or CARDANDBANK.
threddInfoObject that is present if the payment type is THREDDTOKEN.

cardInfo Fields

The following table describes the fields in the paymentInfo object when cardInfo object is selected.

FieldDescriptionTypeMin LengthMax LengthMandatory
nameOnCardThe name that appears on the card.AN1120Yes
issuerNameThe name of the issuer of the card.AN1150Yes
cardTypeThe card type description. For example, Visa Platinum.AN170Yes
accountNumberThe primary account number of the cardAN1219Yes
expirationDateThe expiration date for the card. Format is YYYY-MM.AN77Yes
externalIdThe client-provided identifier for the payment credential.AN1100No
currencyCodeThe recipient card currency code. The format is the 3-character ISO-4217 (Alpha-3) currency code.AN33No
preferredForIndicates if a payment credential is a preferred Receiving, Sending, or Paying account.ArrayNo
billingAddressObject that contains the billing address details.Object


Yes
countryThe country code of the billing address. Uses the 3-character ISO 3166 (Alpha 3) format.AN33Yes
streetNameThe street name of the billing addressAN160No
CityThe city of the billing address.AN135No
postalCodeThe post code of the billing address.AN116No
AddressLine1The first line of the billing address.AN099No
buildingNumberThe building number of the billing address.AN160No
AddressLine2The second line of the billing address.AN099No
StateThe state of the billing address.AN116No
minorSubdivisionCodeThe minor subdivision code of the billing address.AN150No
billingAddress





bankInfo Fields

The following table describes the fields in the paymentInfo object when bankInfo object is selected.

FieldDescriptionTypeMin LengthMax LengthMandatory
accountNameThe bank account name. For example, the account holder name as recorded on the bank account.AN170Yes
accountTypeThe bank account type. For example, Checking or Saving.ANNo
accountNumberTypeThe bank account number type. For example, IBAN.ANYes
accountNumberThe primary account number of the cardAN1219Yes
bankNameThe bank name of the payment credential.AN150Yes
bankCodeThe bank account bank code.AN112No
branchCodeThe bank account branch code.AN112No
bankCodeTypeThe bank account bank code type. This is conditional for select markets.ANNo
bicThe bank account's Business Identifier Code (BIC).AN811No
countryCodeThe bank account's country code.AN33Yes
externalIdThe client-provided identifier for the payment credential.AN1100No
currencyCodeThe recipient card's currency code. The format is a 3-character ISO-4217 (Alpha-3) currency code.AN33No
preferredForIndicates if a payment credential is a preferred Receiving, Sending, or Paying account.ArrayNo
billingAddressObject that contains the billing address details.Object


Yes
countryThe country code of the billing address. Uses the 3-character ISO 3166 (Alpha 3) format.AN33Yes
streetNameThe street name of the billing addressAN160No
CityThe city of the billing address.AN135No
postalCodeThe post code of the billing address.AN116No
AddressLine1The first line of the billing address.AN099No
buildingNumberThe building number of the billing address.AN160No
AddressLine2The second line of the billing address.AN099No
StateThe state of the billing address.AN116No
minorSubdivisionCodeThe minor subdivision code of the billing address.AN150No
billingAddress





ThreddInfo Fields

The following table describes the fields in the paymentInfo object when the ThreddInfo object is selected.

FieldDescriptionTypeMin LengthMax LengthMandatory
nameOnCardThe name that appears on the card.AN1120Yes
issuerNameThe name of the issuer of the card.AN1150Yes
cardTypeThe card type description. For example, Visa Platinum.AN170Yes
accountNumberThe primary account number of the cardAN1219Yes
externalIdForCardThe client-provided identifier for the payment credential.AN1100No
preferredForIndicates if a payment credential is a preferred Receiving, Sending, or Paying account.ArrayNo
billingAddressObject that contains the billing address details.Object


Yes
countryThe country code of the billing address. Uses the 3-character ISO 3166 (Alpha 3) format.AN33Yes
streetNameThe street name of the billing addressAN160No
CityThe city of the billing address.AN135No
postalCodeThe post code of the billing address.AN116No
AddressLine1The first line of the billing address.AN099No
buildingNumberThe building number of the billing address.AN160No
AddressLine2The second line of the billing address.AN099No
StateThe state of the billing address.AN116No
minorSubdivisionCodeThe minor subdivision code of the billing address.AN150No
billingAddress





Response

The following table describes the fields that are included in the response.

FieldDescription
trackingIdThe UUID generated by Thredd which identifies each transaction.
paymentCredentialIdThe UUID generated by Alias Directory which identifies the payment credential.
typeThe payment credential type.
externalIdThe client-provided identifier for the payment credential.