Skip to main content
A deposit is created automatically whenever funds arrive at one of your virtual accounts or onramps. You don’t create deposits directly — instead, you query them to track the status of incoming payments as they move through the conversion and settlement pipeline. In sandbox mode, you can trigger simulated deposits yourself to test your integration end to end.

Authentication

All endpoints require either a Bearer token or an API key.

Deposit lifecycle

NGN deposits move through the following status sequence:

List deposits

GET https://api.dubupay.com/api/v1/payments/deposits Returns a paginated list of deposits. You can filter by type, status, associated onramp or offramp, and date range.

Query parameters

string
Filter by deposit type. One of NGN_DEPOSIT or CRYPTO_DEPOSIT.
string
Filter by status. One of PENDING, COMPLETED, FAILED, FLAGGED, REVERSED.
string
Filter deposits that arrived through a specific onramp.
string
Filter deposits associated with a specific offramp.
string
Start of the date range in ISO 8601 format with timezone offset (e.g., 2024-01-01T00:00:00+01:00).
string
End of the date range in ISO 8601 format with timezone offset.
number
Page number (1-indexed).
number
Results per page. Up to 100.

Response

array
List of deposit objects.

Example

Example — filter by date range


Get a deposit

GET https://api.dubupay.com/api/v1/payments/deposits/:id Retrieves a single deposit by ID with full detail including settlement information.

Path parameters

string
required
The deposit ID.

Response

object
Full deposit object.

Example


Simulate a deposit (sandbox only)

POST https://api.dubupay.com/api/v1/payments/sandbox/deposits Triggers a simulated NGN deposit on a given onramp. Only available in test/sandbox mode. Use this to test your webhook handlers and deposit processing logic without sending real bank transfers.
This endpoint is only active when using a test API key (dubu_sk_test_...). Calling it with a live key returns an error.

Request body

string
required
The ID of the onramp to simulate the deposit against. The onramp must be in ACTIVE status.
boolean
When set to true, the simulated deposit is created with a FLAGGED status to test your compliance-handling flows. Defaults to false.

Example — normal deposit

Example — flagged deposit