API entrantes (a Thales D1)
Especificación OpenAPI de las API que su sistema llama en Thales D1.
Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$Describes the flow.
In our case we have defined the JWT bearer flow, so you will have to set urn:ietf:params:oauth:grant-type:jwt-bearer
The assertion is the entire JWT value.
Please refer to OAuth2 Access Token for more details on how to generate this JWT.
The JWT must contain the following fields:
- iss: Issuer of the JWT. It shall be the merchant gateway identifier and it will be used to lookup the onboarded public key.
- exp: The validity must be the expiration time of the assertion within 15 minutes, expressed as the number of seconds from 1970-01-01T0:0:0Z measured in UTC.
ey...HRT8LOON8zDefault allowed response
The access_token that will be used to call the APIs.
ey...HRT6LOON7wRemaining time in seconds for the access_token to expire.
900Type of the access_token that will be used to call the APIs.
BearerScope of the access_token.
d1-s2s:api:merchant-gtwBad Request - Not Retryable
| Error Code | Description |
|---|---|
| INVALID_FIELD | Contains the field in error (first found) |
| MISSING_FIELD | Contains the missing field (first found) |
A JWT generated by the Get Access Token API.
The server checks the validity of the provided token to control access to this protected resource.
Merchant Gateway Identifier.
MGW_000001Pattern: ^[A-Za-z0-9_-]{10}$Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$An unique merchant name that is end user friendly.
My MerchantPattern: ^[A-Za-z0-9-_. ]+$Created
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| FIELD_INVALID_FORMAT | JSON not well formatted or one field is not expected format as defined in this documentation (first found) |
Unauthorized - Not Retryable
Forbidden - Not Retryable
| Error Code | Description |
|---|---|
| AUTHORIZER_FORBIDDEN | User is not authorized to access this resource |
Server Error - Not Retryable
| Error Code | Description |
|---|---|
| INTERNAL_ERROR | Internal D1 error |
| TSP_ERROR | An error occurred with TSP |
Service Unavailable - Retryable
A JWT generated by the Get Access Token API.
The server checks the validity of the provided token to control access to this protected resource.
Merchant Gateway Identifier.
MGW_000001Pattern: ^[A-Za-z0-9_-]{10}$Merchant Identifier (aka Token Requestor ID) generated by the scheme TSP for that merchant.
10610027312Pattern: ^[A-Za-z0-9_-]{11}$Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$The user and card information encrypted in a JWE structure (see data encryption section).
Once decrypted, the JWE plaintext contains the following JSON object:
| JSON field parameter name | description | MOC | Length |
|---|---|---|---|
| fpan | The funding pan to tokenize. | M | From 10 to 19 |
| exp | The expiry date in format MMYY. | M | 4 |
| name | The card holder name in the format FIRSTNAME LASTNAME or as written on the card. | O | Up to 128 char |
| cvv | The security code. It can help the issuer in the decision of approving the payment. | O | 3 or 4 |
Example: {"fpan":"5123456789012345", "exp":"0822", "name":"JOHN DOE", "cvv":"123"}
ey...4FT8LOON8zCreated
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| FIELD_INVALID_FORMAT | JSON not well formatted or one field is not expected format as defined in this documentation (first found) |
| CRYPTO_ERROR | Unable to decrypt payload |
Unauthorized - Not Retryable
Forbidden - Not Retryable
| Error Code | Description |
|---|---|
| AUTHORIZER_FORBIDDEN | User is not authorized to access this resource |
| PAN_NOT_ELIGIBLE | The PAN is not eligible for tokenization. For a cobadge card having an auxiliary PAN, this error is returned if the auxiliary PAN has never been registered by the card issuer into D1. |
| ISSUER_DECLINED | The Issuer declined the tokenization. |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| UNKNOWN_ISSUER | Not able to identify the card issuer. The PAN used in the request does not match any card registered in D1 by an issuer. |
| UNKNOWN_MERCHANT | Not able to identify the merchant. |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| INTERNAL_ERROR | Internal D1 error |
| TSP_ERROR | An error occurred with TSP |
| ISSUER_ERROR | An error occurred with Issuer |
Service Unavailable - Retryable
A JWT generated by the Get Access Token API.
The server checks the validity of the provided token to control access to this protected resource.
Merchant Gateway Identifier.
MGW_000001Pattern: ^[A-Za-z0-9_-]{10}$Merchant Identifier (aka Token Requestor ID) generated by the scheme TSP for that merchant.
10610027312Pattern: ^[A-Za-z0-9_-]{11}$Token unique identifier
01fb32ff-5ed0-497f-8835-6af0916f29c0Pattern: ^[A-Za-z0-9_-]{1,48}$Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$No Content
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| FIELD_INVALID_FORMAT | JSON not well formatted or one field is not expected format as defined in this documentation (first found) |
Unauthorized - Not Retryable
Forbidden - Not Retryable
| Error Code | Description |
|---|---|
| AUTHORIZER_FORBIDDEN | User is not authorized to access this resource |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| UNKNOWN_TOKEN | Not able to identify the token. |
| UNKNOWN_MERCHANT | Not able to identify the merchant. |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| INTERNAL_ERROR | Internal D1 error |
| TSP_ERROR | An error occurred with TSP |
Service Unavailable - Retryable
Sin contenido
Get the token metadata
A JWT generated by the Get Access Token API.
The server checks the validity of the provided token to control access to this protected resource.
Merchant Gateway Identifier.
MGW_000001Pattern: ^[A-Za-z0-9_-]{10}$Merchant Identifier (aka Token Requestor ID) generated by the scheme TSP for that merchant.
10610027312Pattern: ^[A-Za-z0-9_-]{11}$Token unique identifier
01fb32ff-5ed0-497f-8835-6af0916f29c0Pattern: ^[A-Za-z0-9_-]{1,48}$Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$Get Token Metadata response
Notice that the card last digits and the card expiry are always returned except if the card has been deleted by the issuer.
The card last digits
If the card is a cobagde card with a primary and an auxiliary PAN, then the primary PAN is used to generate the last digits
0037Pattern: ^[0-9]{4}$Card expiry date in MMYY format
0928Pattern: ^(0[1-9]|1[0-2])\d{2}$Token state
Creation date time as defined by RFC 3339, section 5.6
Last update date time as defined by RFC 3339, section 5.6
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| FIELD_INVALID_FORMAT | JSON not well formatted or one field is not expected format as defined in this documentation (first found) |
Unauthorized - Not Retryable
Forbidden - Not Retryable
| Error Code | Description |
|---|---|
| AUTHORIZER_FORBIDDEN | User is not authorized to access this resource |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| UNKNOWN_TOKEN | Not able to identify the token. |
| UNKNOWN_MERCHANT | Not able to identify the merchant. |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| INTERNAL_ERROR | Internal D1 error |
Service Unavailable - Retryable
Create Transaction
A JWT generated by the Get Access Token API.
The server checks the validity of the provided token to control access to this protected resource.
Merchant Gateway Identifier.
MGW_000001Pattern: ^[A-Za-z0-9_-]{10}$Merchant Identifier (aka Token Requestor ID) generated by the scheme TSP for that merchant.
10610027312Pattern: ^[A-Za-z0-9_-]{11}$Token unique identifier
01fb32ff-5ed0-497f-8835-6af0916f29c0Pattern: ^[A-Za-z0-9_-]{1,48}$Random identifier which can be used to correlate the different API calls done as part of a single use-case. This identifier will be the one primarily used for troubleshooting.
Warning: This identifier should not be derived from sensitive personal data, as its value will be logged in clear.
There is no strong guarantee of the uniqueness of this identifier, so please refrain from using it for other purpose than logging and troubleshooting.
^[A-Za-z0-9_-]{1,64}$The unique transaction identifier
Rrn123456789Pattern: ^[A-Za-z0-9]{1,12}$UTC Transaction date in 'YYYYMMDDhhmmss' format.
20260225140530Pattern: ^[0-9]{14}$Amount in the smallest unit of currency, right justified with leading zeros
000000002100Pattern: ^[0-9]{12}$Currency code as per ISO 4217
978Pattern: ^[0-9]{3}$Created
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| FIELD_INVALID_FORMAT | JSON not well formatted or one field is not expected format as defined in this documentation (first found) |
Unauthorized - Not Retryable
Forbidden - Not Retryable
| Error Code | Description |
|---|---|
| AUTHORIZER_FORBIDDEN | User is not authorized to access this resource |
| OPERATION_NOT_ALLOWED | Invalid token state |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| UNKNOWN_TOKEN | Not able to identify the token. |
Bad Request - Not Retryable
| Error Code | Description |
|---|---|
| INTERNAL_ERROR | Internal D1 error |
| TSP_ERROR | An error occurred with TSP |
Service Unavailable - Retryable
Última actualización
¿Te fue útil?