Find Invoice
Find Invoice
Path Parameters
- id string required
Invoice ID
Header Parameters
- X-Winpay-Timestamp string required
ISO 8601 timestamp
- X-Winpay-Key string required
Client Key
- X-Winpay-Signature string required
Signature
- Content-Type string required
Content type
Responses
- 200
- 404
- 500
Sukses find invoice
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
- responseDate string
responseData object
id stringref stringcreated_at stringredirect_url stringback_url stringstatus stringPossible values: [
UNPAID
,PAID
]customer object
name stringemail stringphone stringproducts object[]
Array [uuid stringname stringqty integerprice integer]payment object
uuid stringchannel stringcode stringpayment_ref stringpaid_amount stringfee stringnett stringcreated_at stringupdated_at string
{
"responseCode": "2000300",
"responseMessage": "Invoice Found",
"responseDate": "2023-09-05T10:00:16+07:00",
"responseData": {
"id": "4282f340-51a8-40a2-a0e6-f3c95543ab6f",
"ref": "invoice-0000001",
"created_at": "2023-09-05 09:52:53",
"redirect_url": "https://checkout.bmstaging.id/g5jh1k55lv9",
"back_url": "https://google.com",
"status": "UNPAID",
"customer": {
"name": "Delina Prasetya",
"email": "[email protected]",
"phone": "082342861666"
},
"products": [
{
"uuid": "89a85713-3aef-4ca1-97ba-a97d4bdcdb8a",
"name": "Keripik Singkong",
"qty": 1,
"price": 53500
}
],
"payment": {
"uuid": "89a85713-3aef-4ca1-97ba-a97d4bdcdb8a",
"channel": "ALFAMART",
"code": "100134468",
"payment_ref": "34469",
"paid_amount": "53500",
"fee": "3500",
"nett": "50000",
"created_at": "2023-09-05T09:52:53+07:00",
"updated_at": "2023-09-05T09:52:53+07:00"
}
}
}
Invoice not found
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
- responseDate string
- responseData array
{
"responseCode": "4040300",
"responseMessage": "Invoice not found",
"responseDate": "2023-09-05T10:00:16+07:00",
"responseData": []
}
General Error
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
- responseDate string
- responseData array
{
"responseCode": "5000300",
"responseMessage": "General Error",
"responseDate": "2023-09-05T10:00:16+07:00",
"responseData": []
}
Loading...