Voucher list

Request:

GET https://api.moneypipe.com/sandbox/v1/vouchers

Request headers:

Name Value
Authorization Bearer {company_token}

Query parameters:

Parameter Description For example
sort Sort by fields: amount, status, created, updated. sort=updated
sort_type Sort types: asc, desc. sort_type=asc
amount_from Filter from specified amount value. amount_from=0.001
amount_to Filter to specified amount value. amount_to=20
currency Filter by currency. Values are ​​separated by commas. currency=ETH,btc
status Filter by status. Values are separated by commas status=0
created_from Filter the creation date from the specified value created_from=2019-03-21
created_to Filter the creation date from to specified value created_to=2019-03-21
page Current page number page=2
per_page How many lines to display per page per_page=10

Response:

200

Body
{
    "data": [
        {
            "id": "9c2f66286b2d1277112c",
            "amount": "0.00100000",
            "currency": "ETH",
            "code": "7731bad3eaaf7496a3a3ab248c3ae34b0ad1061b01fbd3c948c5dcdffe07",
            "status": "successful",
            "type": "issued",
            "created_at": "2020-05-04T10:05:51.000000Z",
            "updated_at": "2020-05-04T10:06:12.000000Z"
        },
        {
            "id": "88e87a2291636152b1da",
            "amount": "0.02300000",
            "currency": "ETH",
            "code": "84edd9ab58ff58086f056c94ef5ad33341f8ac4fe91a0ac37c86a58aef4a",
            "status": "successful",
            "type": "issued",
            "created_at": "2020-05-04T09:58:58.000000Z",
            "updated_at": "2020-05-04T09:59:45.000000Z"
        },
        {
            "id": "77b1934abb6b55af17e5",
            "amount": "0.01400000",
            "currency": "ETH",
            "code": "c5045a00a8bab61e2b04f38c1ea8dd0ea3bd31c62317dcf2243aca0a6a9e",
            "status": "successful",
            "type": "paid off",
            "created_at": "2020-04-30T09:21:44.000000Z",
            "updated_at": "2020-04-30T13:31:45.000000Z"
        }
    ],
    "links": {
        "first": "https://api.moneypipe.com/sandbox/v1/vouchers?page=1",
        "last": "https://api.moneypipe.com/sandbox/v1/vouchers?spage=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://api.moneypipe.com/sandbox/v1/vouchers",
        "per_page": 50,
        "to": 3,
        "total": 3
    }
}

Voucher details:

Parameter Type Description
id string Voucher ID
amount string Voucher amount
currency string Currency of issued voucher
code string Code of issued voucher
status string Voucher status
type string Voucher type
created_at string Date of voucher creation 
updated_at string Date of voucher change