Skip to main content

Create Bill

POST 

/v2/pwf/bill

An endpoint to create a payment/bill link

Request

Body

required

    title stringrequired

    The title of the bill.

    type stringrequired

    Possible values: [SINGLE, MULTIPLE]

    Bill type. For bill created with step 3 only SINGLE is permissible.

    amount integer

    Payment amount, minimum Rp10.000. Leave blank if want to set a flexible amount. Optional for bill created with Step 1 and mandatory for bill created with Step 2/ Step 3.

    expired_date string

    Bill expiry date. The bill can’t be used any more beyond the expiry date. Format YYYY-MM-DD HH:mm

    redirect_url string

    Redirect URL after payment is success.

    is_address_required integer

    A flag if user needs to input their address when creating payment. 0 is false (default)

    is_phone_number_required integer

    A flag if user needs to input their address when creating payment. 0 is false (default)

    step integerrequired

    Which step the customers will be redirected to when opening the payment link.

    • 1: input-data
    • 2: payment-method
    • 3: payment-confirmation
    sender_name string

    Name of the Customer.

    sender_email string

    Email of the Customer.

    sender_phone_number string

    Phone number of the Customer.

    sender_address string

    Address of the Customer.

    sender_bank string

    Bank that is used for the payment. Value will be bank_code of Flip.

    sender_bank_type string

    Possible values: [bank_account, virtual_account, wallet_account, online_to_offline_account, credit_card_account]

    • bank_account: for payment method using bank transfer
    • virtual_account: payment method using virtual account
    • wallet_account: payment method using E-Wallets
    • online_to_offline_account: payment method using retail store (Alfamart)
    • credit_card_account: payment method using credit card

Responses

Expected Create bill Response

Schema

    oneOf

    link_id integer
    link_url string
    title string
    type string
    amount integer
    redirect_url string
    expired_date date-time
    created_from string
    status string
    is_address_required integer
    is_phone_number_required integer
    step integer

Callbacks

POST 

/your-callback-url

Accept payment callback will be sent to you if there is a payment status that changed to SUCCESSFUL, CANCELLED, or FAILED. Please make sure that you have set the Accept Payment callback URL on the Flip for Business dashboard.

Body

    data

    object

    JSON array string with content exactly the same as the response of disbursement or bank account inquiry.

    id string

    Flip’s transaction id

    bill_link string

    Bill link URL for the user.

    bill_link_id string

    Bill link ID.

    bill_title string

    Title of the bill.

    sender_name string

    Name of the Customer.

    sender_bank string

    Bank that is used for the payment.

    sender_email string

    Email of the Customer.

    amount string

    Payment amount.

    status string

    Status of the transaction

    • SUCCESSFUL
    • FAILED
    • PENDING
    sender_bank_type string

    Type of the sender bank that is used for the payment.

    created_at string

    The time when the payment is created. Time will be in GMT+7 with yyyy-mm-dd hh:mm:ss format

    token string

    Validation token to ensure that the callback is coming from our server. You can get your token in your Flip for Business dashboard.

Callbacks Responses

URL must return a 200 HTTP Status Code. If the URL returns another HTTP Status Code or if our system doesn’t receive any response within 30 seconds (timeout), our system will retry the request 5 times, with a 2-minute interval for the transaction callback (Money Transfer, Accept Payment, International Transfer).

Loading...