Get Payment
GET/v2/pwf/:bill_id/payment
An endpoint to get all payment transaction(s) from a specific bill link.
Request
Path Parameters
Flip’s bill link id
Query Parameters
Starting date of the data. Example "2020-01-01"
Ending date of the data. Example "2020-12-12". End date must be greater than start_date.
Pagination of the data.
The desired page of the data pagination.
Possible values: [id, bill_link, bill_title, sender_bank, amout, created_at]
Sort the result by the attribute. You can sort by
Possible values: [sort_desc, sort_asc]
You can sort in
Header Parameters
Request content type application/x-www-form-urlencoded
Responses
- 200
- 401
- 422
Get Payment response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
{
"link_id": 11,
"total_data": 2,
"data_per_page": 2,
"total_page": 1,
"page": 1,
"data": [
{
"id": "PGPWF3453271107384587",
"link_id": "12345",
"bill_link": "flip.id/$companyname/#coffeetable",
"bill_title": "Coffee Table",
"sender_name": "John Smith",
"sender_bank": "mandiri",
"sender_bank_type": "virtual_account",
"virtual_account_number": "8902290270097932",
"amount": 900000,
"status": "PENDING",
"settlement_status": "Pending",
"reference_id": "null",
"payment_url": "https://flip.id/pwf/transaction/consolidated?redirected_from=internal&id=1236",
"created_at": "2021-02-03 14:57:44",
"completed_at": "null",
"settlement_date": "null"
}
]
}
Sample response when Your Flip api secret key value for Authorization is missing or invalid
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
{
"name": "Unauthorized",
"message": "Your request was made with invalid credentials.",
"status": 401
}
Expected Error Response
- application/json; charset=UTF-8
- Schema
- Example (from schema)
- Mising Required Fields
- Mising id Field
- Mising expired_date Field
Schema
Array [
]
errors
object[]
{
"code": "VALIDATION_ERROR",
"errors": [
{
"attribute": "id",
"code": 1050,
"message": "Product Bill Link ID Not Found"
}
]
}
{
"code": "VALIDATION_ERROR",
"errors": [
{
"attribute": "id",
"code": 1043,
"message": "Product Bill Link ID Not Found"
},
{
"attribute": "expired_date",
"code": 1047,
"message": "Param expired_date is invalid"
}
]
}
{
"code": "VALIDATION_ERROR",
"errors": [
{
"attribute": "id",
"code": 1043,
"message": "Param Bill Link ID is Not Found"
}
]
}
{
"code": "VALIDATION_ERROR",
"errors": [
{
"attribute": "expired_date",
"code": 1047,
"message": "Param expired_date is invalid"
}
]
}