Get Transaction Invoice
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/wallet/all-transactions/{id}/invoice/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/wallet/all-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/wallet/all-transactions/{id}/invoice/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"summary_id": 123,
"id": 123,
"object_id": 123,
"created": "2023-11-07T05:31:56Z",
"src_asset": "<string>",
"dst_asset": "<string>",
"exchange_rate": "<string>",
"fee_currency": "<string>",
"transaction_type": "buy",
"transaction_subtype": "<string>",
"src_amount": "<string>",
"dst_amount": "<string>",
"quote_cost": "<string>",
"cost": "<string>",
"fee": "<string>",
"aud_fee": "<string>",
"aud_value": "<string>",
"status": "<string>"
}Private
Get Transaction Invoice
Generate a PDF invoice for a transaction.
Only supports swap, buy, sell, and withdrawal transactions. Returns 501 Not Implemented for other transaction types.
GET
/
api
/
private
/
wallet
/
all-transactions
/
{id}
/
invoice
/
Get Transaction Invoice
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/wallet/all-transactions/{id}/invoice/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/wallet/all-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/wallet/all-transactions/{id}/invoice/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"summary_id": 123,
"id": 123,
"object_id": 123,
"created": "2023-11-07T05:31:56Z",
"src_asset": "<string>",
"dst_asset": "<string>",
"exchange_rate": "<string>",
"fee_currency": "<string>",
"transaction_type": "buy",
"transaction_subtype": "<string>",
"src_amount": "<string>",
"dst_amount": "<string>",
"quote_cost": "<string>",
"cost": "<string>",
"fee": "<string>",
"aud_fee": "<string>",
"aud_value": "<string>",
"status": "<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>.
Path Parameters
A unique integer value identifying this transaction summary.
Response
200 - application/json
Serializer for TransactionSummary matching IndividualAssetWalletIOV2Serializer structure. All related field logic is pre-computed in the materialized view.
buy- Buysell- Sellswap- Swapdeposit- Depositwithdrawal- Withdrawalcommission- Commissionairdrop- Airdropstake- Stakeunstake- Unstakereward- Reward
Available options:
buy, sell, swap, deposit, withdrawal, commission, airdrop, stake, unstake, reward Convert transaction_subtype choice to V2 format.
Maximum string length:
50