Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Fetch Information from LPG via API

REQUEST

HTTP method:  POST

URL:  https://<host>/pricefx/<partition>/pricegridmanager.fetch/<PG id>

HEADERS: 

Key

Value

Content-Type

application/json

Accept

application/json

Authorization

Basic <credentials>, where credentials is the base64 encoding of id and password joined by a single colon :.  Where id is partition and username joined by slash / .

BODY:

{
  "operationType": "fetch",
  "startRow": 0,
  "endRow": 300,
  "textMatchStyle": "substring",
  "data": {
    
  },
  "oldValues": null
}

BODY example with filtering criteria:

{
  "operationType": "fetch",
  "startRow": 0,
  "endRow": 300,
  "textMatchStyle": "substring",
  "data": {
    "operator": "and",
    "_constructor": "AdvancedCriteria",
    "criteria": [
      {
        "fieldName": "attribute14",
        "operator": "iContains",
        "value": "CABLES",
        "_constructor": "AdvancedCriteria"
      }
    ]
  },
  "oldValues": null
}

RESPONSE:

CURL:

{
  "operationType": "fetch",
  "startRow": 0,
  "endRow": 300,
  "textMatchStyle": "substring",
  "data": {
    "operator": "and",
    "_constructor": "AdvancedCriteria",
    "criteria": [
      {
        "fieldName": "attribute14",
        "operator": "iContains",
        "value": "CABLES",
        "_constructor": "AdvancedCriteria"
      }
    ]
  },
  "oldValues": null
}

Postman Request Definition

Here is a definition of the same request in Postman (https://www.getpostman.com/). Just import it and change the hostname and username + password.

 

  • No labels