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:
Responses
Response samples
- 200
- 404
- 500
{- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 22,
- "remorse_period": 30,
- "tax_code": ""
}, - "GROUND": {
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Ground - 5 minute remorse period",
- "price": 5,
- "remorse_period": 350,
- "tax_code": ""
}
}
Set service levels
Updates all the service levels configurations for your business.
Authorizations:
Request Body schema: application/json
pattern property | object (Service level) Service level config | ||||||||||||||
|
Responses
Request samples
- Payload
{- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 22,
- "remorse_period": 30,
- "tax_code": ""
}, - "GROUND": {
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Ground - 5 minute remorse period",
- "price": 5,
- "remorse_period": 350,
- "tax_code": ""
}
}
Response samples
- 200
- 400
- 500
{- "fulfillment_config_uri": "fulfillment_config/revisions/1",
- "service_levels": {
- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 22,
- "remorse_period": 30,
- "tax_code": ""
}, - "GROUND": {
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Ground - 5 minute remorse period",
- "price": 5,
- "remorse_period": 350,
- "tax_code": ""
}
}
}
Patch service levels
Patch list of shipping levels configurations for your business with the given JSONPatch.
Authorizations:
Request Body schema: application/json
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
- Payload
[- {
- "op": "remove",
- "path": "/2_DAY"
}, - {
- "op": "replace",
- "path": "/GROUND/price",
- "value": 10
}
]
Response samples
- 200
- 400
- 404
- 500
{- "fulfillment_config_uri": "fulfillment_config/revisions/1",
- "service_levels": {
- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 22,
- "remorse_period": 30,
- "tax_code": ""
}, - "GROUND": {
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Ground - 5 minute remorse period",
- "price": 5,
- "remorse_period": 350,
- "tax_code": ""
}
}
}
Get service level
Retrieves the service level by its identifier.
Authorizations:
path Parameters
id required | string The ID of the service level. To retrieve the ID, use the List service levels method. |
Responses
Response samples
- 200
- 404
- 500
{- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 22,
- "remorse_period": 30,
- "tax_code": ""
}
}