Update a transaction

Update a transaction booking number to your company.

This action can be performed by a SuperUser or by another user that has access to the company of the specified transaction and has at least one of the following roles:
Accountant, SMEAccountant.

PUT transactions/:id

Request details

The put request will contain all the required information to update a transaction in your company.

Request properties

Property Type Description Optional
Number String Booking number No
Comment String Comment related with booking Yes

Example transaction request

{  
  "number": "1234",
  "comment": "comment on booking",
}

Response

Upon successful update of a transaction in the Basecone system, a 204 http status code will be returned. If something goes wrong, an error message with failure details will be given together with a suitable http error status code.

Possible error responses

Status code Error code Details
400 invalid_request_payload Transaction id cannot be empty
400 invalid_request_payload The transaction provided does not exist.
400 invalid_request_payload The transaction provided is not booked.
400 validation_error One or more properties were not valid
400 validation_error One or more validation errors occurred.
403 unauthorized User does not have access to the document.
403 unauthorized User does not have access to the company.