Skip to main content

Service Level API (v0)

Download OpenAPI specification:Download

This is an internal API for customer support to update the service level for orders in the NewStore platform.

Update service level

Sets a new service level for conflict items in the specified order.

Authorizations:
newStoreAccessToken
path Parameters
order_id
required
string

The unique ID of the order. To retrieve the list of orders, use the List orders method.

Request Body schema: application/json
new_service_level
required
string non-empty

The chosen service level identifier.

Responses

Request samples

Content type
application/json
{
  • "new_service_level": "GROUND"
}

Response samples

Content type
application/json
{
  • "error_code": "invalid_service_level",
  • "message": "The new service level field is either missing or empty.",
  • "request_id": "ec2f3c9bb016ba971bf6074098363"
}

Process conflicted order

Process conflicted order and items. For each item, an action can be defined. Actions can be:

  • reroute
  • cancel
  • swap
  • manual_routing Depending on the action, different fields on items are required. They are defined in the schema
Authorizations:
newStoreAccessToken
Request Body schema: Application/json
order_id
required
string = 36 characters

The internal identifier(Sales Order UUID) of the order that we want to fix.

required
Array of objects or objects or objects non-empty

Complete list of items and actions to be performed on them (reroute/cancel or swap).

Request samples

Content type
Application/json
{
  • "order_id": "6d56b2d9-b403-4d5f-8897-75527f54acd5",
  • "items": [
    ]
}

Get routing options

Get shipping options for a given routing request containing:

  • delivery_destination
  • routing_strategy
  • products
  • flat_products

Note: The routing request is a nested dictionary object. The caller should construct the object, serialize it to a query string and pass it in the URL query parameters with the routing_request key.

Authorizations:
newStoreAccessToken
query Parameters
object

A json encoded string with details for routing request

Responses

Response samples

Content type
application/json
{
  • "status": "ok",
  • "routing_options": [
    ],
  • "unavailable_products": [ ]
}