Billing
Get checkout payment details (not used for fiat billing)
**Fiat-only billing:** checkout is completed on the payment gateway's hosted page; there is no server-side payment intent to poll. The live API returns **404** for this route. Reserved for compatibility; do not rely on a success body for project billing.
GET
/api/billing/public/projects/{projectId}/checkout/{paymentId}SDK setup
Create a client instance. No authentication is required for this endpoint.
import { Configuration, BillingApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const billing = new BillingApi(configuration);import { Configuration, BillingApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const billing = new BillingApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await billing.getCheckoutPayment("proj_6bB3eD1qGav8", "lY4iGKLTHNjECoS5");const { data: result } = await billing.getCheckoutPayment("proj_6bB3eD1qGav8", "lY4iGKLTHNjECoS5");Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Authentication
Public — No Auth Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
paymentId | string | Yes | Opaque id from checkout (fiat billing does not expose pollable payment state here) |
Responses
404Payment not found
json
{
"error": "Payment not found"
}{
"error": "Payment not found"
}500—
Errors
| Code | Meaning |
|---|---|
404 | Payment not found |
500 | — |