Skip to main content
Version: v3

Create a new wallet charge

POST 

/marketplace/billing/charges

Create a new wallet charge

Request

application/json

Bodyrequired

    appIdstringrequired

    App ID of the App

    meterIdstringrequired

    Billing Meter ID (you can find this on your app's pricing page)

    eventIdstringrequired

    Event ID / Transaction ID on your server's side. This will help you maintain the reference of the event/transaction on your end that you charged the customer for.

    userIdstring

    User ID

    locationIdstringrequired

    ID of the Sub-Account to be charged

    companyIdstringrequired

    ID of the Agency the Sub-account belongs to

    descriptionstringrequired

    Description of the charge

    pricenumber

    Price per unit to charge

    unitsnumberrequired

    Number of units to charge

    eventTimestring

    The timestamp when the event/transaction was performed. If blank, the billing timestamp will be set as the event time. ISO8601 Format.

application/json

Charge created successfully

Schema
    successboolean

    Indicates whether the charge was created successfully

    chargeIdstring

    Unique identifier of the created charge