# Compare the last days of payments with the provider and record differences

`POST /payments/reconcile` · Rivier · shop

Compare the last days of payments with the provider and record differences. Nothing is corrected automatically.

- Scope: shop:write
- Sdk: shop.reconcile.run
- Cli: shop reconcile run

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "sinceDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 90,
      "default": 7
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/payments/reconcile' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "sinceDays": 7
}'
```
