Singapay Home Page
Logo Icon
  1. Webhooks
  2. Disbursement Transaction

Information

MethodPathFormatAuthentication
POSThttps://merchant-disbursement-transaction-urljsonOAuth 2.0 with Access Token

Request Details

Headers Structure

FieldValueTypeMandatoryLengthDescriptionExample
X-PARTNER-IDapi_keyAlphanumericMandatoryAPI key obtained from the merchant dashboard.b3ed7d4b-a96c-6c08-b3c7-12c3124242d9
Acceptapplication/jsonAlphabeticMandatorySpecifies JSON as the expected response format.application/json
AuthorizationBearer {bearerToken}AlphanumericMandatoryBearer token obtained from the get access token endpoint.Bearer eyJ0eXAiOiJKV1{…}

Response Details

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code200
successBooleanMandatory12xx is true. 4xx-500 is false.true
dataObjectConditional---
> transaction_idNumericMandatory-Transaction ID36455454
> statusAlphabeticMandatory-Transaction status (e.g., success, failed, pending)success
> bank_codeAlphabeticMandatory-Bank code like: BRI, BNI, DANAMON, etcBRI
> bank_account_numberNumericMandatory-Beneficiary bank account number283434
> bank_account_nameAlphabetic--Beneficiary bank account name-
> post_timestampTimestampMandatory-Date requested with Unix Timestamp millisecond format1714618220440
> processed_timestampTimestamp--Date finished with Unix Timestamp millisecond format-
> notesAlphabetic--Additional notes-
> amountObjectMandatory-Amount details of the transaction-
>> valueNumericMandatory-Amount the recipient will receive11000.00
>> currencyAlphabeticMandatory3Currency typeIDR
> feesArrayMandatory-List of transaction fees-
>> nameAlphabetic--Name of the fee-
>> valueNumericMandatory-Fee amount2000.00
>> currencyAlphabeticMandatory3Currency typeIDR
> total_amountObjectMandatory-Total amount details of the transaction-
>> valueNumericMandatory-Total amount the recipient will receive11000.00
>> currencyAlphabeticMandatory3Currency typeIDR
> source_accountObjectMandatory-Source account details-
>> account_idNumeric--Source account ID-
> balance_afterObjectMandatory-Balance after the transaction-
>> currencyAlphabeticMandatory3Currency typeIDR
>> valueNumericMandatory-Balance amount after the transaction13000.00

Response Example

Success: Here’s an example of a successful response.

{
  "status": 200,
  "success": true,
  "data": {
    "transaction_id": "4565456565",
    "status": "success",
    "amount": {
      "value": "11000.00",
      "currency": "IDR"
    },
    "fees": [
      {
        "name": "transfer service fee name",
        "value": "2000.00",
        "currency": "IDR"
      }
    ],
    "total_amount": {
      "value": "13000.00",
      "currency": "IDR"
    },
    "bank_code": "BRI",
    "bank_account_number": "63434554",
    "bank_account_name": "Julian Pratama",
    "processed_timestamp": "1714618220440",
    "post_timestamp": "1714618220440",
    "notes": "lorem ipsum",
    "source_account": {
      "account_id": "374365465454",
      "balance_after": {
        "value": "0.00",
        "currency": "IDR"
      }
    }
  }
}

Error: This is an example of an unsuccessful request.

{
    "status": 401,
    "success": false,
    "error": {
        "code": 401,
        "message": "Unauthorized partner, please sign in"
    }
}