Get a specific invoice
GET/api/v3/invoice/:invoice_id
Request
Responses
- 200
- 400
- 401
- 404
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
Array [
]
Array [
]
response
object
Invoice ID #
Invoice reference number
External key value
The invoice subscription sequence number on a subscription
Subscription ID # this invoice was generated from
Customer ID #
Brand ID #
Brand name
Date/time the invoice was created
Date/time this subscription was last updated
Date/time the invoice was voided
Invoice date
Currency ID #
Currency symbol
Currency ISO 4217 representation
Class ID #
Class Name
Payment cycle
Payment cycle name
Terms ID #
Terms name
Terms number of days
Admin/Worker ID number
Admin/Worker Name
Unique token
Billing address line 1
Billing address line 2
(Deprecated)
Billing address city
Billing address state
Billing address postal code
Billing address country
(deprecated)
Printable billing address
Shipping address line 1
Shipping address line 2
(Deprecated)
Shipping address city
Shipping address state
Shipping address postal code
Shipping address country
(deprecated)
Printable shipping address
For pre-billing, cycle start date
For pre-billing, cycle end date
Cycle date (generally the invoice date)
For post-billing (in arrears), cycle start date
For post-billing (in arrears), cycle end date
URL to view the invoice
URL to download the invoice PDF
URL to pay for the invoice
URL for viewing the invoice in the GUI
Whether or not the invoice has been paid
Whether or not the invoice has been voided
Whether or not the invoice is overdue
Date the invoice is due
Number days overdue the invoice is
Date this invoice was paid
Balance of the invoice
Amount applied to the invoice
Invoice total
Invoice subtotal
Taxes
Amount of credits applied to the invoice
Amount of payments applied to the invoice
Amount written off
Amount refunded
Amount overdue
Number of times that payment was attempted and failed for this invoice
Sum of the amounts of all base fees on the invoice
Sum of the amounts of all usage-based/metered fees on the invoice
Sum of the amounts of all of the one-time charges on the invoice
Human-friendly invoice status
Status string
Status code
Memo/notes to customer
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Custom field #6
Custom field #7
Custom field #8
Custom field #9
Custom field #10
Custom field #11
Custom field #12
Custom field #13
Custom field #14
Custom field #15
Custom field #16
Custom field #17
Custom field #18
Custom field #19
Custom field #20
line_items
object[]
A list of line items for the invoice
Invoice line ID #
Invoice ID #
Admin worker/sales rep ID #
Item ID # for this line
Item name
Item accounting SKU
Item external key
Item token
Item units
Item type
Invoice line bundle ID #
Payment cycle
Tierset ID # for this line
Package line ID # that this line originated from
Subscription line external key
The contractual obligation this line counted towards
The ID number of the first contractual obligation for the subscription line that this line originated from
Description
If the line is prorated this value is the prorated percentage
Rate
Quantity
Usage value
Line subtotal
Line total
Number of times this has recurred since the last up/downgrade
Number of times this line has recurred
The total amount that was taxable
The amount that tax was calculated from
The tax amount for this line
Whether or not this line item was created from usage data
Whether or not this line was a one-time setup fee
Whether or not this line is the base line item for other tiered/volume/unit lines
Whether or not this line item was free (equal to $0.00)
Whether or not this line is recurring
Whether or not this line item was taxed/subject to VAT
Whether or not this line item was a late fee
Whether or not this line item was towards a contractual obligation
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Custom field #6
Custom field #7
Custom field #8
Custom field #9
Custom field #10
schedule
object[]
A list of scheduled payments for this invoice
Scheduled ID #
Invoice ID #
A unique token to identify this scheduled event
The payment method (crd for credit card, ach for ACH/eCheck, inv for just sending an invoice
If the payment is scheduled against a credit card, the creditcard_id value
If a bank account payment, the ach_id value
If a tokenized payment method, the tokenized_id value
Payment due date
Number of days overdue
Amount to schedule payment for
A pretty-formatted amount or percent that was scheduled
Balance (amount due) of this payment
Date to run the payment on
URL to pay for this scheduled payment
URL to pay for this scheduled payment
A list of tags
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {
"invoice_id": 0,
"refnumber": "string",
"external_key": "string",
"invoice_index": 0,
"package_id": 0,
"customer_id": 0,
"brand_id": 0,
"brand_name": "string",
"write_datetime": "string",
"mod_datetime": "string",
"void_datetime": "string",
"date": "2024-07-29",
"currency_id": 0,
"currency_symbol": "string",
"currency_iso4217": "string",
"class_id": 0,
"class_name": "string",
"paycycle": "string",
"paycycle_name": "string",
"terms_id": 0,
"terms_name": "string",
"terms_days": 0,
"admin_id": 0,
"admin_name": "string",
"token": "string",
"bill_addr1": "string",
"bill_addr2": "string",
"bill_addr3": "string",
"bill_city": "string",
"bill_state": "string",
"bill_postcode": "string",
"bill_country": "string",
"bill_notes": "string",
"bill_block": "string",
"ship_addr1": "string",
"ship_addr2": "string",
"ship_addr3": "string",
"ship_city": "string",
"ship_state": "string",
"ship_postcode": "string",
"ship_country": "string",
"ship_notes": "string",
"ship_block": "string",
"cycle_pre_from_date": "2024-07-29",
"cycle_pre_to_date": "2024-07-29",
"cycle_this_date": "2024-07-29",
"cycle_post_from_date": "2024-07-29",
"cycle_post_to_date": "2024-07-29",
"url_permalink": "string",
"url_pdflink": "string",
"url_paylink": "string",
"url_self": "string",
"is_paid": true,
"is_void": true,
"is_overdue": true,
"due_date": "2024-07-29",
"days_overdue": 0,
"paid_date": "2024-07-29",
"balance": 0,
"applied": 0,
"total": 0,
"subtotal": 0,
"taxes": 0,
"credits": 0,
"payments": 0,
"writeoffs": 0,
"refunds": 0,
"overdue": 0,
"declines": 0,
"sum_base": 0,
"sum_usage": 0,
"sum_onetime": 0,
"invoice_status_name": "string",
"invoice_status_str": "string",
"invoice_status_state": "string",
"memo": "string",
"custom_1": "string",
"custom_2": "string",
"custom_3": "string",
"custom_4": "string",
"custom_5": "string",
"custom_6": "string",
"custom_7": "string",
"custom_8": "string",
"custom_9": "string",
"custom_10": "string",
"custom_11": "string",
"custom_12": "string",
"custom_13": "string",
"custom_14": "string",
"custom_15": "string",
"custom_16": "string",
"custom_17": "string",
"custom_18": "string",
"custom_19": "string",
"custom_20": "string",
"line_items": [
{
"line_item_id": 0,
"invoice_id": 0,
"admin_id": 0,
"item_id": 0,
"item_name": "string",
"item_accounting_sku": "string",
"item_external_key": "string",
"item_token": "string",
"item_units": "string",
"item_type": "string",
"invoice_line_bundle_id": 0,
"paycycle": "string",
"tierset_id": 0,
"package_line_id": 0,
"package_line_external_key": "string",
"descrip": "string",
"line_prorate": 0,
"line_rate": 0,
"line_quantity": 0,
"line_usage": 0,
"line_subtotal": 0,
"line_total": 0,
"usage_from": 0,
"usage_to": 0,
"number_of_recurs_this": 0,
"number_of_recurs_line": 0,
"tax_taxable": 0,
"tax_taxed": 0,
"tax_total": 0,
"tax_id": "string",
"tax_group_id": "string",
"tax_name": "string",
"tax_group_name": "string",
"custom_1": "string",
"custom_2": "string",
"custom_3": "string",
"custom_4": "string",
"custom_5": "string",
"custom_6": "string",
"custom_7": "string",
"custom_8": "string",
"custom_9": "string",
"custom_10": "string"
}
],
"schedule": [
{
"invoice_schedule_id": 0,
"invoice_id": 0,
"token": "string",
"paymethod": "string",
"creditcard_id": 0,
"ach_id": 0,
"tokenized_id": 0,
"due_date": "2024-07-29",
"days_overdue": 0,
"amount": 0,
"amount_or_percent_formatted": "string",
"balance": 0,
"date": "2024-07-29",
"url_paylink": "string",
"url_ttl_paylink": "string"
}
],
"tags": [
"string"
]
}
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": {
"invoice_id": 98165,
"currency_id": 1,
"brand_id": 1,
"terms_id": 2,
"admin_id": 1,
"external_key": null,
"token": "1tslo5m9h51b",
"refnumber": "98165",
"cycle_pre_from_date": null,
"cycle_pre_to_date": null,
"cycle_this_date": null,
"cycle_post_from_date": null,
"cycle_post_to_date": null,
"bill_addr1": "56 Cowles",
"bill_addr2": "Suite 620",
"bill_addr3": "",
"bill_city": "Minneapolis",
"bill_state": "MN",
"bill_postcode": "55416",
"bill_country": "United States",
"bill_notes": null,
"ship_addr1": null,
"ship_addr2": null,
"ship_addr3": null,
"ship_city": null,
"ship_state": null,
"ship_postcode": null,
"ship_country": null,
"ship_notes": null,
"memo": null,
"custom_1": null,
"custom_2": null,
"custom_3": null,
"custom_4": null,
"custom_5": null,
"write_datetime": "2019-09-26 10:16:43",
"void_datetime": null,
"currency_symbol": "$",
"currency_iso4217": "USD",
"admin_name": "ChargeOver Support",
"invoice_status_name": "Unpaid",
"invoice_status_str": "open-unpaid",
"invoice_status_state": "o",
"subtotal": 100,
"total": 100,
"taxes": 0,
"credits": 0,
"payments": 35,
"writeoffs": 0,
"declines": 0,
"applied": 35,
"sum_base": 0,
"sum_usage": 0,
"sum_onetime": 100,
"is_paid": false,
"paid_date": null,
"balance": 65,
"is_void": false,
"due_date": "2019-12-20",
"terms_name": "Net 30",
"terms_days": 30,
"days_overdue": 0,
"is_overdue": false,
"date": "2019-09-26",
"bill_block": "56 Cowles\r\nSuite 620\r\nMinneapolis, MN 55416\r\nUnited States",
"ship_block": "",
"url_permalink": "http://dev1.chargeover.test/r/invoice/view/1tslo5m9h51b",
"url_paylink": "http://dev1.chargeover.test/r/trans/pay/1tslo5m9h51b",
"url_pdflink": "http://dev1.chargeover.test/r/invoice/pdf/1tslo5m9h51b",
"url_self": "http://dev1.chargeover.test/admin/r/invoice/view/98165",
"package_id": null,
"customer_id": 3488,
"line_items": [
{
"invoice_id": 98165,
"item_id": 29,
"tierset_id": null,
"admin_id": null,
"descrip": "1-month subscription to gold plan.",
"line_rate": 100,
"line_quantity": 1,
"line_prorate": 1,
"line_usage": 0,
"usage_from": 0,
"usage_to": 0,
"tax_id": null,
"tax_group_id": null,
"tax_taxable": 100,
"tax_taxed": 0,
"tax_total": 0,
"is_base": false,
"is_free": false,
"is_setup": false,
"is_usage": false,
"is_recurring": false,
"is_latefee": false,
"is_taxed": false,
"custom_1": null,
"custom_2": null,
"custom_3": null,
"custom_4": null,
"custom_5": null,
"item_name": "Gold Plan",
"item_external_key": null,
"item_token": "1kzl806611h1",
"item_accounting_sku": null,
"item_units": null,
"tax_name": null,
"tax_group_name": null,
"line_subtotal": 100,
"line_total": 100,
"line_item_id": 234,
"package_line_id": null,
"package_line_external_key": null
}
],
"sent": [],
"schedule": [
{
"invoice_schedule_id": 13,
"invoice_id": 98165,
"token": "199m59nc2k1p",
"paymethod": "inv",
"creditcard_id": null,
"ach_id": null,
"url_paylink": "http://dev1.chargeover.test/r/trans/sch/1tslo5m9h51b/199m59nc2k1p",
"amount": 10,
"balance": 0,
"amount_or_percent_formatted": "$ 10.00",
"date": "2019-09-30"
},
{
"invoice_schedule_id": 16,
"invoice_id": 98165,
"token": "19nvqp56y146",
"paymethod": "ach",
"creditcard_id": null,
"ach_id": 8,
"url_paylink": "http://dev1.chargeover.test/r/trans/sch/1tslo5m9h51b/19nvqp56y146",
"amount": 25,
"balance": 25,
"amount_or_percent_formatted": "25%",
"date": "2019-11-20"
}
]
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Object not found
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 404,
"status": "Error",
"message": "This object does not exist.",
"details": {},
"response": null
}