Deposit Logs
Returns a full history of deposit transactions and IPN notifications for a specific deposit request. Use this endpoint to reconcile top-ups, inspect on-chain txids, and verify how callbacks were delivered to your server. The output is similar in purpose to KingPay’s /deposit/logs/ endpoint.
https://api-service.kingpay.online/deposit/logs/ All parameters are passed via query string. The token parameter must match the deposit_id returned by the /deposit/request/ endpoint.
Notices
- This endpoint is intended for server-side use (monitoring, debugging, reconciliation), not for direct exposure to end-users.
- The
apikeymust belong to the same project that created the deposit request. - Multiple transactions can be associated with the same token (e.g. user tops up multiple times for the same deposit request).
total_depositedis computed as a sum ofpaid_amount_fiatvalues for payments withpayment_statusequal toconfirmedorcompleted. Pending payments remain indepositsbut do not contribute to the total.
Query parameters (required)
apikey string • required
Project API key generated in your merchant dashboard. Only deposits created under this project will be accessible.
May also be sent via apikey HTTP header.
token string • required
Deposit identifier returned by the /deposit/request/ endpoint. Internally mapped to the invoice UID of the deposit.
Query parameters (optional)
This endpoint currently does not support additional filters. In future versions, pagination or date-range filters may be added for large deposit histories.
curl -G \
'https://api-service.kingpay.online/deposit/logs/' \
--data-urlencode 'apikey=YOUR_PROJECT_API_KEY' \
--data-urlencode 'token=de2d1c9f4a3b8e7d1f2a9c3b4e6f8a1'{
"status": "success",
"deposits": [
{
"txid": "f5e3d9a2c1b4e6f8a9c3d1e2f4b6a8c0d9e1f2a3b4c5d6e7f8a9b0c1d2e3f4",
"paid_amount": "150.000000000000000000",
"paid_amount_fiat": "150.00",
"received_amount": "150.000000000000000000",
"received_amount_fiat": "150.00",
"coin": "trc20_usdt",
"payment_status": "completed",
"timestamp": "2025-11-23T10:15:30.000Z"
},
{
"txid": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4f5e6d7c8b9a0f1e2",
"paid_amount": "50.000000000000000000",
"paid_amount_fiat": "50.00",
"received_amount": "50.000000000000000000",
"received_amount_fiat": "50.00",
"coin": "trc20_usdt",
"payment_status": "completed",
"timestamp": "2025-11-24T08:02:10.000Z"
}
],
"total_deposited": "200.00",
"currency": "USD",
"notifications": [
{
"request_url": "https://example.com/ipn/deposit?user_id=123",
"payload": {
"payment_id": "de2d1c9f4a3b8e7d1f2a9c3b4e6f8a1",
"type": "deposit",
"is_paid": "1",
"paid_amount": "150.00",
"paid_amount_fiat": "150.00",
"paid_coin": "trc20_usdt",
"txid": "f5e3d9a2c1b4e6f8a9c3d1e2f4b6a8c0d9e1f2a3b4c5d6e7f8a9b0c1d2e3f4",
"status": "done"
},
"response": "OK",
"response_status": 200,
"pending": false,
"status": "done",
"currency": "USD",
"is_paid": 1,
"paid_amount": null,
"paid_coin": null,
"exchange_rate": null,
"txid": null,
"address": null,
"value": null,
"success_token": null,
"payment_url": null,
"redirect_url": null,
"timestamp": "2025-11-23T10:15:31.000Z"
}
]
}Response fields
status— request result ("success"on success).deposits— list of deposit transactions associated with this token. Each item contains:txid,paid_amount,paid_amount_fiat,received_amount,received_amount_fiat,coin,payment_status,confirmations,required_confirmations,timestamp.paid_amount— crypto amount marked as paid for this transaction (from DB).paid_amount_fiat— fiat value forpaid_amountstored in DB (may benull).received_amount— crypto amount actually received on-chain (from DB).received_amount_fiat— fiat value forreceived_amountstored in DB (may benull).total_deposited— sum ofpaid_amount_fiatfor confirmed and completed deposits. Returns0.00when only pending payments have fiat values, ornullwhen no fiat values are available.currency— fiat currency code fortotal_deposited, e.g.USD.notifications— history of IPN webhook attempts for this deposit, including the originalpayload, targetrequest_url, HTTPresponse_status, serverresponseand atimestamp.