Post Data Transaction

URL Endpoint Post Data

The endpoint URL is a feedback URL that will process the data in the post from the merchant system. For the implementation of the testing, UAT can use URL development.

Type
Environment
URL

XML

Development

JSON

Development

Request Parameter

The parameter that must be provide by the Merchant system to be accessed by the Faspay system are as follows:

Parameter
Data Type
M/O/C
Decription

request

Alphanumeric (50)

M

Request Description

merchant_id

Numeric (5)

M

Merchant Code From Faspay = BOI

merchant

Alphanumeric (32)

M

Merchant Name

bill_no

Alphanumeric (32)

M

Order Number

bill_reff

Alphanumeric (32)

O

Booking Number/reference (can fill same with order no)

bill_date

Datetime YYYY-MM-DD HH:MM:SS (19)

M

Transaction/ Order Date

bill_expired

Datetime YYYY-MM-DD HH:MM:SS (19)

M

Payment Expiring Date (max 30 days)

bill_desc

Alphanumeric (128)

M

Transaction Description

bill_currency

Alphanumeric (3)

M

Currency, Must be 'IDR'

bill_gross

Numeric (15)

O

Order Nominal

bill_tax

Numeric (15)

O

Billing tax

bill_miscfee

Numeric (15)

O

Miscellaneous fee

bill_total

Numeric (15)

M

Total Nominal

cust_no

Alphanumeric (32)

M

Customer Number

cust_name

Alphanumeric (128)

M

Customer Name

cust_lastname

Alphanumeric (128)

O

Customer Last name

payment_channel

Numeric (3)

M

pay_type

Alphanumeric (1)

M

Payment type :

  • 1: Full Settlement

  • 2: Installment

  • 3: Mixed 1 & 2

Pay Type 2 & 3 only implement on BCA KlikPay channel

bank_userid

Alphanumeric (128)

O

Customer User ID on bank’s services

msisdn

Numeric (64)

M

Customer Mobile Phone

email

Alphanumeric (128)

M

Customer Email

terminal

Numeric (16)

M

Always use 10 for Terminal

billing_name

Alphanumeric

C

Billing name for OVO

billing_lastname

Billing name

O

biling last name

billing_address

Alphanumeric (200)

O

Billing address

billing_address_city

Alphanumeric (50)

O

Billing City

billing_address_region

Alphanumeric (100)

O

Billing Addres Region

billing_address_state

Alphanumeric (100)

O

Billing Address State

billing_address_poscode

Alphanumeric (10)

O

Billing Address Pos Code

billing_msisdn

Numeric

C

Billing phone number

billing_address_country_code

Alphanumeric (10)

O

Billing Address Country Code

receiver_name_for_shipping

Alphanumeric (100)

C

Receiver Name

shipping_lastname

Alphanumeric

O

Receiver last name

shipping_address

Alphanumeric (200)

O

Shipping Address

shipping_address_city

Alphanumeric (50)

O

Shipping Address City

shipping_address_region

Alphanumeric (100)

O

Shipping Address Region

shipping_address_state

Alphanumeric (100)

O

Shipping Address State

shipping_address_poscode

Alphanumeric (10)

O

Shipping Address Pos Code

shipping_msisdn

Numeric

C

Shipping phone number

shipping_address_country_code

Alphanumeric (10)

O

Shipping Address Country Code

item

Array of Object

C

Item details

Notes:

  • Variable that contains in this parameter are customizeable, except Amount

  • This parameter is Mandatory for payment channel Akulaku, DanaSubs, Kredivo and BRICeria

product

Alphanumeric (50)

C

Item name

qty

Numeric (32)

C

Item quantity

amount

Numeric (15)

C

Item Price

tenor

Numeric (2)

C

Installment Tenor

  • 00: Full Payment

  • 03: 3 months

  • 6 months

  • 12: 12 months

Tenor 03,06,12 only use on BCA KlikPay channel

payment_plan

Numeric (1)

C

Payment plan

  • 1: Full Settlement

  • 2: Installement

merchant_id

Numeric (5)

C

Merchant Id From Payment Channel ex : MID from BCA KlikPay

reserve1

Alphanumeric (50)

O

reserve2

Alphanumeric (50)

C

route

Object

O

owner

Alphanumeric (32)

O

Registered partner id that owns/generates the transaction.

Notes:

  • 1 transaction only can contain 1 owner.

  • If null, then the remaining transaction amount will belong to the merchant’s Sendme balance.

partner_id

Alphanumeric (32)

O

Merchant partner id number.

partner_amount

Numeric (15)

C

Disbursement amount to partner.

signature

Alphanumeric (100)

M

sha1(md5(user_id merchant + password merchant + bill_no))

  • $signature : sha1(md5(($user_id.$pass.$bill_no)));

  • Sample signature: sha1(md5("bot310001p@ssw0rd310001zx")) = e0ba1b2dc29ab4cb4221df092f44b1c4e6f45c63


Sample Request

