Transfer

Create a signature and use the request header + request body

Transfer Payment

POST https: //example.co.id/account/api/transfer

This service is used for transfer from the merchant's account to the destination account that has been registered previously

* means the parameter is required (mandatory)

Headers

NameTypeDescription

faspay-key*

String

Provide by faspay

faspay-timestamp*

String

datetime (Y-m-d H:i:s)

faspay-signature*

String

Signature please refer to signature section

faspay-authorization*

String

Encrypt method: AES 256 FASPAY_SECRET:APP_KEY:APP_SECRET)

Content-Type*

String

application/json

Request Body

NameTypeDescription

virtual_account*

Number(20)

VA Merchant

beneficiary_virtual_account*

Number(20)

VA number of beneficiary account

beneficiary_account*

Number(128)

Account number of VA

beneficiary_name*

String(255)

Account beneficiary name

beneficiary_bank_code*

Number(3)

Beneficiary bank code

beneficiary_region_code*

Number

Code of branch bank

beneficiary_country_code*

String(2)

Code of country

beneficiary_purpose_code*

Number(1)

Code of the purpose of using the system account

beneficiary_email

String

Beneficiary Email

Note: email can be filled in more than 1 by entering , for the separator

trx_no*

Number

Transaction number from merchant

trx_date*

DateTime

datetime format (Y-m-d H:i:s)

instruct_date*

DateTime

Instruct date is a date for transaction: -Null: real-time transaction -Datetime: ex 2018-12-21 08:30:00, the transaction will be sent at 2018-12-21 08:30:00

trx_amount*

Integer

Total amount, ex : 10.000 -> 1000000 Writing format is not allowed decimal, only integers are allowed

trx_desc*

String

Transaction description, If the user input is more than 15 characters, it will be cut into 15 characters.

callback_url*

String

URL for callback/notification, used to notify the merchant.

{
    "virtual_account": "9920015307",
    "beneficiary_virtual_account": "9920015361",
    "beneficiary_account": "10000006",
    "beneficiary_name": "PT. Florist lentera Abadi",
    "beneficiary_bank_code": "014",
    "beneficiary_region_code": "0391",
    "beneficiary_country_code": "ID",
    "beneficiary_purpose_code": "1",
    "beneficiary_email" : "priyonoagus005@gmail.com, agus.priyono@gmail.com"
    "trx_no": "87643666",
    "trx_date": "2020-08-25 08:51:00",
    "instruct_date": "",
    "trx_amount": 2500000,
    "trx_desc": "Transfer",
    "callback_url": "https://dev2.faspay.co.id/account/api/callback",
    "trx_id": 6411,
    "trx_reff": "O4wgHmwglqpFAv-hZiu-_9999980300009258",
    "status": "1",
    "message": "On Process",
    "response_code": "00",
    "response_desc": "success"
}

Object Type Reference

Parameter NameData TypeDescription

trx_id*

Number

Trx ID of transfer

trx_reff*

String (128)

Refference of transaction number on system disbursement

instruct_date*

DateTime

Response of instruct date has been sent

status*

Numeric (1)

List of sattus transaction: 1 = On Process, 2 = Success, 4 = Failed, 5 = Reverse

message*

String

Message transaction

response_code*

Number (2)

Response code from bank (00 = success)

response_desc*

String (32)

Response desc from bank

Sample Code API Request & Response

{  
  "virtual_account" : "9920015307",
  "beneficiary_virtual_account" : "9920015361",
  "beneficiary_account" : "10000006",
  "beneficiary_name" : "PT. Florist Lentera Abadi",
  "beneficiary_bank_code" : "014",
  "beneficiary_region_code" : "0391",
  "beneficiary_country_code" : "ID",
  "beneficiary_purpose_code" : "1",
  "beneficiary_email" : "johnnysuh@gmail.com, seosuhjohnny@gmail.com"
  "trx_no" : "87643666",
  "trx_date" : "2020-08-25 08:51:00",
  "instruct_date" : "",
  "trx_amount" : "2500000",
  "trx_desc" : "Transfer",
  "callback_url" : "https://dev2.faspay.co.id/account/api/callback"
}

Last updated