For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Parameter
Data Type
M/O/C
Description

service_id

Numeric

M

Unique code registered on the Faspay Billing service

billing_id

Numeric

M

Billing number generated by Faspay

transaction_number

Numeric

M

Merchant invoice number

signature

Alphanumeric

M

Merchant’s Signature

SHA1(MD5(username merchant + password merchant+transaction_number))

{
    "service_id" : "1",
    "billing_id" : "1041",
    "transaction_number": "145398922822218",
    "signature" : "3b15aa993c3ff270ab718f4fcf66046f24c2591b"
}

Response Cancel Billing

The following is the response parameter that will be given by the Faspay system to the merchant system.

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

Alphanumeric

Bill payment link

billing_status

Alphanumeric

Billing status (UNPAID, PAID, EXPIRED, CANCELLED)

response_code

Numeric

Response Code

00: Success

01 : Failed

response_message

Alphanumeric

Message from the response code

{
    "billing_id": 1041,
    "transaction_number": "145398922822218",
    "billing_total": "10000",
    "billing_due_date": "2020-12-20 10:50:00",
    "billing_url": "https://s.faspay.co.id/gb",
    "billing_status": "CANCELLED",
    "response_code": "00",
    "response_message": "Success Cancel Billing"
}

Last updated