Get Transaction Invoice
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"created": "2023-11-07T05:31:56Z",
"src_amount": "<string>",
"dst_amount": "<string>",
"object_id": 123,
"resulting_balance": "<string>",
"exchange_rate": "<string>",
"cost": "<string>",
"fee": "<string>",
"status": "<string>",
"transaction_type": "<string>",
"transaction_subtype": "<string>",
"src_asset": "<string>",
"dst_asset": "<string>",
"quote_cost": "<string>",
"aud_fee": "<string>",
"aud_value": "<string>",
"fee_currency": "<string>"
}Private
Get Transaction Invoice
Generate a PDF invoice for a wallet transaction.
Looks up the corresponding TransactionSummary and generates the invoice. Only supports swap, buy, sell, and withdrawal transactions.
GET
/
api
/
private
/
v2
/
wallet
/
{asset}
/
wallet-transactions
/
{id}
/
invoice
/
Get Transaction Invoice
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/v2/wallet/{asset}/wallet-transactions/{id}/invoice/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"created": "2023-11-07T05:31:56Z",
"src_amount": "<string>",
"dst_amount": "<string>",
"object_id": 123,
"resulting_balance": "<string>",
"exchange_rate": "<string>",
"cost": "<string>",
"fee": "<string>",
"status": "<string>",
"transaction_type": "<string>",
"transaction_subtype": "<string>",
"src_asset": "<string>",
"dst_asset": "<string>",
"quote_cost": "<string>",
"aud_fee": "<string>",
"aud_value": "<string>",
"fee_currency": "<string>"
}Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Query Parameters
Available options:
concise, json Response
200 - application/json
A wallet transaction: a single deposit or withdrawal of an asset, with its status and amounts.
Point-in-time balance