Get invoice activity
curl --request GET \
--url https://api.interchange.io/api/v2/billing/invoice-activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/billing/invoice-activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/billing/invoice-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rows": [
{
"status": "open",
"label": "<string>",
"kind": "media",
"currency": "USD",
"amountMinor": 0,
"ref": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"paidAt": "2023-11-07T05:31:56Z",
"invoiceRef": "<string>",
"meta": {
"activityKey": "<string>",
"iuQuantity": 123
}
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Buyer Billing
Get invoice activity
Invoice activity for the caller’s org (status, kind, currency, amount, due/paid date). Rows project from the org’s issued IU fee invoices (kind: fees) — empty until the org’s first charged billing cycle closes. Dark-metered (cost_bearer=platform) usage is never billable and never appears.
GET
/
billing
/
invoice-activity
Get invoice activity
curl --request GET \
--url https://api.interchange.io/api/v2/billing/invoice-activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/billing/invoice-activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/billing/invoice-activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"rows": [
{
"status": "open",
"label": "<string>",
"kind": "media",
"currency": "USD",
"amountMinor": 0,
"ref": "<string>",
"dueAt": "2023-11-07T05:31:56Z",
"paidAt": "2023-11-07T05:31:56Z",
"invoiceRef": "<string>",
"meta": {
"activityKey": "<string>",
"iuQuantity": 123
}
}
]
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Query Parameters
Direct child customer to read or update from an authorized parent billing organization
Pattern:
^[1-9][0-9]*$Response
Get invoice activity
Invoice activity for the caller’s org, newest first. Empty until the organization has an issued IU fee invoice; other row-kind producers are not wired yet.
Show child attributes
Show child attributes