Generate Cards

Lets you generate cards for a card series in bulk.

This API generates card numbers in bulk for a specific card series. Generated cards have a status NOT_ISSUED, and you can assign or issue them to customers later.

👍

Note

For detailed information about the APIs and for hands-on testing, refer to the API overview documentation and step-by-step guide on making your first API call.

Prerequisites

  • Basic Authentication
  • Default access group

Resource information

HTTP methodPost
AuthenticationBasic
Pagination supported?NO
Rate limitYES
Batch supportNO

Example request

curl --location 'https://eu.api.capillarytech.com/v2/card/generate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic =' \
--header 'Cookie: _cfuvid=1gjL.3hjs9_Sp0UkKbhUmEt34PmLhAZnVwEQw4nqdqU-1756726591406-0.0.1.1-604800000' \
--data '{
  "seriesId":173,
  "count": 5,
  "statusLabel":"NOT_ISSUED"
}
'

Body parameters

FieldTypeRequiredDescription
seriesIDintegerYesUnique ID of the card series to generate cards.
countintegerYesNumber of cards to generate.
statusLabelstringOptionalCurrent user-defined status of the card.

Example response

{
  "data": [
    "Test09000000000037end",
    "Test09000000000036end",
    "Test09000000000035end",
    "Test09000000000034end",
    "Test09000000000033end"
  ],
  "warnings": [],
  "errors": []
}

Response parameters

FieldTypeDescription
dataArrayArray of generated card numbers.
warningsArrayArray of warnings.
errorsArrayArray of errors.

Error Code

CodeDescription
500Internal Server Error — The server encountered an unexpected condition that prevented it from fulfilling the request. This may happen due to internal server issues such as unexpected failures, database errors, or unhandled exceptions. It is not caused by client input.
3000Invalid card series.
3017Status label is invalid.
3025Count field is missing or invalid.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!