commission-rules
Update Commission Rule
Changed onEdit or close a rule. Closing = setting effective_to.
There is no DELETE: a rule that priced any booking is undeletable at the DB level (ON DELETE RESTRICT), and superseding a contract means closing the old line and creating a new one under a new contract_version.
put/api/v1/commission-rules/{rule_id}
Request
- Base URL: https://api.getanana.com (the document declares no server; this is the origin it was published from)
- URL: https://api.getanana.com/api/v1/commission-rules/{rule_id}
- Auth: none declared
Path parameters
rule_idstring uuid required
Request body
Response
Successful Response
Changes
- breaking
added the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$to the request property/ - breaking
added the pattern
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$to the request property/ - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the
/response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was added for the status - info
the
/response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was added for the status
- breaking