billing

Get checkout payment details

Returns payment intent/checkout status (for refresh or deep link). No auth required.

GET/api/billing/public/projects/{projectId}/checkout/{paymentId}

Authentication

Public — No Auth Required

Path Parameters

NameTypeRequiredDescription
projectIdstringYesProject ID (MongoDB ObjectId) for the billing project.
paymentIdstringYesPayment ID or reference from checkout session

SDK setup

Create a client instance. No authentication is required for this endpoint.

import { MudbaseClient } from "mudbase";

const client = new MudbaseClient();
import { MudbaseClient } from "mudbase";

const client = new MudbaseClient();

Example request

Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.

const result = await client.billing.getCheckoutPayment({
  projectId: "proj_VD3yiGje6RPw",
  paymentId: "zWHBeDq7rOLJJOBa"
});
const result = await client.billing.getCheckoutPayment({
  projectId: "proj_VD3yiGje6RPw",
  paymentId: "zWHBeDq7rOLJJOBa"
});

Try It Live

Test 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

Responses

200Payment details
json
{
  "success": true,
  "data": {
    "paymentId": "pmt_abc123",
    "paymentAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "network": "polygon",
    "asset": "USDC",
    "amount": 29.99,
    "currency": "USD",
    "totalDue": "30.00",
    "status": "pending",
    "expiresAt": "2026-03-02T03:00:00.000Z"
  }
}
{
  "success": true,
  "data": {
    "paymentId": "pmt_abc123",
    "paymentAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "network": "polygon",
    "asset": "USDC",
    "amount": 29.99,
    "currency": "USD",
    "totalDue": "30.00",
    "status": "pending",
    "expiresAt": "2026-03-02T03:00:00.000Z"
  }
}
401Authentication required or invalid token.
403Access denied or insufficient permissions.
404Payment not found (exact backend message).
500Internal server error.

Errors

CodeMeaning
401Authentication required or invalid token.
403Access denied or insufficient permissions.
404Payment not found (exact backend message).
500Internal server error.
Edit this page on GitHub