Skip to content

Activate new plastic card

This method switches card plastic from an “INACTIVE” to an “ACTIVE” state, but its intended use is limited to the card plastic renewal process only. The initial activation of the card plastic is automatically performed through the PUT/cards/{ID}/activate method.

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

URL test:

https://dev.lightcms.io/cms/v1/cardplastic/{cardId}/activate

URL live:

https://fat.lightcms.io/cms/v1/cardplastic/{cardId}/activate

Method:

PUT

Path items:

/cardplastic (Plastic card)

/{cardId} (ID code of activated plastic card)

/activate (Method name)

Parameters:

Parameter Location Type Example Description Required
id Path integer 265 Internal Card ID of plastic Yes
expiryDate Body date "2024-04-10T08:54:30.070Z" Expiry date of Card Yes

Example:

curl -X 'PUT' \
  'https://dev.lightcms.io/cms/v1/cardplastic/554564/activate' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "expiryDate": "2024-04-10T08:54:30.070Z"
  }'

Responses:

200 - OK

Status Code: 200 OK

500 - Internal error

Status Code: 500 Internal error

404 - Not found

Status Code: 404 Not found

{
"errorMessage": "Plastic cardId/exp:554564/2024-04-10T08:54:30.070Z not found in DB."
}

Parameter Location Type Example Description
errorMessage body string ""Plastic cardId/exp:554564/2024-04-10T08:54:30.070Z not found in DB." Error message