Skip to main content

Purchase Credits

POST 

/account/credits/top-up/

Request

Body

required

    pack_id stringrequired

    Possible values: <= 100 characters

    Identifier of the credits pack to purchase.

    coupon_ids string[]

    Possible values: <= 100 characters

    Identifiers of the credits coupons to purchase.

Responses

Schema

    id string
    sub_total integerrequired
    total integerrequired
    amount_due integerrequired
    amount_paid integerrequired
    currency_code stringrequired
    credits_applied integerrequired

    line_items

    object[]

    required

  • Array [

  • quantity integerrequired
    description stringrequired
    unit_amount integerrequired
    tax_amount integerrequired
    discount_amount integerrequired
    amount integerrequired
    date_from integerrequired
    date_to integerrequired
  • ]

  • discounts

    object[]

    required

  • Array [

  • description stringrequired
    amount integerrequired
  • ]

  • taxes

    object[]

    required

  • Array [

  • tax_name stringrequired
    tax_rate doublerequired
    tax_amount integerrequired
  • ]

Loading...