List price variance tolerances
GET
Returns the built-in default thresholds and every saved tolerance for one role: SUPPLIER unless role=CUSTOMER is sent. Saved tolerances are the merchant-wide default and any party or party-and-item overrides. The most specific match applies, and a variance is only flagged when both the amount and the percentage thresholds are exceeded.
BearerAuthheader
AuthorizationBearer <JWT>role?stringDefaults to SUPPLIER
Value in
"SUPPLIER""CUSTOMER"X-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
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 built-in default thresholds for the role plus every tolerance override saved for it.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/pricing/variances/tolerance' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": { "partyRole": "SUPPLIER", "defaultAbsThreshold": 0, "defaultPctThreshold": 0, "scopes": [ { "id": 0, "partyRole": "SUPPLIER", "partyId": "string", "partyName": "string", "itemId": "string", "itemName": "string", "absThreshold": 0, "pctThreshold": 0, "muted": true, "notes": "string", "updatedBy": "string", "updatedAt": "2019-08-24T14:15:22Z" } ] }}