Skip to content

Instantly share code, notes, and snippets.

@luqmansungkar
Last active January 17, 2021 02:08
Show Gist options
  • Save luqmansungkar/9512940cac53f53bb4a024a1e5f70ef7 to your computer and use it in GitHub Desktop.
Save luqmansungkar/9512940cac53f53bb4a024a1e5f70ef7 to your computer and use it in GitHub Desktop.
Slightly-big Flip API Documentation

Slightly-big Flip API Documentation

Authentication

We are using Basic Authentication by including Authorization header in each of your request. You should include your secret key like a usual basic auth request, and use the secret key as the username.

Your secret key is: HyzioY7LP6ZoO7nTYKbG8O4ISkyWnX1JvAEVAhtWKZumooCzqp41

General

Base url for all request is: https://nextar.flip.id

Disbursement

Request

POST /disburse HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: basic [your encoded slightly-big flip secret key]

Attribute:

  • bank_code
  • account_number
  • amount
  • remark

Don't worry, the payload value will not be validated, but you should provide all the required attribute.

Response

Status 200
Content-Type: application/json

{
    "id": 5535152564,
    "amount": 10000,
    "status": "PENDING",
    "timestamp": "2019-05-21 09:12:42",
    "bank_code": "bni",
    "account_number": "1234567890",
    "beneficiary_name": "PT FLIP",
    "remark": "sample remark",
    "receipt": null,
    "time_served": "0000-00-00 00:00:00",
    "fee": 4000
}

Disbursement Status

Request

GET /disburse/{transaction_id} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic [your encoded slightly-big flip secret key]

Response

Status 200
Content-Type: application/json

{
    "id": 5535152564,
    "amount": 10000,
    "status": "SUCCESS",
    "timestamp": "2019-05-21 09:17:11",
    "bank_code": "bni",
    "account_number": "1234567890",
    "beneficiary_name": "PT FLIP",
    "remark": "sample remark",
    "receipt": "https://flip-receipt.oss-ap-southeast-5.aliyuncs.com/debit_receipt/126316_3d07f9fef9612c7275b3c36f7e1e5762.jpg",
    "time_served": "2019-05-21 09:26:11",
    "fee": 4000
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment