Merchants

Get Dunning Configuration

Retrieve the dunning (failed payment handling) configuration for the merchant. Creates a default config if one does not exist yet.

GET
/merchants/dunning-config

Authorization

bearerAuth
AuthorizationBearer <token>

Use your secret API key as the bearer token

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://api.getlumen.dev/v1/merchants/dunning-config"
{
  "config": {
    "id": "dunning_9a8b7c6d5e4f3g2h1i0j",
    "gracePeriodDays": 7,
    "retrySchedule": [
      1,
      3,
      7
    ],
    "endOfDunningAction": "pause_subscription"
  }
}
{
  "error": "string",
  "details": "string"
}
{
  "error": "string",
  "details": "string"
}