{
    "request": "Payment Details",
    "merchant_id": "99999",
    "merchant": "FASPAY STORE",
    "bill_no": "9333300199999123456",
    "bill_reff": "Abcd",
    "bill_date": "2024-09-11 10:00:00",
    "bill_expired": "2024-09-12 14:36:32",
    "bill_desc": "Gadget payment",
    "bill_currency": "IDR",
    "bill_gross": "0",
    "bill_tax": "0",
    "bill_miscfee": "0",
    "bill_total": "1000000",
    "cust_no": "1",
    "cust_name": "budi",
    "cust_lastname": "faspay",
    "payment_channel": "402",
    "pay_type": "1",
    "bank_userid": "",
    "msisdn": "08123123123",
    "email": "budi@gmail.com",
    "terminal": "10",
    "billing_name": "faspay",
    "billing_lastname": "0",
    "billing_address": "jalan pintu air raya",
    "billing_address_city": "Jakarta Pusat",
    "billing_address_region": "DKI Jakarta",
    "billing_address_state": "Indonesia",
    "billing_address_poscode": "10710",
    "billing_msisdn": "8766688686",
    "billing_address_country_code": "ID",
    "receiver_name_for_shipping": "Faspay",
    "shipping_lastname": "",
    "shipping_address": "jalan pintu air raya",
    "shipping_address_city": "Jakarta Pusat",
    "shipping_address_region": "DKI Jakarta",
    "shipping_address_state": "Indonesia",
    "shipping_address_poscode": "10710",
    "shipping_msisdn": "8766688686",
    "shipping_address_country_code": "ID",
    "item":
    [
        {
            "product": "Invoice",
            "qty": 1,
            "amount": 1000000,
            "tenor": 0,
            "payment_plan": 1,
            "merchant_id": "99999"
        }
    ],
    "reserve1": "0",
    "reserve2": "",
    "route":
    [
        {
            "owner": "26100253"
        },
        {
            "partner_id": "29195827",
            "partner_amount": "500000"
        },
        {
            "partner_id": "29200008",
            "partner_amount": "500000"
        }
    ],
    "signature": "ca1ed7300c72b8b14bc503826d0f54db8ed1a8b8"
}

Response Parameter

Response parameters are parameters that will be delivered by Faspay system in response to the request that have been sent by the merchant system. If no parameters appropriate/value are incorrect, the transaction will be rejected in the system Faspay.

Parameter
Data Type
M/O/C
Description

response

Alphanumeric (50)

O

Response Name

trx_id

Numeric (16)

M

Transaction ID (Issued/generated by Faspay)

Notes: Unique Transaction ID for 1 day or if it hasn't been paid and hasn't expired

merchant_id

Numeric (5)

M

Merchant Code

merchant

Alphanumeric (32)

M

Merchant Name

bill_no

Alphanumeric (32)

M

Order No

external_id

Alphanumeric (16)

C

External id number

bill_item

Array of Object

C

Details item

Notes:

  • Variable that contains in this parameter are customizable, except Amount

  • This parameter is Mandatory for payment channel Akulaku, DanaSubs, Kredivo and BRICeria

product

Alphanumeric (50)

C

Item name

qty

Numeric (32)

C

Item quantity

amount

Numeric (15)

C

Item Price

tenor

Numeric (2)

C

Installment Tenor

  • 00: Full Payment

  • 03: 3 months

  • 06: 6 months

  • 12: 12 months

Tenor 03,06,12 only use on BCA KlikPay channel

payment_plan

Numeric (1)

C

Payment plan

  • 1: Full Settlement

  • 2: Installment

merchant_id

Numeric (5)

C

Merchant Id From Payment Channel

example: MID from BCA KlikPay

response_code

Numeric (2)

M

response_desc

Alphanumeric (32)

M

route

Object

O

owner

Alphanumeric (32)

O

Registered partner id that owns/generates the transaction.

Notes:

  • 1 transaction only can contain 1 owner.

  • If null, then the remaining transaction amount will belong to the merchant’s Sendme balance.

partner_id

Alphanumeric (32)

O

Merchant partner id number.

partner_amount

Numeric (15)

C

Disbursement amount to partner.

redirect_url

Alphanumeric

O

The redirect URL for the next process, available only on JSON format

Sample Response

{
    "response": "Payment Details",
    "trx_id": "8504999946414145",
    "merchant_id": "99999",
    "merchant": "FASPAY",
    "bill_no": "9333300199999123456",
    "external_id": "",
    "bill_item": [
        {
            "product": "Invoice",
            "qty": 1,
            "amount": 1000000,
            "tenor": 0,
            "payment_plan": 1,
            "merchant_id": "99999"
        }
    ],
    "response_code": "00",
    "response_desc": "Success",
    "route":
    [
        {
            "owner": "26100253"
        },
        {
            "partner_id": "29195827",
            "partner_amount": "500000"
        },
        {
            "partner_id": "29200008",
            "partner_amount": "500000"
        }
    ],
    "redirect_url": "https://debit-staging.faspay.co.id/pws/100003/0830000010100000/ca1ed7300c72b8b14bc503826d0f54db8ed1a8b8?trx_id=8504999946414145&merchant_id=99999&bill_no=9333300199999123456"
}

Last updated