Skip to main content

Graphql query apis

Hii Retail Query APIs

The developer portal does not yet visualize GraphQL APIs. Contact Extenda Retail for full details.

Extenda Retail provides advanced query APIs for all master data entities, supporting free-text search, filtering, and joins as needed.

Query APIs are provided as GraphQL services, with individual APIs for each entity and advanced APIs for querying entire data graphs.

For free-text search, see advanced options.

Example: Query for Item and Price data by barcode. GraphQL lets you specify the data you want and returns a complete graph, e.g.:

"data": {
"itemIdentifier": {
"value": "7622201823085",
"itemId": "203018",
"item": {
"id": "203018",
"name": "THE NATURAL CONFECT PARTY MIX 130G",
"priceSpecifications": {
"nodes": [
"priceSpecification": {
"value": "11.99",
"priceType": "Sales",
"validFrom": "2021-10-01T07:30:23.140Z"
"validTo": null,
"minPrice": "10.00",
"maxPrice": "22.00"
},
"priceSpecification": {
"value": "9.35",
"priceType": "Purchase",
"validFrom": "2020-02-01T07:20:13.120Z"
"validTo": null
},
"priceSpecification": {
"value": "12.00",
"priceType": "Default",
"validFrom": "2020-01-01T00:00:00.000Z"
"validTo": null
}
]
}
}
}
}

Playground

To use the GraphQL query APIs:

  1. Use the playground to test queries before integrating.

  2. Provide a valid token in the Authorization header (Bearer type).

    GraphQL Authorization

  3. Use https (not http) for the playground URL.

    GraphQL General

  4. The schema and docs are visualized in the playground when a valid token is provided.

    GraphQL Schema GraphQL Query

Postman

Postman is a common tool for API integration.

Tips for using Postman with GraphQL Query APIs:

  1. Provide the correct Authorization header (Bearer Token).

    Postman Authorization

  2. Use the correct API URL (no trailing slash).

  3. Select GraphQL as the body format.

  4. Ensure the schema is fetched and use POST requests.

    Postman Authorization

  5. Make sure to use the correct setup in Postman.

    1. Provide the correct URL to the API and make sure to NOT have a forward slash (/) at the end of the URL
    2. Select GraphQL as the body format
    3. Make sure the schema is properly fetched
    4. Make sure to use a POST request type

Postman Authorization