Get Bill / Payment Link
GET/v2/pwf/:bill_id/bill
An endpoint to get a specific payment link.
Request
Path Parameters
bill_id stringrequired
Flip’s bill link id
Responses
- 200
- 401
- 422
Expected Get All bill Response
- application/json
- Schema
- Example (from schema)
Schema
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
{
"link_id": 11,
"link_url": "flip.id/$companyname/#coffeetable",
"title": "Coffee Table",
"type": "SINGLE",
"amount": 900000,
"redirect_url": "https://someurl.com",
"expired_date": "2022-12-30 15:50",
"created_from": "API",
"status": "ACTIVE",
"is_address_required": 0,
"is_phone_number_required": 0,
"step": 1
}
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 string
message string
status integer
{
"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 [
]
code string
errors
object[]
attribute string
code integer
message string
{
"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"
}
]
}
Loading...