Deposit Pending / Rejected / Completed

Published when a deposit is pending, rejected or completed.

Event metadata

  • name: DEPOSIT
  • types:
    • deposit.pending
    • deposit.compliance.rejected
    • deposit.completed

Request body

Fields

Data Type

Description

event_id

string

A unique ID for the event.

event_name

string

Event name.

event_type

string

Event type.

source_id

string

Desposit ID.

version

string

API Version number.

data

object

Object containing deposit details associated with the event.

data.direct_id

string

Indicates the main account ID to which the current data belongs.

  • If direct_id is 0, the data belongs to the main account, and account_id represents the main account ID.
  • If direct_id is not 0, the data belongs to a sub-account. In this case, account_id represents the sub-account ID, and direct_id refers to the associated main account ID.

data.account_id

string

The ID of the account on which the event occurred.

data.deposit_amount

string

Represents the gross amount before any fees are deducted.


Notification examples

Pending

{
    "version": "V1.6.0",
    "event_name": "DEPOSIT",
    "event_type": "deposit.pending",
    "event_id": "319318dc-934e-4d96-a994-601383e0d8a6",
    "source_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
    "data": {
        "direct_id": "0",
        "account_id": "ac1e31ab-f0fd-4432-91fb-b06ec1b3d7b9",
        "account_name": "UQPAY PTE LTD.",
        "deposit_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
        "short_reference_id": "230907-GwisGvJK",
        "deposit_currency": "USD",
        "deposit_fee": "0",
        "deposit_amount": "100",
        "create_time": "2024-07-18T14:19:52+08:00",
        "complete_time": "2024-07-18T14:19:52+08:00",
        "update_time": "2024-05-08T14:19:52+08:00",
        "deposit_status": "Pending",
        "deposit_reference": ""
    }
}

Rejected

{
    "version": "V1.6.0",
    "event_type": "DEPOSIT",
    "event_name": "deposit.compliance.rejected",
    "event_id": "40f6b64c-e77f-43fb-af12-2cb4b35a8b71",
    "source_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
    "data": {
        "direct_id": "0",
        "account_id": "ac1e31ab-f0fd-4432-91fb-b06ec1b3d7b9",
        "short_reference_id": "230907-GwisGvJK",
        "account_name": "UQPAY PTE LTD.",
        "deposit_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
        "deposit_currency": "USD",
        "deposit_fee": "0",
        "deposit_amount": "100",
        "create_time": "2024-07-18T14:19:52+08:00",
        "complete_time": null, // complete time is null for rejection
        "update_time": "2024-05-08T14:19:52+08:00",
        "deposit_status": "Rejected",
        "deposit_reference": ""
    }
}

Completed

{
    "version": "V1.6.0",
    "event_name": "DEPOSIT",
    "event_type": "deposit.completed",
    "event_id": "f531776b-df59-4d11-84f0-11e7ae3755f0",
    "source_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
    "data": {
        "direct_id": "0",
        "account_id": "ac1e31ab-f0fd-4432-91fb-b06ec1b3d7b9",
        "short_reference_id": "230907-GwisGvJK",
        "account_name": "UQPAY PTE LTD.",
        "deposit_id": "881147e4-89de-4e0e-afbc-7d19f6c4f14b",
        "deposit_currency": "USD",
        "deposit_fee": "5",
        "deposit_amount": "100",
        "create_time": "2024-07-18T14:19:52+08:00",
        "complete_time": "2024-07-18T14:19:52+08:00",
        "update_time": "2024-07-18T14:19:52+08:00",
        "deposit_status": "Completed",
        "deposit_reference": ""
    }
}