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

# In payment default

> How does the in payment default flow in Propaga work?

# 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:

```bash Request theme={null}
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:

```json Response theme={null}
{
    "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:

```json User is in default (422) theme={null}
{
    "errorCode": "USER_IS_IN_DEFAULT",
    "errorMessage": "This user is in default"
}
```
