Payments

Get a list of payments

GET https://api.8pay.network/v1/:chain/one-time

Path Parameters

Name
Type
Description

chain*

string

Query Parameters

Name
Type
Description

transactionHash

string

filter by transactionHash

tag

string

filter by tag

sender

string

filter by sender

receiver

string

filter by receiver

token

string

filter by token

from

string

filter by timestamp (default 0)

to

string

filter by timestamp (default current timestamp)

sort

string

asc or desc (default desc), sort based on timestamp

Headers

Name
Type
Description

Authorization

string

Bearer <api-key>

{
    "data": [
        {
            "id": "0xc91551c7ed9a3c93081b7e5951dba12bafbdba0f3857449affe582a7b0381619",
            "description": "Ebook",
            "sender": "0xe42fD8a58A82fDF624A8a94dA03a0e44F9934Dff",
            "token": "8PAY",
            "category": "Shop",
            "tag": "ebook_859294",
            "timestamp": 1574954504,
            "transactionHash": "0x7797672488458a27fe022981558636e25d92302bd80a19a4e84008aaa63ace21",
            "transactionStatus": "confirmed",
            "receivers": [
                {
                    "user": "0x38B70aC0BEf71A46Fc9E07f9c64913b9F533e54A",
                    "amount": "5",
                    "fee": "0.05"
                }
            ]
        }
    ],
    "limit": 100,
    "offset": 0,
    "total": 1
}

Get a payment

GET https://api.8pay.network/v1/:chain/one-time/:id

Path Parameters

Name
Type
Description

id

string

ID of the one-time

chain

string

Headers

Name
Type
Description

Authorization

string

Bearer <api-key>

{
    "id": "0xc91551c7ed9a3c93081b7e5951dba12bafbdba0f3857449affe582a7b0381619",
    "description": "Ebook",
    "sender": "0xe42fD8a58A82fDF624A8a94dA03a0e44F9934Dff",
    "token": "8PAY",
    "category": "Shop",
    "tag": "ebook_859294",
    "timestamp": 1574954504,
    "transactionHash": "0x7797672488458a27fe022981558636e25d92302bd80a19a4e84008aaa63ace21",
    "transactionStatus": "confirmed",
    "receivers": [
        {
            "user": "0x38B70aC0BEf71A46Fc9E07f9c64913b9F533e54A",
            "amount": "5",
            "fee": "0.05"
        }
    ]
}

Last updated