Faspay
Search…
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
1
{
2
"service_id" : "1",
3
"transaction_number" : "145398922822777",
4
"billing_total" : "10000",
5
"billing_date" : "2020-11-30 10:50:00",
6
"billing_due_date" : "2020-12-20 10:50:00",
7
"billing_notes" : "Food Bill",
8
"items" : [
9
{
10
"item_name": "Chicken",
11
"qty": "2",
12
"item_amount": "2500"
13
},
14
{
15
"item_name": "Duck",
16
"qty": "1",
17
"item_amount": "5000"
18
}
19
],
20
"billing_language" : "ID",
21
"customer_name" : "Nadia Rizki",
22
"customer_email" : "[email protected]",
23
"customer_phone" : "087884398009",
24
"customer_address" : "Jalan pintu air",
25
"signature" : "3b15aa993c3ff270ab718f4fcf66046f24c2591b",
26
"static_va_no" : "8985991234567891"
27
28
}
29
Copied!
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
1
{
2
"response_code": "00",
3
"response_message": "Success Create Billing",
4
"billing_id": 1051,
5
"transaction_number": "145398922822777",
6
"billing_total": 10000,
7
"billing_url": "https://s.faspay.co.id/gl"
8
}
9
Copied!
Last modified 16d ago
Copy link