Edit Bill / Payment Link
PUT/v2/pwf/:bill_id/bill
An endpoint to edit a payment/bill link
Request
Path Parameters
Flip’s bill link id
- application/x-www-form-urlencoded
Body
required
The title of the bill.
Possible values: [SINGLE, MULTIPLE]
Bill type. For bill created with step 3 only SINGLE is permissible.
Payment amount.
Bill expiry date. The bill can’t be used any more beyond the expiry date. Format YYYY-MM-DD HH:mm.
Redirect URL after payment is success.
Possible values: [ACTIVE, INACTIVE]
Bill activation status
A flag if user needs to input their address when creating payment. 0 is false (default), 1 is true
A flag if user needs to input their phone number when creating payment. 0 is false (default), 1 is true
Responses
- 200
- 401
- 422
Expected Get All bill Response
- application/json
- Schema
- Example (from schema)
Schema
{
"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": "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"
}
]
}