Billing
Start changing the card
The Paddle transaction that replaces the organization's card on file.
Updated
https://cloud.cahaves.com/api/billing/card/update
Authorization
cahaves.cloud.sessionstringcookierequired
The session cookie Cloud sets when a customer signs in to the console with GitHub or Google. It is HttpOnly, so scripts cannot read it, and there are no API keys or tokens yet.
Headers
X-Cloud-Organizationstring<uuid>
The id of the organization the request works in, one the signed-in customer owns. Left out or empty, the request works in their oldest organization. Any other value answers 404 with `reason: "organization"`. A customer with no organization yet gets 409 "Create an organization first." from every route that works in one.
Example: "2f6c8e0a-4b1d-4e7f-9a3c-5d7e9f1b3a5c"
Responses
application/json
The Paddle transaction to open.
transaction_idstringrequired
Paddle's transaction id, which the console opens in Paddle's form.
Answers Paddle's transaction for replacing the card on the subscription of the organization the request works in, which the console opens in the same form. While the subscription has a charge past due, it is that charge's transaction, so the new card pays it too. An organization with no card answers 409 with "This organization has no card to change. Add one instead."; start with Start adding a card instead. At most 10 are accepted a minute per account, and 60 across the platform.