Newstore routing API

Routing

Operations 1

GET /v0/routing/insights/order/{order_id} listOrderRoutingInsights #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/newstore-routing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

newstore-routing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1.0'
  title: NewStore Routing API
  description: NewStore public APIs
  contact:
    email: support@newstore.com
    name: NewStore API Support
    url: https://developer.newstore.com
servers:
- url: https://dodici-demo.p.newstore.net/
security: []
tags:
- name: routing
  description: Routing
paths:
  /v0/routing/insights/order/{order_id}:
    get:
      description: 'Get insights on routing and shipment details for orders being processed in the NewStore platform.

        This includes details such as:


        - Items in the order

        - The fulfillment location that is assigned to fulfill orders

        - The time when the shipment was dispatched from the fulfillment location

        - Order routing strategies

        - Service levels


        Data is retained up to 45 days for successfully routed order items. Until order items have been successfully routed, related data is retained indefinitely.

        '
      summary: listOrderRoutingInsights
      tags:
      - routing
      operationId: listOrderRoutingInsights
      deprecated: false
      parameters:
      - name: order_id
        in: path
        required: true
        description: A sales order UUID or external order ID
        schema:
          type: string
      responses:
        default:
          description: Default response
          headers: {}
        '200':
          description: Successfully returning routing insights for the specified order
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingInsights'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/RoutingInsights'
        '404':
          description: 'Not found

            * No path parameter'
          headers: {}
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: An internal error occurred.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: Bad Gateway
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: Service Unavailable
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
      - oauth: []
