Skip to main content

Using Propaga API to notify in payment default

If the client does not make the payment within 15 days, they will be considered in payment default. To identify which clients are in payment default, you can use the following endpoint:
Request
curl --request GET 
--location 'https://staging-api.propaga.io/v1/corner-store/external/{externalId}' 
--header 'Authorization: <your_awesome_token>'
--header 'Content-Type: application/json'
the response will be:
Response
{
    "userId": "3b275b2f-3b40-4ff2-86ff-2499de0cdcfa",
    "cornerStoreId": "8921a1e9-7998-4a0a-80e3-2fa18fb11edf",
    "status": "in-payment-default",
    "creditLimitAvailable": 2000
}
This means the client is in payment default if the status returned is in-payment-default. This status has the following implications for transaction generation, resulting in the next response:
User is in default (422)
{
    "errorCode": "USER_IS_IN_DEFAULT",
    "errorMessage": "This user is in default"
}