Skip to main content

Storing usage/metered data

POST 

/api/v3/usage

Request

Body

    line_item_id string

    Line Item ID that the usage is for

    usage_value string

    Usage value

    type string

    Usage type (default "add", other options are "add", "max", "lat", "pia", "pas", "dlt")

    options array

    An array of usage options

    from string

    Starting date/time for the usage period

    to string

    Ending date/time for the usage period

    external_key string

    External key value

    custom_1 string

    Custom field 1

    custom_2 string

    Custom field 2

    custom_3 string

    Custom field 3

    custom_4 string

    Custom field 4

    custom_5 string

    Custom field 5

    custom_6 string

    Custom field 6

    custom_7 string

    Custom field 7

    custom_8 string

    Custom field 8

    custom_9 string

    Custom field 9

    custom_10 string

    Custom field 10

    custom_11 string

    Custom field 11

    custom_12 string

    Custom field 12

    custom_13 string

    Custom field 13

    custom_14 string

    Custom field 14

    custom_15 string

    Custom field 15

    custom_16 string

    Custom field 16

    custom_17 string

    Custom field 17

    custom_18 string

    Custom field 18

    custom_19 string

    Custom field 19

    custom_20 string

    Custom field 20

Responses

Object was created successfully

Schema

    code integer
    status string
    message stringnullable
    details objectnullable

    response

    object

    id integer
Loading...