# Use Case Implementation
source: https://developer.mastercard.com/payment-account-reference-inquiry/documentation/use-cases/implementation/index.md

This can be implemented using the `/getPaymentAccountReference` endpoint. This API is used to supply a PAR value based on PAN or Token.

The API performs a PAR lookup in the PAR Vault using the supplied PAN. If a PAR is found, it is returned; otherwise, a new PAR value is generated and returned in the API response. The API encrypts this PAR using the wrapped encryption method with the Mastercard Customer's Encryption Public Key and include the encrypted PAR in the response.
Diagram getPaymentAccountReference

Refer to the POST method of the [**getPaymentAccountReference**](https://developer.mastercard.com/payment-account-reference-inquiry/documentation/api-reference/index.md#get-payment-account-reference) in the in the API Reference section.

See also: [Error Codes](https://developer.mastercard.com/payment-account-reference-inquiry/documentation/code-and-formats/error-codes/index.md)
