Billing

Cancel unpaid credit purchase

Changed on

Void an unpaid order. If payment already settled, return its paid outcome; cancellation does not refund a settled payment.

post/v1/billing/orders/{orderId}/cancel

Request

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

Path parameters

orderIdstring uuid required

Request body

EmptyBillingRequest 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