Retrieve a Crypto Statement

Retrieves the crypto wallet statement by passing the id.
Crypto
Retrieve a Crypto Statement
 last updated: 
July 7, 2022

You can retrieve a crypto wallet statement by:
- passing the year and month parameter as yyyy/mm
- passing the export parameter as export=json or export=pdf

You get a:
- PDF file as a response (content type is application-pdf) If export=pdf
- JSON response (content type is application-json) if export=json

ENDPOINT

  1. GET /v1/crypto/:id/statement/2021/12?export=json

RESPONSE

  1. {
  2.   "walletId": "crw-63d656eb-fedc-4250-8111-48a5ff0faed9",
  3.   "cryptoAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
  4.   "label": "Main Account",
  5.   "openingBalance": "0.00",
  6.   "closingBalance": "1000.00",
  7.   "startDate": "2021-12-01",
  8.   "endDate": "2021-12-31",
  9.   "transactions": [
  10.     {
  11.      "id": "txn-1dac5dc4-b7fd-4a93-9f93-807affd73cdf",
  12.      "txnType": "debit",
  13.      "transferType": "crypto",
  14.      "subType": "",
  15.      "title": "crypto buy payment",
  16.      "description": "Crypto Buy Transfer",
  17.      "amount": "-0.10",
  18.      "balance": "0.012132",
  19.      "card": null,
  20.      "walletId": "acc-1365d52e-d72a-458f-8905-627e3bae33ad",
  21.      "personId": "per-21cdecd9-b9e1-49e5-8ce8-842a27235752",
  22.      "businessId": "bus-0fc3d3cb-f2bf-407b-8377-77acc57f5ea6",
  23.      "programId": "prg-b9f17601-4717-460e-bda5-9598f6f6db28",
  24.      "createdAt": "2022-02-18T08:31:16Z",
  25.      "txnDate": "2022-02-18T08:31:16Z",
  26.      "status": "settled"
  27.    }
  28.  ]
  29. }