Singapay Home Page
Logo Icon
  1. Disbursement
  2. Get Disbursements

Information

MethodPathFormatAuthentication
GET/api/v1.0/disbursements/{account_id}jsonOAuth 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{…}

Body Structure

FieldValueTypeMandatoryLengthDescriptionExample
page{pageNumber}NumericOptional--2

Body Example

{
  "page": 2,
}

Response Details

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code200
successBooleanMandatory12xx is true. 4xx-500 is false.true
dataArray ObjectConditional---
> transaction_idNumericMandatory-Transaction id36455454
> statusAlphabeticMandatory-Transaction status. Value will be success, failed, pendingsuccess
> bankObject----
>> codeAlphabeticMandatory-Bank code like BRI, BNI, DANAMONBRI
>> account_numberNumericMandatory-Beneficiary Bank account number283434
>> account_nameAlphabetic----
> post_timestampTimestampMandatory-Date requested with Unix timestamp millisecond format1714618220440
> processed_timestampTimestamp--Date finished with Unix timestamp millisecond format-
> notesAlphabetic----
> amountObjectMandatory---
>> valueNumericMandatory-Transaction amount the recipient will receive11000.00
>> currencyAlphabeticMandatory3-IDR
> feesArrayMandatory---
>> nameAlphabetic--Transaction fee name-
>> valueNumericMandatory-Transaction fee2000.00
>> currencyAlphabeticMandatory3-IDR
> total_amountObjectMandatory---
>> valueNumericMandatory-Transaction amount the recipient will receive11000.00
>> currencyAlphabeticMandatory3-IDR
paginationObjectConditional---
> countNumericMandatory-Data quantity2
> totalNumericMandatory-Total of all data100
> perPageNumericMandatory-Total data per page10
> currentPageNumericMandatory-Current page1
> totalPagesNumericMandatory-Total page3
> linksObjectMandatory-Next or previous links-

Response Example

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

{
  "status": 200,
  "success": true,
  "data": [
    {
      "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",
          "account_number": "63434554",
          "account_name": "John Doe"
        },
        "processed_timestamp": "1714618220440",
        "post_timestamp": "1714618220440",
        "notes": "lorem ipsum"
      },
     "balance_after": {
      "value": "11000.00",
      "currency": "IDR"
    }
    }
  ],
  "pagination": {
    "count": 10,
    "total": 14,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 2,
    "links": {}
  }
}

Error: This is an example of an unsuccessful request.

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