Docs/User API/Checkouts/Object

The checkout object

The checkout.

  • id

    string

    The system-assigned identifier of the checkout.

  • type

    enum

    The type of checkout.

    Possible values:
    CHANGESTART_TRIALCONVERT_TRIALSTART_PAIDUPGRADE_PLANDOWNGRADE_PLANCHANGE_TERMSSWITCH_TO_MONTHLYSWITCH_TO_YEARLYCHANGE_SEATSCHANGE_PAYMENT_METHODCANCELRESTART
  • state

    enum

    The state of the checkout.

    Possible values:
    STEPS_REQUIREDREADYPROCESSINGSUCCEEDEDFAILEDCANCELED
  • error

    Status

    The checkout error.

  • currencyCode

    string

    The currently selected currency code.

  • plans

    Plan[]

    The plans available for checkout.

  • paymentMethod

    PaymentMethod

    The payment method for the checkout.

  • fullName

    string

    The company or individual's full name.

  • address

    Address

    The billing address.

  • steps

    CheckoutStep[]

    The steps required to complete the checkout.

  • items

    CheckoutItem[]

    The products included in the checkout.

  • discounts

    CheckoutDiscount[]

    The discounts applied to the checkout.

  • subtotalAmount

    string

    The subtotal amount for the checkout.

    This includes item-level discounts.

  • discountAmount

    string

    The top-level discount amount.

    This does not include item level discounts.

  • taxAmount

    string

    The tax amount for the checkout.

    This is for rendering purposes only and is not the reported tax amount.

  • totalAmount

    string

    The total amount for the checkout.

  • balanceAppliedAmount

    string

    The amount applied to the checkout from the balance.

    A negative amount means a debit from the account balance. A positive amount means a credit to the account balance.

  • dueAmount

    string

    The total amount minus any credits automatically associated with the invoice.

  • renewAmount

    string

    The normal total recurring amount.

    This does not include any time-limited discounts.

PreviousCheckouts
NextCreate a checkout

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth