Skip to main content

Get Invoice by SID

This request returns data for an invoice, targeted by secure ID.

get /billing/invoices/{invoice_sid}

Sample

A sample GET request to get an invoice, targeted by secure ID:

curl -X GET \
'https://api.carrierx.com/core/v2/billing/invoices/4169705e-4284-482f-8e72-e962a8aaad9d' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a serialized copy of the Invoice object:

{
"amount": "0.38",
"amount_due": "0",
"amount_tax": "0.32",
"balance_forward": "-0.45",
"balance_previous": "-351.91",
"date_billing_period_end": "2025-01-19T23:59:59.000Z",
"date_billing_period_start": "2024-12-20T00:00:00.000Z",
"date_charge_expected": "2025-01-19T23:59:59.000Z",
"date_charged": null,
"date_created": "2024-12-19T23:30:01.000Z",
"date_issued": null,
"display_id": "004",
"invoice_items": [
{
"amount": "0.37",
"country_code": "USA",
"date_billing_period_end": "2025-01-19T23:59:59.000Z",
"date_billing_period_start": "2024-12-20T00:00:00.000Z",
"direction": "inbound",
"type": "toll",
"usage": 8880
},
{
"amount": "0.01",
"country_code": "USA",
"date_billing_period_end": "2025-01-19T23:59:59.000Z",
"date_billing_period_start": "2024-12-20T00:00:00.000Z",
"direction": "outbound",
"type": "toll",
"usage": 60
},
{
"amount": "0",
"country_code": "USA",
"date_billing_period_end": "2023-07-04T23:59:59.000Z",
"date_billing_period_start": "2023-06-06T00:00:00.000Z",
"type": "sms_enablement",
"usage": 2
}
],
"invoice_sid": "4169705e-4284-482f-8e72-e962a8aaad9d",
"paid": false,
"partner_sid": "ed437757-002d-4ecc-aa5a-efdf5e50dba0",
"pay_items": [],
"status": "open",
"tax_items": [
{
"amount": "0.32",
"jurisdiction": "federal",
"type": "fed_universal_service_fund"
}
]
}

This request is enabled for Field Filtering.

Required Scopes

To get information about an Invoice object, the partner must have one of the following scopes enabled:

  • invoices.manage
  • invoices.read

Path Arguments

ParameterData TypeDescription
invoice_sid requiredstringThe invoice secure ID.

Query Arguments

ParameterData TypeDescription
with_relatedbooleanDetermines if the partner information related to the invoice should be shown. Values accepted in this field are true and false. The default value is false.