Skip to main content
POST
/
api
/
v1.0
/
account-transfer
/
{account_id}
/
transfer
Transfer between accounts
curl --request POST \
  --url https://sandbox-payment-b2b.singapay.id/api/v1.0/account-transfer/{account_id}/transfer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-PARTNER-ID: <api-key>' \
  --data '
{
  "amount": 500000,
  "beneficiary_account_number": "123456789012"
}
'
{
  "status": 200,
  "success": true,
  "data": {
    "transaction_id": "12301AM20240609120000123",
    "status": "success",
    "amount": {
      "currency": "IDR",
      "value": "500000"
    },
    "remitter": {
      "account_id": "<string>",
      "account_name": "<string>",
      "account_number": "<string>",
      "balance_after": "<string>"
    },
    "beneficiary": {
      "account_id": "<string>",
      "account_name": "<string>",
      "account_number": "<string>",
      "balance_after": "<string>"
    },
    "processed_timestamp": "1717920000123",
    "created_at": "1717920000456"
  },
  "pagination": {}
}

Authorizations

Authorization
string
header
required

JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.

X-PARTNER-ID
string
header
required

Merchant API key (Credential.api_key). Required on every request.

Path Parameters

account_id
string
required

ULID of the source (remitter) account.

Body

application/json
amount
number<float>
required

Transfer amount in IDR. Must be at least 1 and not exceed the remitter account available balance.

Example:

500000

beneficiary_account_number
string
required

12-digit account number of the destination account. Must belong to the same merchant and be active.

Example:

"123456789012"

Response

Transfer completed successfully. The data object contains the created transfer record.

Standard success response envelope for account transfer endpoints.

status
integer
Example:

200

success
boolean
Example:

true

data
object

Account transfer transaction resource.

pagination
object | null

Pagination metadata for list endpoints; omitted for single-object responses.