🏬Transactions

Transactions are vital for businesses. hence we provide this API endpoint using which you can programmatically fetch and list all the transactions associated with your Lazerpay account :

All Transactions

List all the transactions associated with your Lazerpay account

Fetch all transactions

GET https://api.lazerpay.engineering/api/v1/transactions

List all the transactions associated with your Lazerpay account

{
    // Response
}

Sample Request

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://api.lazerpay.engineering/api/v1/transactions',
  'headers': {
    Authorization: 'Bearer SECRET_KEY',
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Sample Response

{
  "message": "Transactions retrieved successfully",
  "status": "success",
  "statusCode": 200,
  "data": [
    {
      "id": "93754962-XXX-46a2-9858-XXX",
      "walletId": "XXX-35a2-421f-XXX-d23149572fd7",
      "externalId": null,
      "reference": "Vuzr458xTg",
      "senderAddress": null,
      "recipientAddress": "0x79A0cd9390XXXXX1D0651005128d4884094c",
      "actualAmount": 10,
      "amountPaid": 0,
      "amountPaidFiat": 0,
      "fiatAmount": 10,
      "amountReceived": 0,
      "amountReceivedFiat": 0,
      "fee": 0.1,
      "coin": "BUSD",
      "currency": "USD",
      "hash": null,
      "blockNumber": null,
      "type": "received",
      "acceptPartialPayment": false,
      "status": "pending",
      "network": "testnet",
      "paymentChannel": "crypto_transfer",
      "blockchain": "Binance Smart Chain",
      "fiatRate": 1,
      "cryptoRate": 1,
      "metadata": {},
      "fromCoin": null,
      "toCoin": null,
      "createdAt": "2022-09-05T22:09:57.119Z",
      "updatedAt": "2022-09-05T22:09:57.119Z",
      "customer": {
        "id": "XXXX-71cc-45e3-8562-XXXX",
        "walletId": "33cbb77a-XXX-421f-XXX-d23149572fd7",
        "name": "Abdulfatai Suleiman",
        "email": "[email protected]",
        "shippingAddress": null,
        "phone": null,
        "network": "testnet",
        "createdAt": "2022-09-05T22:09:57.119Z",
        "updatedAt": "2022-09-05T22:09:57.119Z"
      },
      "bankPayout": null
    },
    {
      "id": "65042fba-af39-487c-98c4-7a4ffa24125a",
      "walletId": "33cbb77a-35a2-421f-a733-d23149572fd7",
      "externalId": null,
      "reference": "jhtASK7eDf",
      "senderAddress": "0x2269XXXXXXXXXdeD76829e7A239C723",
      "recipientAddress": "0x89Af0fFA2XXXXXX812D8d06F41D5001",
      "actualAmount": 0.001,
      "amountPaid": 0.001,
      "amountPaidFiat": 0,
      "fiatAmount": 0,
      "amountReceived": 0.001,
      "amountReceivedFiat": 0,
      "fee": 0.000005,
      "coin": "USDT",
      "currency": null,
      "hash": "0xbd6f9fec6f4b60ea3XXXXXXXX4a1195780fef75dbf93bef7cc17e1",
      "blockNumber": 22573124,
      "type": "crypto_withdrawal",
      "acceptPartialPayment": false,
      "status": "confirmed",
      "network": "testnet",
      "paymentChannel": null,
      "blockchain": "Binance Smart Chain",
      "fiatRate": 0,
      "cryptoRate": 0,
      "metadata": {},
      "fromCoin": null,
      "toCoin": null,
      "createdAt": "2022-09-05T14:18:12.811Z",
      "updatedAt": "2022-09-05T14:18:12.811Z",
      "customer": null,
      "bankPayout": null
    },
  ],
  "count": 2,
  "currentPage": 1,
  "nextPage": null,
  "prevPage": null,
  "lastPage": 1
}

Get transaction by transaction ID

Fetch a specific transaction using its transaction id

Fetch transaction by ID

GET https://api.lazerpay.engineering/api/v1/transactions/:transaction_id

Path Parameters

NameTypeDescription

:transaction_id*

String

Supply a transaction ID

{
    // Response
}

Sample Request

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://api.lazerpay.engineering/api/v1/transactions/<id>',
  'headers': {
    Authorization: 'Bearer SECRET_KEY',
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Sample Response

{
  "message": "Transaction retrieved successfully",
  "data": {
    "id": "93754962-731e-XXX-9858-XXX",
    "walletId": "33cbb77a-XXX-421f-a733-XXXXX",
    "reference": "VuzXXX8xTg",
    "senderAddress": null,
    "recipientAddress": "0x79A0cXXXXXXX1D0651005128d4884094c",
    "actualAmount": 10,
    "amountPaid": 0,
    "amountPaidFiat": 0,
    "fiatAmount": 10,
    "amountReceived": 0,
    "amountReceivedFiat": 0,
    "fee": 0.1,
    "coin": "BUSD",
    "currency": "USD",
    "hash": null,
    "blockNumber": null,
    "type": "received",
    "acceptPartialPayment": false,
    "status": "pending",
    "network": "testnet",
    "paymentChannel": "crypto_transfer",
    "blockchain": "Binance Smart Chain",
    "fiatRate": 1,
    "cryptoRate": 1,
    "metadata": {},
    "fromCoin": null,
    "toCoin": null,
    "createdAt": "2022-09-05T22:09:57.119Z",
    "updatedAt": "2022-09-05T22:09:57.119Z",
    "customer": {
      "id": "bc48cc84-71cc-XXX-8562-XXXXX",
      "walletId": "33cbb77a-XXXXx-XXXX-a733-d23149572fd7",
      "name": "Abdulfatai Suleiman",
      "email": "[email protected]",
      "shippingAddress": null,
      "phone": null,
      "network": "testnet",
      "createdAt": "2022-09-05T22:09:57.119Z",
      "updatedAt": "2022-09-05T22:09:57.119Z"
    },
    "bankPayout": null
  },
  "status": "success",
  "statusCode": 200
}

Last updated