For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Item Pricing Rules

Retrieves pricing rules for items based on ItemNumber, Customer, UOM, and Date. This endpoint is used to determine the applicable price, discount, and level price for an item. If the Multi-UOM setting is enabled, the UOM field becomes mandatory because pricing may differ by unit of measure.

  • Fields

    Field
    Data Type
    Default Value
    Description

    ItemNumber

    string

    NA

    Unique identifier of the item.

    CustomerName

    string

    NA

    Customer name for which pricing is fetched.

    UOMName

    string

    NA

    Unit of measure (mandatory if Multi-UOM is ON).

    Date

    string

    NA

    If the pricing rule's date flag is enabled, the provided date must fall within the rule's From-To date range.

post
Authorizations
AuthorizationstringRequired
Bodyobject[]
CustomerNamestringOptional
DatestringOptional
ItemNumberstringOptional
UOMNamestringOptional
Responses
200

OK

application/json
MessagestringOptional
ResultbooleanOptional
post/api/xerp/item/getitempricingrules
POST /api/xerp/item/getitempricingrules HTTP/1.1
Host: res.xorosoft.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 108

[
  {
    "CustomerName": "Shang Chi",
    "Date": "2025-11-08",
    "ItemNumber": "Nike Air Force 1-black-8.5",
    "UOMName": "PCS"
  }
]
200

OK

{
  "Data": [
    {
      "Amount": 50,
      "Discount": -17.27,
      "Id": 963,
      "LevelPrice": 117.27,
      "Name": "Tesing88",
      "Priority": 6,
      "StandardPrice": 100,
      "UomName": null
    }
  ],
  "Message": "Pricing data retrieved successfully.",
  "Result": true
}

Last updated

Was this helpful?