Billing
Set a saved card as the default for charges
Authorization
apiKey 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>