Get transactions

use this API to get last 10 transactions. Each transaction will have a status field to show 'created' or 'expired' or 'success'

Get last 10 transactions for POS

GET https://api.paysea.net/txnforpos/<device ID>

Headers

[
    {
        "payment_Id": "6416c5b65f62c58af6ac8bd77924593927ebb90140492a1966d3896620b5dd16",
        "device_code": "paysea100",
        "payment_memo": "This is the test transaction",
        "payment_amount_sats": 3854,
        "btc_ask_rate": "25950.205",
        "payment_status": "success",
        "currency": "USD",
        "currency_amount": 1,
        "payout_amount": null,
        "payout_status": null,
        "btcaddress": "",
        "num_confirmation": -1,
        "amt_paid_sat": 3854,
        "paylink": "4a1ace4843abdb38",
        "created_at": 1692723293,
        "updated_at": 1692723422,
        "sheet_status": null,
        "tip_amount": null
    },
    ...
]

Excute this example curl to see the response.

curl --location 'https://tapi.paysea.net/txnforpos/payseatest100' \
--header 'Authorization: Bearer 2C7C39B6D842D43AFB4A675AE61B2'

Payment Status

  1. "payment_status": "created" - When the invoice is active but the payment is not received.

  2. "payment_status": "expired" - When the payment invoice is expired and payment is not received.

  3. "payment_status": "success" - When the payment is successfully received

Paylink - Payment link. use this field to link the created invoice with the list of transactions.

Sample Response:

[
    {
        "payment_Id": "3176745584d49dea7533feb645f641bafd4a14b412e5849b19feb31e98eadfb1",
        "device_code": "paysea100",
        "payment_memo": "This is the test transaction",
        "payment_amount_sats": 38,
        "btc_ask_rate": "26078.69",
        "payment_status": "expired",
        "currency": "USD",
        "currency_amount": 0.01,
        "payout_amount": null,
        "payout_status": null,
        "btcaddress": "",
        "num_confirmation": -1,
        "amt_paid_sat": null,
        "paylink": "9b7d3c1df307a1a4",
        "created_at": 1692968869,
        "updated_at": 1692969109,
        "sheet_status": "updated",
        "tip_amount": null
    },
    ...
]

Last updated