Skip to main content

Errors

The Price Rules API uses conventional HTTP response codes to indicate errors as well as custom error codes, described below.

Example API Response Error

{
"errors": [
{
"message": "Required field missing or empty: product_selection",
"code": "04-6",
"type": "price_rules.required_field_missing"
}
]
}

API Error Codes

Error CodeError Type
00-1authentication.failed
00-2authorization.invalid_scopes
04-0unexpected
04-1price_rules.invalid_field
04-2price_rules.invalid_value
04-3price_rules.invalid_payload
04-4price_rules.invalid_selection_type
04-5price_rules.shop_not_provided
04-6price_rules.required_field_missing
04-7price_rules.shop_not_found
04-8price_rules.shop_not_active
04-9price_rules.ruleset_not_found
04-10price_rules.invalid_rule
04-11price_rules.invalid_selection_data
04-12price_rules.order_condition_not_found
04-13price_rules.shop_identifier_mismatch
04-14price_rules.ruleset_already_exists
04-15price_rules.order_condition_already_exists
04-16price_rules.discount_code_not_found
04-17price_rules.discount_code_already_exists
04-18price_rules.rule_not_found
04-19price_rules.incorrect_api_for_resource
04-20price_rules.rule_already_exists
04-21price_rules.page_not_found
04-22price_rules.invalid_filter_type
04-23price_rules.duplicate_rule_external_ids
04-24price_rules.mass_insert_exception
04-25price_rules.too_many_rules_exception
04-26price_rules.missing_rules_exception
04-27price_rules.forbidden
04-28price_rules.customer_not_found
04-29price_rules.required_variants_not_found_in_cart
04-30price_rules.discount_codes_not_enabled
04-31price_rules.invalid_discount_codes_status