List price variances
Returns purchases that came in above or below the agreed or last-paid rate, filterable by status, role, partyId, itemId and a from/to date range. Paginated with 0-based page and size (default 25). Figures are frozen when recorded and variances never post to the ledger.
BearerAuthAuthorizationBearer <JWT>status?stringOPEN | DISMISSED
"OPEN""DISMISSED"role?stringOnly return variances for this side: SUPPLIER or CUSTOMER.
"SUPPLIER""CUSTOMER"partyId?stringOnly return variances for this vendor ID (SUPPLIER) or customer number (CUSTOMER).
itemId?stringOnly return variances for this item code.
from?stringStart date, YYYY-MM-DD.
dateto?stringEnd date, YYYY-MM-DD.
datepage?integerPage number, starting at 0. See Paging.
int320size?integerNumber of records per page.
int3225X-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?One page of price variances with paging totals and the open count.
curl -X GET 'https://beta.iotoms.com/api/v1/pricing/variances' \ -H 'X-TenantID: your-tenant-code'{ "status": "string", "message": "string", "data": { "content": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "occurredOn": "2019-08-24", "documentType": "PURCHASE_ORDER", "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052", "documentNumber": "string", "documentLineId": 0, "partyRole": "SUPPLIER", "partyId": "string", "partyName": "string", "itemId": "string", "itemName": "string", "uomId": "4df47f00-a69d-4ff2-b50d-4a7649a4b70c", "currencyCode": "string", "expectedRate": 0, "expectedSource": "AGREEMENT", "expectedSourceRef": "string", "expectedObservedOn": "2019-08-24", "documentRate": 0, "qty": 0, "varianceAmount": 0, "variancePct": 0, "status": "OPEN", "dispositionNote": "string", "dismissedBy": "string", "dismissedAt": "2019-08-24T14:15:22Z", "postingStatus": "NOT_APPLICABLE", "journalEntryId": "72600ee4-b304-47f3-89cd-f685d2692490", "postedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "page": 0, "size": 0, "totalElements": 0, "totalPages": 0, "openCount": 0 }}