Faspay
Search
⌃K

Create Billing

This Create Billing API service functions to make online bills. In this API the merchant will receive a payment link response.
Method : POST
Format : JSON
Request Create Billing
Request parameters are parameters that must be provided by the merchant system to be integrated with the Faspay system.
Request Parameter
Sample Request
Parameter
Data Type
M/O/C
Description
service_id
Numeric
Mandatory
Unique code registered on the Faspay Billing service
transaction_number
Numeric
Mandatory
Merchant invoice number
billing_total
Numeric
Mandatory
Billing Total
billing_date
Datetime (YYYY-MM-DD hh:mm:ss)
Optional
Date the bill was made
Default : Current time
billing_due_date
Datetime (YYYY-MM-DD hh:mm:ss)
Optional
Bill due date
Default: 24 hours from the date the invoice was created
billing_notes
Alfanumeric
Optional
The bill description and note will appear on the billing email
items
Object
Optional
List of the item (name,qty,amount)
billing_language
Alfanumeric
Optional
Language for bill :
• EN (Default)
• ID
customer_name
Alfanumeric
Mandatory
Customer name
customer_email
Alfanumeric
Mandatory
Customer email
customer_phone
Numeric
Mandatory
Customer phone number
customer_address
Alfanumeric
Optional
Customer address
signature
Alfanumeric
Mandatory
Merchant’s signature SHA1(MD5(username merchant + password merchant+transaction_number))
static_va_no
Numeric
Optional
VA static number for billing using static VA
{
"service_id" : "1",
"transaction_number" : "145398922822777",
"billing_total" : "10000",
"billing_date" : "2020-11-30 10:50:00",
"billing_due_date" : "2020-12-20 10:50:00",
"billing_notes" : "Food Bill",
"items" : [
{
"item_name": "Chicken",
"qty": "2",
"item_amount": "2500"
},
{
"item_name": "Duck",
"qty": "1",
"item_amount": "5000"
}
],
"billing_language" : "ID",
"customer_name" : "Nadia Rizki",
"customer_email" : "[email protected]",
"customer_phone" : "087884398009",
"customer_address" : "Jalan pintu air",
"signature" : "3b15aa993c3ff270ab718f4fcf66046f24c2591b",
"static_va_no" : "8985991234567891"
}
Response Create Billing
Response parameters are parameters that will be sent by the Faspay system in response to parameter requests that have been sent by the merchant system.
Response Parameter
Sample Response
Parameter
Data Type
M/O/C
Description
response_code
Numeric
Mandatory
Response code
00 : Success
01 : Failed
response_message
Alfanumeric
Mandatory
Message from the response code
billing_id
Numeric
Mandatory
Billing number generated by Faspay
transaction_number
Numeric
Mandatory
Merchant invoice number
billing_total
Numeric
Mandatory
Billing total
billing_url
Alfanumeric
Mandatory
Bill payment link
{
"response_code": "00",
"response_message": "Success Create Billing",
"billing_id": 1051,
"transaction_number": "145398922822777",
"billing_total": 10000,
"billing_url": "https://s.faspay.co.id/gl"
}