Faspay
Search…
Cancel Billing
The API Cancel service functions to cancel bills that have been sent with an unpaid status.
Method : POST
Format : JSON
Request Cancel Billing
Request parameters are parameters that must be provided by the system merchant to be integrated with the Faspay system.
Request Parameter
Sample Request
Parameter
Type
M/O/C
Description
service_id
Numeric
Mandatory
Unique code registered on the Faspay Billing service
billing_id
Numeric
Mandatory
Billing number generated by Faspay
transaction_number
Numeric
Mandatory
Merchant invoice number
Signature
Alfanumeric
Mandatory
Merchant’s Signature
SHA1(MD5(username merchant + password merchant+transaction_number))
1
{
2
"service_id" : "1",
3
"billing_id" : "1041",
4
"transaction_number": "145398922822218",
5
"signature" : "3b15aa993c3ff270ab718f4fcf66046f24c2591b"
6
}
7
Copied!
Response Cancel Billing
The following is the response parameter that will be given by the Faspay system to the merchant system.
Response Parameter
Sample Response
Parameter
Type
Description
billing_id
Numeric
Billing number generated by Faspay
transaction_number
Numeric
Merchant invoice number
billing_total
Numeric
Billing total
billing_due_date
Datetime (YYYY-MM-DD hh:mm:ss)
Bill due date
Default: 24 hours from the date the invoice was created
billing_url
Alfanumeric
Bill payment link
billing_status
Alfanumeric
Billing status (UNPAID, PAID, EXPIRED, CANCELLED)
response_code
Numeric
Response Code
00: Success
01 : Failed
response_message
Alfanumeric
Message from the response code
1
{
2
"billing_id": 1041,
3
"transaction_number": "145398922822218",
4
"billing_total": "10000",
5
"billing_due_date": "2020-12-20 10:50:00",
6
"billing_url": "https://s.faspay.co.id/gb",
7
"billing_status": "CANCELLED",
8
"response_code": "00",
9
"response_message": "Success Cancel Billing"
10
}
11
Copied!
Last modified 16d ago
Copy link