Skip to main content

Get invoice for a month

GET 

/v1/providers/:provider_id/orgs/:org_id/invoices/:month

Returns the invoice for the specified month. The invoice will include all the charges for the month.

Request

Path Parameters

    provider_id stringrequired

    Provider ID

    org_id stringrequired

    Organization ID

    month stringrequired

    Month in format YYYY-MM

Responses

OK

Schema

    data

    object

    org_id stringrequired

    Organization ID

    plan_name stringrequired

    Name of the plan

    charges

    object[]

    required

    List of charges in the invoice

  • Array [

  • id stringrequired

    Unique identifier for the charge

    name stringrequired

    User friendly name of the charge

    quantity doublerequired

    Number of units consumed

    unit stringrequired

    Consumption unit

    total doublerequired

    Total cost for the charge

    tiers

    object[]

    required

  • Array [

  • name stringrequired
    quantity doublerequired

    Number of units consumed

    starting_after doublerequired

    Starting point when this tier is applicable

    price doublerequired

    Rate per unit

    subtotal doublerequired

    Total cost for the tier

  • ]

  • charged_quantity doublerequired

    Actual number of units charged for

  • ]

  • subtotal doublerequired

    Amount before any credits/discounts/minimum commitments

    total doublerequired

    Total payable amount

    created_at date-timerequired

    RFC3339 timestamp when this invoice was generated

    last_modified date-timerequired

    RFC3339 timestamp when this invoice was last modified

    starting_on date-timerequired

    RFC3339 starting time for usage period during which items were added to this invoice

    ending_before date-timerequired

    RFC3339 ending time for usage period during which items were added to this invoice

    status stringrequired

    Possible values: [DRAFT, FINALIZED]

    • DRAFT - Invoice can be modified as the billing period progresses
    • FINALIZED - Invoice is locked and can't be modified
Loading...