Skip to main content

Service levels API (v0)

Download OpenAPI specification:Download

Represents service levels for routing configuration at NewStore.

Important: This endpoint should be used once you have initialized the new version of the configuration through the Routing Ruleset API.

List service levels

Retrieves all the service levels configurations for your business.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "2_DAY": {
    },
  • "GROUND": {
    }
}

Set service levels

Updates all the service levels configurations for your business.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
.*
pattern property
any

Responses

Request samples

Content type
application/json
{
  • "2_DAY": {
    },
  • "GROUND": {
    }
}

Response samples

Content type
application/json
{
  • "fulfillment_config_uri": "fulfillment_config/revisions/1",
  • "service_levels": {
    }
}

Patch service levels

Patch list of shipping levels configurations for your business with the given JSONPatch.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
Array
One of
path
required
string

A JSON Pointer path.

op
required
string
Enum: "add" "replace" "test"

The operation to perform.

value
required
any

The value to add, replace or test.

Responses

Request samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Response samples

Content type
application/json
{
  • "fulfillment_config_uri": "fulfillment_config/revisions/1",
  • "service_levels": {
    }
}

Get service level

Retrieves the service level by its identifier.

Authorizations:
newStoreAccessToken
path Parameters
id
required
string

The ID of the service level. To retrieve the ID, use the List service levels method.

Responses

Response samples

Content type
application/json
{
  • "2_DAY": {
    }
}