Retrieve an invoice

Returns the full details of a specific invoice, including its line items, applied voucher, and payment session.

GET

Headers

string

The Bearer token for authentication.

string

The user agent of the request. Must contain at least two identifiers separated by a space.

string

The content type of the request.

Parameters

string

The ID of the invoice to retrieve.

Response Body

application/json
boolean

Indicates that the request was successful.

object

The invoice details.

string

The ID of the invoice.

number

The Serial ID of the invoice.

string

The ID of the subscription associated with the invoice.

object

The customer details.

string

The ID of the customer.

string

The name of the customer.

string

The email of the customer.

object

Customer billing details.

string

Address line 1.

string

Address line 2.

string

City.

string

State.

string

Zip code.

string

Country code in ISO 3166-1 alpha-2 format.

object

Customer shipping details schema.

string

Full name of the customer.

string

Phone number of the customer. (e.g. +597-8123456)

string

Address line 1.

string

Address line 2.

string

City.

string

State.

string

Zip code.

string

Country code in ISO 3166-1 alpha-2 format.

object

The details of the voucher applied to the invoice.

string

The ID of the voucher.

number

The rate of the voucher.

string

The summary of the invoice.

object

The amount details of the invoice.

float

The sub total of the invoice.

float

The discount total of the invoice.

float

The net total of the invoice.

string

Status of the invoice.

draftunpaidpaidvoid
string

The currency of the invoice.

object

The session details for collecting payment

string

The checkout url

date-time

Session expiration time.

array

The line items of the invoice.

The line item details.
string

The ID of the line item.

string

The description of the line item.

number

The quantity of the line item.

object

The total details of the line item.

float

The unit price of the line item.

float

The calculated total of the line item.

date-time

The date and time the line item was created.

date-time

The due date and time of the invoice.

date-time

The date and time the invoice was paid.

date-time

The date and time the invoice was voided.

date-time

The date and time the invoice was created.