Get Invoice

/api/v1_1/invoice/{invoice_id}

get
Invoice

https://{domain}.customersuccessbox.com/api/v1_1/invoice/{invoice_id}
GET Invoice fetches a single unique Subscription record along with its attributes
Request
Response
Request
Path Parameters
invoice_id
required
string
Unique identifier for Invoice
Headers
Authorization
required
string
Bearer {secret_key}
Content-Type
required
string
application/json
Response
200: OK
{
"data": {
"id": 100024,
"account_id": "100006",
"subscription_id": "100006",
"status": "Paid",
"total": "1000",
"amount_paid": "1000",
"amount_adjusted": "0",
"credits_applied": "0",
"amount_due": "0",
"currency": "USD",
"write_off_amount": "0",
"external_invoice_id": "INV-JHhCRSrTk7",
"external_subscription_id": "SUB-z6nQnbKzrohx",
"created_on": "2018-11-01 00:00:00",
"due_on": "2018-12-04 00:00:00",
"paid_on": "2018-11-01 00:00:00",
"updated_on": "2018-11-01 00:00:00",
"created_at": "2018-11-15 09:16:10",
"updated_at": "2019-01-24 14:26:18",
"external_account_id": null,
"paid_on_for_humans": "5 months ago",
"paid_on_for_date_format": "2018-11-01",
"due_on_for_humans": "4 months ago",
"due_on_for_date_format": "2018-12-04",
"created_on_for_humans": "5 months ago",
"created_on_for_date_format": "2018-11-01",
"updated_on_for_humans": "5 months ago",
"updated_on_for_date_format": "2018-11-01"
}
}

CURL example

curl --location --request GET "https://{domain}.customersuccessbox.com/api/v1_1/invoice/INV-JHhCRSrTk7" \
--header "Authorization: Bearer {secret_api_key}" \
--header "Content-Type: application/json" \