Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceBilling and usageBilling

Set a saved card as the default for charges

Makes a saved card the org's default for off-session charges (deposits and auto-recharge). Another org's card, or one not yet settled as saved, returns 404.

Required permission

Requires the billing.manage permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl billing payment-method set <payment-method-id>
POST
/v1/orgs/{orgId}/billing/payment-methods/{paymentMethodId}/default

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string
paymentMethodId*string

Response Body

Default updated

Example Request
curl -X POST 'https://api.openrelay.inc/v1/orgs/string/billing/payment-methods/string/default'
Example Response
Empty