Skip to main content
GET
/
credits
/
{customer_id}
/
rechargeSettings
Get the recharge settings
curl --request GET \
  --url https://api.metronome.com/v1/credits/{customer_id}/rechargeSettings \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "name": "Recharge top up grant",
      "recharge_to_amount": 1000,
      "recharge_threshold": 300,
      "enabled": true,
      "id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
      "priority": 100,
      "grant_duration": 6,
      "credit_type_id": "5ae401dc-a648-4b49-9ac3-391bb5bc4d7b",
      "prepaid_options": {
        "billing_provider_type": "stripe",
        "stripe_options": {
          "calculate_tax": true,
          "redirect_url": "https://example.com/action_required_redirect",
          "invoice_custom_fields": [
            {
              "name": "x_account_id",
              "value": "KyVnHhSBWl7eY2bl"
            }
          ],
          "invoice_metadata": {
            "ex_metadata1": "metadata value 1",
            "ex_metadata22": "metadata value 2"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string<uuid>
required

Response

200 - application/json

Success

data
object[]
required
I