# Enable a Single Credential
source: https://developer.mastercard.com/issuer-enrollment/documentation/use-cases/auto-enrollment/enroll_api_sync/index.md
This use case helps issuers enroll a single consumer credential into their credential directory. After the issuer submits the required consumer and credential data through the synchronous [Enroll a payment credential](https://developer.mastercard.com/issuer-enrollment/documentation/api-reference/apis/index.md#createDigitalCredential) operation, Mastercard processes the request and links the eligible credential to the consumer's profile in the issuer's credential directory.
Use this flow when you need to enroll a single consumer credential and receive the enrollment result in the API response. To enroll one or more consumer credentials for asynchronous processing, see [Enable Consumer Credentials in a Batch](https://developer.mastercard.com/issuer-enrollment/documentation/use-cases/auto-enrollment/enroll_api_async/index.md).
### Prerequisites {#prerequisites}
Before implementing asynchronous credential enrollment, complete the following setup steps:
1. Complete platform onboarding.
* Ensure your organization has been onboarded and approved to use Mastercard Credential Directory services. For more information, see the onboarding tutorials for [Sandbox](https://developer.mastercard.com/issuer-enrollment/documentation/tutorials-and-guides/issuer-onboarding-click2pay-tutorial/index.md) and [Production](https://developer.mastercard.com/issuer-enrollment/documentation/tutorials-and-guides/issuer-onboarding-click2pay-production-tutorial/index.md) environments.
* Confirm that your application has the required credentials and access permissions. For more information, see the [Key Management](https://developer.mastercard.com/issuer-enrollment/documentation/tutorials-and-guides/key-management-click2pay-tutorial/index.md) tutorial.
2. Update the required Terms and Conditions to offer Mastercard Credential Services as a default feature in your core banking product before going into production.
3. Encrypt the credential details before you send it in the Enroll API request. See the [Perform Encryption](https://developer.mastercard.com/issuer-enrollment/documentation/tutorials-and-guides/perform-encryption-tutorial/index.md#step-2-encrypt-an-object) tutorial for step-by-step instructions.
## Synchronous Enrollment Workflow {#synchronous-enrollment-workflow}
Use the Directory and Lifecycle Management API to submit a single consumer credential and receive the enrollment result in the API response.
Diagram consumer-enrolled-PAN
1. Send a `POST` request to the [/credentials](https://developer.mastercard.com/issuer-enrollment/documentation/api-reference/index.md#createDigitalCredential) endpoint.
See the endpoint structure:
API Reference: `POST /client-directories/{directoryId}/credentials`
Include the required consumer and credential data in the API request. The request must include the `encryptedEnrollmentData` object, which contains the encrypted card data.
2. Mastercard enrolls the consumer profile into the issuer's credential directory and enables it for the associated programs.
3. Mastercard sends the `encryptedCard` object to MDES to tokenize the card for Click to Pay.
4. The issuer approves the tokenization request to enable the consumer profile for Click to Pay and other supported digital experiences.
5. Mastercard completes enrollment and provides the issuer with the enrolled consumer profile and masked credential details.
6. The consumer can then access the enrolled credential through the issuer's banking app or website and use it across supported digital commerce experiences, such as Click to Pay.
## Error Resolution {#error-resolution}
For details on error resolution please visit our [codes and formats](https://developer.mastercard.com/issuer-enrollment/documentation/code-and-formats/index.md) section.
## Next Steps {#next-steps}
* Retrieve, update, or delete a consumer's profile or associated credentials. For more information, see [Manage Consumer Profiles and Credentials](https://developer.mastercard.com/issuer-enrollment/documentation/use-cases/auto-enrollment/life_cycle/index.md).