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

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.

Parameter
Data Type
M/O/C
Description

service_id

Numeric

M

Unique code registered on the Faspay Billing service

transaction_number

Numeric

M

Merchant invoice number

billing_total

Numeric

M

Billing Total

billing_date

Datetime (YYYY-MM-DD hh:mm:ss)

O

Date the bill was made

Default : Current time

billing_due_date

Datetime (YYYY-MM-DD hh:mm:ss)

O

Bill due date

Default: 24 hours from the date the invoice was created

billing_notes

Alphanumeric

O

The bill description and note will appear on the billing email

items

Object

O

List of the item (name,qty,amount)

billing_language

Alphanumeric

O

Language for bill :

• EN (Default)

• ID

customer_name

Alphanumeric

M

Customer name

customer_email

Alphanumeric

M

Customer email

customer_phone

Numeric

M

Customer phone number

customer_address

Alfanumeric

O

Customer address

signature

Alphanumeric

M

Merchant’s signature SHA1(MD5(username merchant + password merchant+transaction_number))

static_va_no

Numeric

O

VA static number for billing using static VA

send_email

String/Boolean

O

Used by the merchant to notify the Faspay system whether the invoice to be created should be sent directly to the end user.

  • If set to true, the invoice will be sent to the end user via email by the Faspay system.

  • If set to false, the invoice will not be sent to the end user via email by the Faspay system.

  • If this parameter is not provided, the default value is false.

{ 
    "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" : "John Doe",
    "customer_email" : "john@gmail.com",
    "customer_phone" : "087884398009",
    "customer_address" : "Jalan pintu air",
    "signature" : "3b15aa993c3ff270ab718f4fcf66046f24c2591b",
    "static_va_no" : "8985991234567891",
    "send_email": "true”
}

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.

Parameter
Data Type
M/O/C
Description

response_code

Numeric

M

Response code

00 : Success

01 : Failed

response_message

Alphanumeric

M

Message from the response code

billing_id

Numeric

M

Billing number generated by Faspay

transaction_number

Numeric

M

Merchant invoice number

billing_total

Numeric

M

Billing total

billing_url

Alphanumeric

M

Bill payment link

Last updated