Delete Invoice
Delete 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
- 400
- 404
- 500
Sukses delete invoice
- application/json
- Schema
- Example (from schema)
Schema
- responseCode string
- responseMessage string
- responseDate string
- responseData array
{
"responseCode": "2000300",
"responseMessage": "Invoice has been deleted",
"responseDate": "2023-09-05T10:00:16+07:00",
"responseData": []
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- oneOf
- DeletePaidInvoice
responseCode stringresponseMessage stringresponseDate stringresponseData array
{
"responseCode": "4000302",
"responseMessage": "Failed to delete: Invoice already paid",
"responseDate": "2023-09-05T10:28:07+07:00",
"responseData": []
}
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...