Filter Transactions

Get a list of transactions on your Terraswitch account.

POST {{ BASE_URL }}/v1/corporate/filter-transactions

Optional Query Parameters

Property
Data Type
Description
Example

limit

string

Number of records per page

50

page

string

Page number to view

1

order

string

Arrangement of records in descending or ascending order

"asc" or "desc"

Body Parameters

Property
Data Type
Description
Example
Required

status

string

Status of the transaction

"successful"

Yes, if no other field is specified

feature

string

Feature of the transaction

"wallet-transfer"

Yes if no other field is specified

import Axios from 'axios';

// set the api url
const API_URL = `${BASE_URL}/v1/corporate/filter-transactions`;

// define request body
const data = {
    status: "successful",
    feature: "wallet-transfer"
}

// make request using axios
Axios({
    method: "POST",
    url: `${API_URL}`,
    headers: {
        lg: 'en',
        ch: 'web'
        Authorization: `Bearer ${API_KEY}`,
        'Content-Type': 'application/json',
    },
    data: data
}).then((resp) => {
    console.log(resp)
}).catch((err) => {
    console.log(err)
})

Last updated