Model Enrollment
The Model Enrollment APIs are designed to manage model enrollment across supported brands, facilitating operations such as creating, updating, and deleting related records.
Currently, these APIs are exclusively enabled for Mastercard, allowing efficient integration and management of models within their ecosystem.
These APIs provide a clear and structured interface for interacting with enrollment data, ensuring that processes are secure and aligned with company standards.
Key Features:
- Model Creation: Register a new model in the system using the
POST /api/model-enrollment
endpoint. - Model Updates: Modify details of an existing model through the
PATCH /api/model-enrollment
endpoint. - Model Deletion: Remove obsolete model records using the
DELETE /api/model-enrollment
endpoint.
POST /api/model-enrollment
This endpoint allows you to enroll a new model in a brand. Currently, the service is exclusively available for Mastercard.
Request
{
"subscription_id": "349"
}
Response
{
"message": "Model enrollment",
"data": {
"mastercard": {
"uuid": "692b1ce4-7979-4b62-9bab-bda8ad8aa64b",
"messageType": "MerchantStatusResponse",
"data": {
"acquirerBIN": "510510",
"acquirerICA": "16233",
"acquirerName": "First Technology Federal Credit Union",
"acquirerCID": "139423",
"status": "SUCCESS",
"reason": "New Record Data",
"modelId": "123",
"modelName": "Test Merchant"
}
}
}
}
PATCH /api/model-enrollment
This endpoint allows you to retrieve data from the associated brand and update the enrolled model. Currently, the service is exclusively available for Mastercard.
Request
{
"uuid": "692b1ce4-7979-4b62-9bab-bda8ad8aa64b",
"subscription_id": "349"
}
Request fields:
Response
{
"message": "Model updated",
"data": {
"mastercard": {
"uuid": "692b1ce4-7979-4b62-9bab-bda8ad8aa64b",
"messageType": "MerchantStatusResponse",
"data": {
"acquirerBIN": "510510",
"acquirerICA": "16233",
"acquirerName": "First Technology Federal Credit Union",
"acquirerCID": "139423",
"status": "SUCCESS",
"reason": "New Record Data",
"modelId": "123",
"modelName": "Test Merchant"
}
}
}
}
DELETE /api/model-enrollment
This endpoint allows you to manage model enrollment in a brand. Currently, the service is exclusively available for Mastercard.
Request
{
"reason": "DATA_ENTRY_ERROR",
"subscription_id": "349",
"uuid": "692b1ce4-7979-4b62-9bab-bda8ad8aa64b"
}
Response
{
"message": "The record was successfully deleted"
}