Skip to main content
POST
Create a Stripe PaymentIntent to buy mu by dollar amount at the peg

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Query Parameters

org_id
string

Target org id. Defaults to the caller's primary org. A non-member is denied 403.

Body

application/json
amountUsdCents
integer
required

Whole USD cents to charge. Bounds are enforced by mnemom-billing (MIN/MAX_PURCHASE_CENTS), not mirrored here.

idempotencyKey
string
required

Caller-chosen retry key. billing composes the Stripe idempotency key from it, so re-submitting with the same key cannot double-charge.

Required string length: 1 - 128

Response

PaymentIntent created (mnemom-billing response, verbatim): {paymentIntentId, clientSecret, expectedMmu}.

The response is of type object.