Skip to content

Activate new card

This method switches card from "INACTIVE" and "DIGITALLY ACTIVE" states to “ACTIVE” state, this card has to be related to "ACTIVE" account. In case of activating a new card number associated with a plastic card, the corresponding plastic card will also be activated too. This method is intended for manual activation of physical cards meaning card with "MAGSTRIPE", "CONTACCHIP", "CONTACTLESSCHIP" technologies.

As the card number needs to be simultaneously activated by the card processor, CMS sends a request to activate the card number. Subsequently, the new card number is allowed to authorize transactions.

URL test:

https://dev.lightcms.io/cms/v1/cpds/{code}/activate

URL live:

https://fat.lightcms.io/cms/v1/cpds/{code}/activate

Method:

PUT

Path items:

/cards (Card Service)

/{ID} (ID code of activated card)

/activate (Method name)

Parameters:

Parameter Location Type Example Description Required
ID Path string "108564234" Internal ID of Card Yes

Example

curl -X 'PUT' \
  'https://dev.lightcms.io/cms/v1/cards/15/activate' \
  -H 'accept: */*'

Responses:

200 - OK

Status Code: 200 OK

500 - Internal error

Status Code: 500 Internal error

{
"timestamp": "2024-04-10T08:44:01.857+00:00",
"status": 500,
"error": "Internal Server Error",
"path": "/cms/v1/cards/18/activate"
}

Parameter Location Type Example Description
timestamp body date "2024-04-10T08:44:01.857+00:00" Timestamp of request
status body integer 500 Status error code
error body string "Internal Server Error" Error description
path body string "/cms/v1/cards/18/activate" Request path
404 - Not found

Status Code: 404 Not found

{
"errorMessage": "Entity with id 108564234 not found in DB."
}

Parameter Type Example Description
errorMessage string "Entity with id 108564234 not found in DB." Error message