Update an invoice
PATCH/invoices/:invoice_id
Draft invoices are fully editable. Once an invoice is finalized, Invoice and Invoice Items become uneditable.
Request
Path Parameters
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Invoice's ID
- application/json
Body
required
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Unix timestamp representing the date
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 500
Invoice updated successfully
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success]
Possible values: [200]
Possible values: [Successful request]
{
"status": "success",
"code": 200,
"message": "Successful request"
}
Access token is missing or invalid
Access denied
Invoice not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [not found]
Possible values: [404]
Failure reason
{
"status": "not found",
"code": 404,
"message": "Entity not found"
}
Request failed due to a conflict in the provided entity
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [fail]
Possible values: [409]
Failure reason
{
"status": "fail",
"code": 409,
"message": "Entity with Id already exists"
}
Request failed due to validation failure
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error]
Possible values: [422]
{
"status": "error",
"data": {
"dob": {
"day": "Value expected to be 'integer', 'string' given."
}
},
"code": 422,
"message": "cannot process the provided entity"
}
Server error