Skip to content

POST /v1/organizations/{organizationId}/billing/checkout

Returns a hosted payment-method collection URL for the selected organization. An Idempotency-Key header is optional; supply one to make retries safe. Complete the returned checkout flow. Receiving the URL does not mean a card has been saved; check payment-method status afterward.

photon.organizations.billing.createOrganizationPaymentMethodCheckout(input: CreateOrganizationPaymentMethodCheckoutInput, options?: RequestOptions): Promise<CreateOrganizationPaymentMethodCheckoutOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.organizations.billing.createOrganizationPaymentMethodCheckout({
  path: {
    organizationId: "organizationId",
  },
});
{
  "checkoutUrl": "https://example.com"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystring

Identifies one logical mutation across retries.

organizationIdstringrequired

Returns

200 Hosted card-capture page for the organization. CreateOrganizationPaymentMethodCheckoutResponse

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

checkoutUrlstring (uri)required

Hosted Stripe page; send the user here.