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

Set a saved card as the default for charges

POST
/v1/orgs/{orgId}/billing/payment-methods/{paymentMethodId}/default
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer vl_….

In: header

Path Parameters

orgId*string
paymentMethodId*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/billing/payment-methods/string/default"
Empty
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}

Command line

The orl CLI wraps this endpoint:

orl billing payment-method set <payment-method-id>