> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enfuce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PIN operations with pre-shared key

> Endpoint for card PIN operations using pre-shared key.

**Note:** If this endpoint is used, the client (that decrypts the PIN block and thus has access to the clear PIN) must be responsible for PIN handling towards the card scheme.

## Endpoints

<CardGroup cols={2}>
  <Card title="Get encrypted PIN" icon="arrow-right" href="/payment/api/pin-operations-with-pre-shared-key/get-encrypted-pin" horizontal>
    **GET** /v2/\{plasticId}
  </Card>

  <Card title="Set PIN" icon="arrow-right" href="/payment/api/pin-operations-with-pre-shared-key/set-pin" horizontal>
    **POST** /v2/\{plasticId}
  </Card>

  <Card title="Get encrypted PIN" icon="arrow-right" href="/payment/api/pin-operations-with-pre-shared-key/get-encrypted-pin-1" horizontal>
    **GET** /v1/\{cardId}
    <br />Deprecated
  </Card>
</CardGroup>
