cURL
curl --request POST \ --url https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default \ --header 'Authorization: <api-key>'
{ "id": "<string>", "paymentMethodId": "<string>" }
Sets a payment method as the default for a billing account.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
A successful response.
Was this page helpful?