Card API
This request is used by the bank backend to create a physical card and trigger its production order. The card creation registers the card with the processor (CMS and D1 Card Manager). The production order is sent to the personalization center based on the distributionChannel:
THALES: Thales personalization center — requiresshipmentINSTANT: Instant issuance in branch — requirespersoStation, no shipmentCENTRAL: Bank or partner center — requirespersoCenterandshipment
A JWT generated by the Get Authorization Token API.
The server checks the validity of the provided token to control access to this protected resource. Please refer to Get OAuth 2.0 access token for more details on the flow and on how to get this JWT.
The id of the issuer
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}$Identifier of the user that requests the operation on D1 API. This value is provided for information purpose, D1 doesn't do any verification based on this identifier.
D1 manages to propagate the information to a subsequent internal system for tracking purpose.
This identifier is not mandatory.
^[A-Za-z0-9_-]{1,15}$Successful physical card creation and production order submitted
Unique identifier of the card.
^[A-Za-z0-9_-]{1,48}$Unique identifier of the operation
^[A-Za-z0-9_-]{1,64}$Bad Request. Invalid request URI, header, or parameters. The below table defines the possible error:
| errorCode | error | Retryable | Comments |
|---|---|---|---|
| - | - | no | No error details available |
| FIELD_INVALID_FORMAT | Contains the field in error (first found) | no | JSON not well formatted or one field is not in expected format |
| FIELD_INVALID_VALUE | Contains the field in error (first found) | no | One field value is not allowed for the given field |
Unauthorized request, the provided Authorization header is missing or invalid.
| errorCode | error | Retryable | Comments |
|---|---|---|---|
| AUTHORIZER_UNAUTHORIZED | Unauthorized message | no | Access token not valid |
Forbidden action detected by WAF or the application.
| errorCode | error | Retryable | Comments |
|---|---|---|---|
| - | - | no | No error details available |
| AUTHORIZER_FORBIDDEN | not authorized error message | no | User is not authorized to access this resource |
| CARD_CREATION_COUNT_EXCEEDED | - | no | The maximum number of cards for the consumer is reached |
| OPERATION_NOT_ALLOWED | Name of the operation/field that is not allowed | no | Card creation is not allowed for this card product |
Resource not found. Unknown issuerId or consumerId.
| errorCode | error | Retryable | Comments |
|---|---|---|---|
| - | - | no | No error details available |
| UNKNOWN_CONSUMER | - | no | Consumer does not exist |
Internal Server Error.
| errorCode | error | Retryable | Comments |
|---|---|---|---|
| - | - | yes | No error details available |
| INTERNAL_ERROR | error details if any | no | The server has encountered an error when executing the request |
| WRONG_CONFIGURATION | error details if any | no | At least one configuration is missing. |
The service is temporarily unavailable. You may retry your request later.
POST /banking/v2/issuers/{issuerId}/cards/physical HTTP/1.1
Host: api.d1.thalescloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1116
{
"distributionChannel": "THALES",
"consumerId": "text",
"cardProductId": "text",
"name": "text",
"secondName": "text",
"accountList": [
{
"default": true,
"type": "CHECKING",
"number": "text",
"currencyCode": "EUR"
}
],
"issuerRequestId": "01c5a05e-e197-11ec-8fea-0242ac120002",
"services": {
"priority": "P1",
"delivery": "DHL",
"packaging": "welcome_pack_red",
"cardCarrier": "NO_CARRIER",
"pinMailer": false,
"alphaCard": false
},
"cardDesign": {
"images": [
"image_1",
"image_2"
],
"customLines": [
"Custom text 1",
"Custom text 2"
],
"artworkId": "text",
"memberId": "123456789"
},
"cardCarrierConfig": {
"language": "EN",
"images": [
"image_1",
"image_2"
],
"customLines": [
"Custom text 1",
"Custom text 2"
],
"multiCardId": "cmp7m3zdf12qj",
"multiCardOrder": "1"
},
"packagingConfig": {
"inserts": [
"promo_card",
"manual_v2"
]
},
"shipment": {
"type": "INDIVIDUAL",
"deliveryAddress": {
"title": "Mr.",
"firstName": "John",
"lastName": "Smith",
"companyName": "Thales",
"line1": "Street #1",
"line2": "Street #2",
"line3": "Street #3",
"city": "London",
"state": "text",
"zipCode": "WC2N 5DU",
"countryCode": "GB",
"mobilePhoneNumber": {
"countryCode": "+420",
"phoneNumber": "777222333"
},
"email": "john.doe@dummymail.com"
}
}
}{
"cardId": "text",
"operationId": "text"
}Last updated
Was this helpful?