{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Catalog Errors","type":"basic","slug":"catalog-errors","excerpt":"","body":"The following errors can be returned in response to catalog requests, such as [Create Product](doc:create-product), [Create SKU](doc:create-sku), [Create Custom Parameter](doc:create-custom-parameter), [Retrieve Coupon](doc:retrieve-coupon), and so on.\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Name\",\n \"h-1\": \"Description\",\n \"h-2\": \"Code\",\n \"7-0\": \"MISSING_REQUIRED_FIELD\",\n \"7-1\": \"Required field is missing.\",\n \"7-2\": \"24002 or empty\",\n \"8-0\": \"PRODUCT_ID_MISMATCH\",\n \"8-1\": \"Updating SKU failed due to wrong product id.\",\n \"9-0\": \"PRODUCT_NAME_REQUIRED\",\n \"9-1\": \"Product name is required.\",\n \"8-2\": \"-\",\n \"9-2\": \"-\",\n \"10-0\": \"PRODUCT_NOT_FOUND\",\n \"10-2\": \"-\",\n \"10-1\": \"The product was not found.\",\n \"0-0\": \"COUPON_CODE_REQUIRED\",\n \"0-1\": \"Coupon code is required.\",\n \"0-2\": \"-\",\n \"1-0\": \"COUPON_NOT_FOUND\",\n \"1-1\": \"Coupon was not found.\",\n \"1-2\": \"-\",\n \"2-0\": \"CUSTOM_PARAMETER_NOT_FOUND\",\n \"2-1\": \"Custom parameter was not found.\",\n \"2-2\": \"-\",\n \"3-0\": \"INVALID_AMOUNT\",\n \"3-1\": \"Invalid amount.\",\n \"3-2\": \"-\",\n \"4-0\": \"INVALID_CUSTOM_PARAMETER\",\n \"4-1\": \"The custom parameter passed in the request is invalid.\",\n \"4-2\": \"1000\",\n \"6-0\": \"MISSING_PARAMETER_KEY_OR_VALUE\",\n \"6-1\": \"Missing parameter key or value.\",\n \"6-2\": \"-\",\n \"11-0\": \"SKU_NOT_FOUND\",\n \"11-1\": \"The SKU ID passed in the request was not found.\",\n \"11-2\": \"15007\",\n \"5-0\": \"INVALID_SKU_PARAMETER\",\n \"5-1\": \"Invalid SKU parameter.\",\n \"5-2\": \"-\"\n },\n \"cols\": 3,\n \"rows\": 12\n}\n[/block]","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61a5033cd3c4d201e7b583e5","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Errors","slug":"errors","order":7,"from_sync":false,"reference":false,"_id":"61a5033cd3c4d201e7b583c1","version":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2015-10-15T16:21:09.840Z","__v":0},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"version":"8976-Extended","version_clean":"8976.0.0-Extended","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["61a5033cd3c4d201e7b583ba","61a5033cd3c4d201e7b583bb","61a5033cd3c4d201e7b583bc","61a5033cd3c4d201e7b583bd","61a5033cd3c4d201e7b583be","61a5033cd3c4d201e7b583bf","61a5033cd3c4d201e7b583c0","61a5033cd3c4d201e7b583c1","61a5033cd3c4d201e7b583c2","61a5033cd3c4d201e7b583c3","61a5033cd3c4d201e7b583c4"],"_id":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"6040037678d626005641a154","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z"},"createdAt":"2016-07-12T17:10:39.131Z","githubsync":"","__v":0}
Catalog Errors
The following errors can be returned in response to catalog requests, such as Create Product, Create SKU, Create Custom Parameter, Retrieve Coupon, and so on.
COUPON_CODE_REQUIRED
Coupon code is required.
-
COUPON_NOT_FOUND
Coupon was not found.
-
CUSTOM_PARAMETER_NOT_FOUND
Custom parameter was not found.
-
INVALID_AMOUNT
Invalid amount.
-
INVALID_CUSTOM_PARAMETER
The custom parameter passed in the request is invalid.
1000
INVALID_SKU_PARAMETER
Invalid SKU parameter.
-
MISSING_PARAMETER_KEY_OR_VALUE
Missing parameter key or value.
-
MISSING_REQUIRED_FIELD
Required field is missing.
24002 or empty
PRODUCT_ID_MISMATCH
Updating SKU failed due to wrong product id.
-
PRODUCT_NAME_REQUIRED
Product name is required.
-
PRODUCT_NOT_FOUND
The product was not found.
-
SKU_NOT_FOUND
The SKU ID passed in the request was not found.
15007