Mediloop
DocsAPIsProcurement APIPrice Agreements
Procurement API

Price Agreements

Resolve negotiated prices and organization-specific commercial agreements during procurement.

Strategic pricing

Negotiated commercial terms

Validity control

Start / end dates

Volume tiers

Quantity-based pricing

Multiple terms

Price, discount, tax, currency

Fully integrated

POs, invoices and suppliers

Agreement model

FieldDescription
organization_idPurchasing organization
supplier_idSupplier party
scopeProducts/categories covered
valid_from / valid_toValidity window
pricing_termsFixed price, discount or tier rules
statusdraft, active, expired, terminated

Eligibility

Only active agreements matching the purchasing organization, supplier, product scope and validity window are eligible during price resolution.

Price resolution

GET/v1/price-agreements
GET/v1/price-agreements/{id}
POST/v1/price-agreements
PATCH/v1/price-agreements/{id}
DELETE/v1/price-agreements/{id}

Validity & priority

RuleResolution
Specific product before categoryMost specific eligible scope wins
Explicit negotiated agreementPreferred over standard catalog price
Validity overlapUse configured priority / most specific agreement
Expired agreementNever applied to a new order

Audit trail

Every purchase order line should retain the agreement reference and resolved unit price used when the order was approved so later commercial changes do not alter historical orders.

Example request

cURLJavaScriptPython
curl "https://api.mediloop.com/v1/price-agreements?status=active&supplier_id=sup_42" \
  -H "Authorization: Bearer $MEDILOOP_API_KEY" \
  -H "X-Tenant-Id: $TENANT_ID"
List active agreements
Response200 OK
{
 "data":[{ "id":"agr_88", "supplier_id":"sup_42", "status":"active", "valid_to":"2026-12-31" }]
}