Set PIN Control

The Set PIN Control endpoint enables you to set, retrieve, unblock and change the PIN associated with the card. It also allows you to unblock the CVC2 of a card or mobile device token.

You can set the PIN control for a card by making a POST request to the endpoint. For example:

{{base-url}}/ws/api/v1/WS_PinControl

The request body must include the function value, which specifies the kind of function you're performing. The following table describes each of the functions available for the endpoint.

PIN FunctionDescription
00Enables you to set the PIN for the card. The field NewPin and ConfirmPin must be included in the request when using this function.
01Enables you to retrieve the PIN for the card.
02Enables you to change the PIN for the card. The fields NewPin, ConfirmPin and CurrentPin must be included in the request when using this function.
03Enables you to create a card and retrieve the PIN in the response.
04Enables you to unblock the PIN for the card.
05Enables you to send the PIN in the post to the cardholder.
06Enables you to forward the PIN to an external API.
07Enables you to unblock the CVC2 for the card.
08Enables you to unblock the PIN and CVC2 of the card.

The following example shows sending the PIN to the cardholder in the post, signified by the Func value being set to 05

{
    "wsid": "20250213145006",
    "AuthType": "2",
  	"DOB": 1982-11-03,
    "PublicToken": "123456789",
    "Func": "05",
    "IssCode": "PMT",
    "LocDate": "2025-01-01",
    "LocTime": "120000", 
}

A successful response returns a HTTP 200 response code. Below is an example response:

{
    "PublicToken": "123456789",
    "ActionCode": "000"
}

📘

More Information