Retrieve bulk cards
GET/customers/:customerId/prepaid/cards/bulk/:bulkId
The Retrieve bulk cards
endpoint can be used to retrieve the list of cards created by the Bulk Card Ordering
request. Given the nature of the API, the response from calling the endpoint will contain information about the created cards and the status
indicating the status of the bulk operation.
Request
Path Parameters
Unique identifier of the customer.
The bulkId identifier received from the webhook or from the Bulk Card Ordering
response.
Query Parameters
Possible values: >= 1
and <= 50
Default value: 10
This is the requested number of records to return. Max = 50. Default = 10.
Default value: 0
This is the requested starting position of the response entries, where 0 is the first record. Default = 0.
Responses
- 200
- 401
- 404
- 500
- 503
OK
- application/json
- Schema
- Example (from schema)
- COMPLETED_BULK_CARD_CREATION
- PROCESSING_BULK_CARD_CREATION
Schema
Array [
]
- limit - This is the requested number of records to return. Defaults to 10 and maximum is 50.
- offset - This is the requested starting position of the response, where 0 is the first record. Default = 0.
The ID of the given Bulk Card Ordering
request.
The number of successfully created cards.
Possible values: [COMPLETED
, PROCESSING
, FAILED
, PENDING
]
COMPLETED
- Bulk card creation completed successfully.
PROCESSING
- Bulk card creation is currently in progress.
FAILED
- Bulk card creation has failed.
PENDING
- Bulk card creation is waiting to be completed.
deliveryAddress
object
The DeliveryAddress object will be used for the PHYSICAL
card delivery. It must be null in case of VIRTUAL
card
Possible values: >= 4 characters
and <= 40 characters
The first line of the address.
Possible values: <= 30 characters
The second line of the address.
Possible values: <= 30 characters
The third line of the address.
Possible values: <= 30 characters
Max 30 characters: letters, spaces, hyphen and period
Possible values: >= 2 characters
and <= 2 characters
Country code in ISO-3166 Alpha 2
Possible values: <= 3 characters
The field is mandatory for US Customers: 2 to 3 characters state or province abbreviation. Example: "UT"
Possible values: non-empty
and <= 16 characters
For EU customers: maximum length 16
For US customers: Pattern: ^[a-zA-Z0-9-\ ]*$
minimum 4, maximum 10
cards
object[]
Card id is a unique identifier for a specific card. It will be used for most operations to the prepaid card.
Possible values: non-empty
and <= 40 characters
External card identifier in merchant system.
If the status is ASSIGNED
the customerId will represent the real id of the customer or if the status is NOT_ASSIGNED
customerId will contain the merchant id (provided in the request).
Possible values: [ASSIGNED
, NOT_ASSIGNED
]
ASSIGNED
- Bulk card is assigned to a customer.
NOT_ASSIGNED
- Bulk card is not assigned to a customer.
Possible values: non-empty
and <= 27 characters
The name that appears on the card. If not provided, firstName lastName
from the customer will be used. Only ASCII characters are allowed.
expiry
object
Card expiry date.
The month of the card expiry date.
The year of the card expiry date.
Possible values: [PHYSICAL
, VIRTUAL
]
Supported card types. Currently we support only VIRTUAL
and PHYSICAL
Card program name.
Possible values: >= 4 characters
and <= 4 characters
Card last four digits.
Possible values: >= 3 characters
and <= 3 characters
Currency code in three-letter format ("Alpha-3").
Possible values: [VISA
, MC
]
Indicates that the card PIN has been set or not.
meta
object
Contains paging information regarding the returned records, when response is paginated.
The input for paginated query contains two parameters:
Note! The total number of records is not returned, to prevent queries spanning on all records. If
numberOfRecords
<limit
, this means no further pages are available. On request of offset beyond the last record, the returnednumberOfRecords
is 0.
The number of previous pages can be calculated by dividing offset
to limit
.
This is the number of records returned in the lookup. Always numberOfRecords
is smaller than or equal to limit
.
This is the requested number of records to be returned per page.
This is the requested starting position of the response, where 0 is the first record.
This is the page of records on which the lookup starts. The starting page is 1.
{
"id": "string",
"quantity": 0,
"status": "COMPLETED",
"deliveryAddress": {
"address1": "Tsarigradsko Shose 73",
"address2": "floor 3",
"address3": "apartment 43",
"city": "Sofia",
"countryCode": "BG",
"state": "UT",
"postalCode": "1000"
},
"cards": [
{
"cardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"externalId": "B-1111111",
"customerId": "1231122232",
"status": "ASSIGNED",
"embossedName": "John Doe",
"expiry": {
"month": 3,
"year": 2028
},
"cardType": "PHYSICAL",
"programName": "string",
"lastFour": "3234",
"currency": "EUR",
"scheme": "VISA",
"isPinSet": false
}
],
"meta": {
"numberOfRecords": 1,
"limit": 10,
"offset": 0,
"page": 1
}
}
{
"id": "ec36d236-f7aa-4734-8260-633910a8db50",
"quantity": 2,
"status": "COMPLETED",
"deliveryAddress": {
"address1": "Tsarigradsko Shose 73",
"address2": "floor 3",
"address3": "apartment 43",
"city": "Sofia",
"countryCode": "BG",
"postalCode": "1000"
},
"cards": [
{
"cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24",
"externalId": "B-1111111",
"customerId": "1231122232",
"embossedName": "John Doe",
"expiry": {
"month": 3,
"year": 2028
},
"cardType": "PHYSICAL",
"programName": "BRAND-PHYSICAL-MC",
"lastFour": "3234",
"currency": "EUR",
"scheme": "MC",
"isPinSet": false
},
{
"cardId": "f16ba382-eb23-481a-b08f-c57bdc9aae11",
"externalId": "B-22222222",
"customerId": "1231122232",
"embossedName": "John Richard",
"expiry": {
"month": 3,
"year": 2028
},
"cardType": "PHYSICAL",
"programName": "BRAND-PHYSICAL-MC",
"lastFour": "1111",
"currency": "EUR",
"scheme": "MC",
"isPinSet": false
}
],
"meta": {
"numberOfRecords": 2,
"limit": 10,
"offset": 0,
"page": 1
}
}
{
"id": "ec36d236-f7aa-4734-8260-633910a8db50",
"quantity": 10,
"status": "PROCESSING",
"deliveryAddress": {
"address1": "Tsarigradsko Shose 73",
"address2": "floor 3",
"address3": "apartment 43",
"city": "Sofia",
"countryCode": "BG",
"postalCode": "1000"
},
"cards": [],
"meta": {
"numberOfRecords": 1,
"limit": 10,
"offset": 0,
"page": 1
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- INVALID_CREDENTIALS
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "5279",
"message": "Invalid credentials",
"details": [
"The authentication credentials are invalid."
]
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- NOT_FOUND
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "5269",
"message": "Entity not found",
"details": [
"The ID(s) specified in the URL do not correspond to the values in the system."
]
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- INTERNAL_SERVER_ERROR
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-INTERNAL-SERVER-ERROR",
"message": "Internal Server Error",
"details": [
"There was an error while processing the operation"
]
}
}
Service Unavailable
- application/json
- Schema
- Example (from schema)
- SERVICE_UNAVAILABLE
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-SERVICE-UNAVAILABLE",
"message": "Service Unavailable",
"details": [
"Service Unavailable"
]
}
}