components:
  schemas:
    RoutingInsightsActivity:
      title: RoutingInsightsActivity
      type: object
      properties:
        correlation:
          type: object
          allOf:
          - $ref: '#/components/schemas/RoutingInsightsCorrelation'
          - description: Information regarding which entities were affected by this event
        summary:
          description: Information regarding the event type
          type: string
        timestamp:
          type: string
          format: date-time
        type:
          description: Event type
          type: string
        value: {}
      required:
      - correlation
      - summary
      - timestamp
      - type
      - value
    Correlation:
      title: Correlation
      description: Correlation information used to interpret routing attempts by LO uuids
      type: object
      properties:
        current_fulfillment_request_id:
          description: The current fulfillment request ID to which this item belongs to
          type: string
          format: uuid
        current_logistic_order_id:
          description: The current LO uuid with which this sales order item is being routed
          type: string
          format: uuid
        logistic_order_ids:
          description: All LO uuids that this item was a part of
          type: array
          items:
            type: string
            format: uuid
      required:
      - current_fulfillment_request_id
      - current_logistic_order_id
      - logistic_order_ids
    Strategies:
      title: Strategies
      type: object
      properties:
        current:
          type: object
          allOf:
          - $ref: '#/components/schemas/Current'
          - description: The current routing strategy
        original:
          type: object
          allOf:
          - $ref: '#/components/schemas/Original'
          - description: The original routing strategy on order creation
    RoutingStatus:
      title: RoutingStatus
      type: string
      enum:
      - open
      - processed
      - cancelled
      - conflict
      - dispatched
      - ready_for_routing
      - ready_for_rerouting
      - rerouting_initiated
      - voided
      - recalculating_shipments
      - swapped
    RoutingInsightsData:
      title: RoutingInsightsData
      description: Routing insights information for an order
      type: object
      properties:
        activities:
          type: array
          items:
            $ref: '#/components/schemas/RoutingInsightsActivity'
        created_at:
          type: string
          format: date-time
        external_id:
          type: string
          minLength: 1
        sales_order_id:
          type: string
          format: uuid
        sales_order_item_ids:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
        sales_order_items:
          description: A mapping of sales order item uuid to routing insights for this item
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Salesorderitems1'
      required:
      - activities
      - created_at
      - external_id
      - sales_order_id
      - sales_order_item_ids
      - sales_order_items
    RoutingInsightsCorrelation:
      title: RoutingInsightsCorrelation
      description: Information regarding which entities were affected by this event
      type: object
      properties:
        ancestor_logistic_order_uuid:
          type: string
          format: uuid
        fulfillment_request:
          type: object
          allOf:
          - $ref: '#/components/schemas/RoutingInsightsFulfillmentRequests'
          - description: Any fulfillment request identifiers for this LO uuid
        logistic_order_uuid:
          type: string
          format: uuid
        routing_strategies:
          $ref: '#/components/schemas/RoutingInsightsRoutingStrategies'
        sales_order_item_ids:
          type: array
          items:
            type: string
            format: uuid
        service_levels:
          $ref: '#/components/schemas/RoutingInsightsServiceLevels'
      required:
      - ancestor_logistic_order_uuid
      - fulfillment_request
      - logistic_order_uuid
      - routing_strategies
      - sales_order_item_ids
      - service_levels
    RoutingInsights:
      title: RoutingInsights
      description: Routing insights data by sales_order_uuid or external_id
      type: object
      properties:
        insights:
          type: object
          allOf:
          - $ref: '#/components/schemas/RoutingInsightsData'
          - description: Routing insights information for an order
      required:
      - insights
    Problem:
      title: Problem
      type: object
      properties:
        detail:
          description: A human readable explanation specific to this occurrence of the problem that is helpful to locate the problem and give advice on how to proceed. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized.
          example: some description for the error situation
          type: string
        error_code:
          type: string
        instance:
          description: A URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
          example: /some/uri-reference#specific-occurrence-context
          type: string
        message:
          type: string
        messages:
          type: array
          items:
            type: string
        request_id:
          type: string
        status:
          description: The HTTP status code generated by the origin server for this occurrence of the problem.
          type: integer
          minimum: 100.0
          format: int32
          exclusiveMaximum: 600.0
        title:
          description: A short summary of the problem type. Written in English and readable for engineers, usually not suited for non technical stakeholders and not localized.
          example: some title for the error situation
          type: string
        type:
          description: A URI reference that uniquely identifies the problem type only in the context of the provided API. Opposed to the specification in RFC-7807, it is neither recommended to be dereferenceable and point to a human-readable documentation nor globally unique for the problem type.
          example: /some/uri-reference
          type: string
          default: about:blank
    ServiceLevels:
      title: ServiceLevels
      type: object
      properties:
        current:
          description: Service level with which the order was fulfilled
          type: string
          minLength: 1
        original:
          description: Service level with which the order was created
          type: string
          minLength: 1
    RoutingInsightsServiceLevels:
      title: RoutingInsightsServiceLevels
      type: object
      properties:
        current:
          description: Service level with which the order was fulfilled
          type: string
          minLength: 1
        original:
          description: Service level with which the order was created
          type: string
          minLength: 1
    RoutingInsightsFulfillmentRequests:
      title: RoutingInsightsFulfillmentRequests
      description: Any fulfillment request identifiers for this LO uuid
      type: object
      properties:
        dispatched_at:
          type: string
          format: date-time
        fulfillment_node_id:
          type: string
        fulfillment_request_id:
          type: string
          format: uuid
    Salesorderitems1:
      title: Salesorderitems1
      description: Routing insights data for the current sales order item uuid
      type: object
      properties:
        conflict_reason:
          description: Current conflict reason for this sales order item. Empty, if item is not in a conflict state
          type: string
          minLength: 1
        correlation:
          type: object
          allOf:
          - $ref: '#/components/schemas/Correlation'
          - description: Correlation information used to interpret routing attempts by LO uuids
        product_id:
          type: string
          minLength: 1
        routing_status:
          $ref: '#/components/schemas/RoutingStatus'
        service_levels:
          $ref: '#/components/schemas/ServiceLevels'
        strategies:
          $ref: '#/components/schemas/Strategies'
        updated_at:
          type: string
          format: date-time
      required:
      - conflict_reason
      - correlation
      - product_id
      - routing_status
      - service_levels
      - strategies
      - updated_at
    Current:
      title: Current
      description: The current routing strategy
      type: object
      properties:
        fulfillment_node_id:
          type: string
          minLength: 1
        strategy:
          $ref: '#/components/schemas/RoutingInsightsStrategyType'
      required:
      - strategy
    RoutingInsightsRoutingStrategies:
      title: RoutingInsightsRoutingStrategies
      type: object
      properties:
        current:
          description: The routing strategy for each item id in this LO
          example:
            6ba7b810-9dad-11d1-80b4-00c04fd430c8:
              fulfillment_node_id: dc-456
              strategy: prerouted
            550e8400-e29b-41d4-a716-446655440000:
              fulfillment_node_id: store-123
              strategy: default
          type: object
          additionalProperties:
            $ref: '#/components/schemas/RoutingInsightsRoutingStrategy1'
        original:
          description: The routing strategy for each item id in this LO
          example:
            6ba7b810-9dad-11d1-80b4-00c04fd430c8:
              fulfillment_node_id: dc-456
              strategy: prerouted
            550e8400-e29b-41d4-a716-446655440000:
              fulfillment_node_id: store-123
              strategy: default
          type: object
          additionalProperties:
            $ref: '#/components/schemas/RoutingInsightsRoutingStrategy1'
    Original:
      title: Original
      description: The original routing strategy on order creation
      type: object
      properties:
        fulfillment_node_id:
          type: string
          minLength: 1
        strategy:
          $ref: '#/components/schemas/RoutingInsightsStrategyType'
      required:
      - strategy
    RoutingInsightsRoutingStrategy1:
      title: RoutingInsightsRoutingStrategy1
      type: object
      properties:
        fulfillment_node_id:
          type: string
          minLength: 1
        strategy:
          $ref: '#/components/schemas/RoutingInsightsStrategyType'
      required:
      - strategy
    RoutingInsightsStrategyType:
      title: RoutingInsightsStrategyType
      type: string
      enum:
      - external
      - prerouted
      - default
      - manual
  securitySchemes:
    oauth:
      type: oauth2
      flows:
        clientCredentials:
          scopes:
            catalog:import-schemas:read: Grants privileges to read import schema
            catalog:import-schemas:write: Grants privileges to write import schema
            catalog:pricebook-export:read: Grants privileges to export pricebook data
            catalog:product-export:read: Grants privileges to export product data
            checkout:carts:read: Grants privileges to read cart data
            checkout:carts:write: Grants privileges to write cart data
            clienteling:profile:read: Grants privileges to read clienteling profiles
            customer:profile:read: Grants privileges to read API customer data
            customer:profile:write: Grants privileges to modify API customer data
            newstore:configuration:read: Grants privileges to read configuration
            newstore:configuration:write: Grants privileges to write configuration
            fiscalization:orders:read: View orders with fiscal transactions and signatures
            fiscalization:orders:write: Create orders with fiscal transactions and signatures
            shipments:read: Read Shipping Options and Audits
            iam:providers:read: ' Grants read privileges to provider resources'
            iam:providers:write: ' Grants write privileges to provider resources'
            iam:roles:read: ' Grants privileges to read roles data'
            iam:roles:write: ' Grants privileges to write roles data'
            iam:users:read: ' Grants privileges to read user data'
            iam:users:write: ' Grants privileges to write user data'
            inventory:reservations:read: Allows access to retrieve reservations
            inventory:reservations:write: Allows access to create and update reservations
            promotions:config:read: Grants privileges to read configuration
            promotions:config:write: Grants privileges to write into configuration
            promotions:reason-codes:read: Grants privileges to list reason codes
            promotions:reason-codes:write: Grants privileges to create and update reason codes
            audit-events:read: Grants read access to the tenant's audit events.
            taxes:preview-transactions:write: Preview tax transactions
            taxes:transactions:read: Read tax transactions
          tokenUrl: https://id.p.newstore.net/auth/realms/dodici-demo/protocol/openid-connect/token