Listing invoices
GET
/api/public/v1/invoices
This endpoint returns a list of invoices with pagination.
Headers
Content-Type
application/vnd.api+json
Authorization
Bearer <api_key>
URL Parameters
order
string
Order in which the list of transactions should be returned. Can be created_at
.
order_type
string
Order type. Can be either asc
or desc
.
page
number
Page for which you want to return transactions.
per_page
number
Number of transactions per page to return.
reference
number
Invoice reference
.
Response Body
data.id
string
Invoice ID.
data.type
string
Entity type returned. Always invoices
.
data.attributes
object
Set of invoice attributes.
data.attributes.amountBilled
string
Invoice amount to display to end users. Determines the amount due after conversion.
data.attributes.amountCharged
string
Amount due. Determines the amount of cryptucurrency the end-user is required to pay.
data.attributes.targetAmount
string
Amount you receive into your target currency account.
data.attributes.billedCurrency
string
data.attributes.chargedCurrency
string
data.attributes.targetCurrency
string
data.attributes.chargedTargetRate
string
Charged currency to target currency exchange rate.
data.attributes.chargedTargetRateCurrency
string
Charged currency to target currency exchange rate.
data.attributes.reference
string
The custom reference ID to tie the invoice to end-user who pays. This can be anything you choose.
data.attributes.statusContext
string
data.attributes.network
string
data.attributes.networkName
string
Network name to display.
data.attributes.status
string
data.attributes.successRedirectUrl
string
URL your customer will be redirected from our hosted page to if the invoice completes.
data.attributes.unsuccessRedirectUrl
string
URL your customer will be redirected from our hosted page to if the invoice gets expired, cancelled or rejected.
data.attributes.paymentStatus
string
data.attributes.exchangeRate
string
Invoice exchange rate valid for 20 minutes.
data.attributes.expiresAt
string
Invoice expiry date and time.
data.attributes.createdAt
string
Date and time invoice was created at.
data.attributes.hostedPageUrl
string
Invoice hosted page.
included.type(addresses).attributes
object
Invocie receiving address. This is the address the end-user must send their crytpocurrency payment to.
included.type(invoiceTransactions).attributes.amountBilled
object
Invoice amount resulting from the invoice payment before the invoice processing fees. It is typically the amount you will want to credit to the account.
included.type(invoiceTransactions).attributes.billedChargedRate
object
Charged currency to billed currency exchange rate applied by Txn.
included.type(invoiceTransactions).attributes.billedChargedRateCurrency
object
Charged currency to billed currency exchange rate applied by Txn.
included.type(invoiceTransactions).attributes.transactionFee
object
Fee associated with the invoice represented in billedCurrency. For example, if the invoice is billed in TRY, the fee is also expressed in TRY.
included.type(invoiceTransactions).attributes.transactionFeeCurrency
object
Fee associated with the invoice represented in billedCurrency. For example, if the invoice is billed in TRY, the fee is also expressed in TRY.
included.type(invoiceTransactions).attributes.targetTransactionFee
object
Fee associated with the invoice represented in targetCurrency. For example, if the invoice target currency is EUR, the fee is also expressed in EUR.
included.type(invoiceTransactions).attributes.targetTransactionFeeCurrency
object
Fee associated with the invoice represented in targetCurrency. For example, if the invoice target currency is EUR, the fee is also expressed in EUR.
included.type(coinDeposits).attributes
object
Data related to cryptocurrency payment/s made by the end-user. In this object you will find a transaction hash txHash
, transaction amount amount
and transaction timestamp createdAt
.
included.type(transactions).attributes
object
Data related to invoice entries on the merchant's currency account on Txn. Efectively, this will be the amount credited to your account on the Txn platform after the invoice processing fees.
included.type(exchangeQuotes).attributes
object
This exchange quote pertains to a currency conversion involving both the charged currency and the target currency.
Response
Last updated