Update an agreed price's notes or end date
Changes only the notes and validity of an agreement. The rate itself cannot be changed here; use the revise endpoint, which keeps the previous rate as history.
How to use it
- Find the ACTIVE agreement's ID with List agreed prices.
- Send a new validTo, clearValidTo=true to make it open-ended, and/or new notes.
- Only dates and notes change; to change the rate use Revise an agreed price.
BearerAuthAuthorizationBearer <JWT>id*stringID of the record (UUID).
uuidactor?stringName or username of the person making the change, stored on the agreement for audit.
X-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
application/json- body
validTo?|New last day for the agreement, YYYY-MM-DD, not before its start date. Ignored when clearValidTo is true.
dateclearValidTo*booleantrue removes the end date so the agreement becomes open-ended. Optional; defaults to false.
notes?|Replacement notes. Send an empty string to clear them; omit to leave them unchanged.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was processed; otherwise an error status.
message*stringShort human-readable message describing the outcome, e.g. which record was saved or why the call failed.
data?The agreed price. For a revision this is the new agreement, not the one it replaced.
curl -X PATCH 'https://beta.iotoms.com/api/v1/pricing/agreements/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'X-TenantID: your-tenant-code' \ -H 'Content-Type: application/json' \ -d '{ "clearValidTo": true}'{ "status": "string", "message": "string", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "partyRole": "SUPPLIER", "partyId": "string", "partyName": "string", "itemId": "string", "itemName": "string", "categoryId": "string", "uomId": "4df47f00-a69d-4ff2-b50d-4a7649a4b70c", "uomCode": "string", "currencyCode": "string", "rate": 0, "taxInclusive": true, "minQty": 0, "validFrom": "2019-08-24", "validTo": "2019-08-24", "status": "ACTIVE", "supersedesId": "688cf67a-2e6c-4e49-8750-5bc8809fcd6f", "supersededById": "af9b715c-a460-4411-a694-40645ca4c9a7", "source": "MANUAL", "sourceRef": "string", "notes": "string", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedBy": "string", "updatedAt": "2019-08-24T14:15:22Z", "inForceToday": true }}