Billing

Quote a credit purchase

Changed on

Prepare an isolated one-time credit order for an eligible active USD subscriber. No payment or generation is started. Reuse the client-generated order UUID when retrying. Show every returned term before requesting payment approval. A team can create up to 20 new quotes per hour; more return 429 with code rate_limited.

post/v1/billing/orders

Request

  • Base URL
    https://api.videogen.io
  • Auth
    HTTP bearer

Request body

orderIdstring uuid required

Client-generated UUID. Reuse it for identical quote retries.

creditsinteger required

Response

Current account or order state.

orderIdstring uuid required
state'requires_approval' | 'requires_action' | 'processing' | 'paid_pending_fulfillment' | 'fulfilled' | 'failed' | 'canceled' | 'expired' required
revisioninteger required
teamIdstring required
teamNamestring required
seller'VideoGen' required
product'credits' required
creditsinteger required
currencystring required
subtotalMinorinteger required
discountMinorinteger required
taxMinorinteger required
feesMinorinteger required
totalMinorinteger required
expiresAtinteger required

Unix seconds when this quote expires.

termsVersionstring required
refundTermsstring required
refundStatus'none' | 'requested' | 'processing' | 'succeeded' | 'failed' required
verificationUrlstring nullable

Secure VideoGen verification continuation when required. Sign in as the purchaser on the same team. This is not a checkout link.

receiptUrlstring nullable required
retryGuidancestring required
paymentHandlerobject required

Seller payment handler and merchant identity for a compatible native wallet. This does not attest to host acceptance.

Changes