Add Card Number to a Card Series

Sample cURL

curl --location --request PUT 'https://eu.api.capillarytech.com/v2/card/bulk?format=json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic U2FudC5wXzEpiMmVhMGFhYWI1ZThmODg5ZTAzNGE2NjA5NTIwM2FlNw==' \
--header 'Cookie: _cfuvid=LvoffYWnKNroiGI4mcPHub.st6yK1dPDHOW3wI1lEls-1751478744816-0.0.1.1-604800000' \
--data '[
    {
        "cardNumber": "24234234324345345345",
        "statusLabel": "ACTIVE",
        "extendedFields": {
            "custom_card_name": "TOM",
            "vehicle_number": "KA01B2020"
        },
        "mappedEntity": {
            "type": "TILL",
            "value": "rutuja_capillary"
        },
        "customFields": {
            "vehicle_type": "Bike"
        }
    },
    {
        "cardNumber": "Test09000000000012end",
        "statusLabel": "ACTIVE",
        "extendedFields": {
            "custom_card_name": "SOM",
            "vehicle_number": "KA01B2021",
            "card_requested_by": "rutuja_capillary"
        },
        "mappedEntity": {
            "type": "TILL",
            "value": "rutuja_capillary"
        },
        "customFields": {
            "vehicle_type": "Car"
        }
    },
    {
        "cardNumber": "Test09000000000004end",
        "statusLabel": "SUSPENDED",
        "extendedFields": {
            "custom_card_name": "DOM",
            "vehicle_number": "KA01B2019"
        },
        "mappedEntity": {
            "type": "TILL",
            "value": "rutuja_capillary"
        },
        "customFields": {
            "vehicle_type": "Cycle"
        }
    }
]'

Request Body Parameters

ParameterData TypeDescription
cardNumberStringUnique card number to be updated.
statusLabelStringNew status label to set for the card. Allowed values: NOT_ISSUED, ACTIVE, ISSUED, SUSPENDED, DELETED, EXPIRED.
extendedFieldsObjectExtended fields for additional metadata.
- custom_card_nameStringCustom name assigned to the card.
- vehicle_numberStringVehicle number associated with the card.
- card_requested_byStringValue indicating who requested the card.
mappedEntityObjectInformation about the entity mapped to the card.
- typeStringType of entity (e.g., TILL).
- valueStringName or value of the entity.
customFieldsObjectCustom fields associated with the card.
- vehicle_typeStringType of vehicle linked to the card (e.g., Car, Bike, Cycle).

Response Parameters

ParameterData TypeDescription
responseArrayList containing the result of each individual card update request.
- entityIdObjectObject containing details of the card entity after the update attempt.
-- cardIdIntegerUnique identifier of the card.
-- customerIdIntegerUnique identifier of the customer linked to the card.
-- extendedFieldsObjectAdditional metadata fields associated with the card.
--- custom_card_nameStringCustom name assigned to the card.
--- vehicle_numberStringVehicle number associated with the card.
--- card_requested_byStringName of the user or system that requested the card.
-- customFieldsObjectCustom fields containing additional card attributes.
--- vehicle_typeStringType of vehicle associated with the card (e.g., Car, Bike, Cycle).
-- mappedEntityObjectInformation about the entity to which the card is mapped.
--- typeStringType of the mapped entity (e.g., TILL).
--- valueStringValue or name of the mapped entity.
--- idIntegerUnique identifier of the mapped entity (if present).
-- cardNumberStringUnique card number.
-- orgIdIntegerUnique identifier of the organization.
-- entityIdIntegerUnique identifier of the card entity within the organization.
-- statusLabelStringCurrent status label of the card (e.g., ACTIVE, SUSPENDED).
-- statusLabelInfoObjectDetailed information about the current status of the card.
--- createdOnStringDate when the current status was created.
--- updatedOnStringDate when the status was last updated.
--- descriptionStringDescription of the current status.
--- entityStatusIdIntegerUnique identifier of the entity status record.
--- idIntegerUnique identifier of the status entry.
--- isActiveBooleanIndicates whether the current status is active.
--- labelStringStatus label value.
--- statusStringCurrent status value of the card.
--- typeStringType of entity status (e.g., CARD).
--- actionsObjectSupported actions for this status (generally empty).
--- defaultBooleanIndicates if this is the default status.
-- activeAndDigitalBooleanIndicates whether the card is both active and digital.
-- transactionNotAllowedBooleanIndicates if transactions are currently blocked on this card.
errorsArrayList of error objects if the update failed.
- statusBooleanStatus flag for the error.
- codeIntegerUnique error code.
- messageStringDescriptive error message.
warningsArrayList of warning objects, if applicable.
- statusBooleanStatus flag for the warning.
- codeIntegerUnique warning code.
- messageStringDescriptive warning message.
totalCountIntegerTotal number of records processed in this request.
failureCountIntegerNumber of records that failed during processing.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!