Error Codes for Offers Integration
Offers Error Codes
Scenario | Response |
---|---|
If amount is missing in cart_details | { "status": 0, "message": "amount is mandatory in cart_details.", "code": 400 } |
If items is missing in cart_details | { "status": 0, "message": "items is mandatory in cart_details.", "code": 400 } |
If sku_details is missing in cart_details | { "status": 0, "message": "sku_details is mandatory in cart_details.", "code": 400 } |
If sku_id is missing in sku_details under cart_details section | { "status": 0, "message": "sku_id is mandatory in sku_details.", "code": 400 } |
If sku_name is missing in sku_details under cart_details section | { "status": 0, "message": "sku_name is mandatory in sku_details.", "code": 400 } |
If amount_per_sku is missing in sku_details under cart_details section | { "status": 0, "message": "amount_per_sku is mandatory in sku_details.", "code": 400 } |
If quantity is missing in sku_details under cart_details section | { "status": 0, "message": "quantity is mandatory in sku_details.", "code": 400 } |
If user_token have special characters apart from alphanumeric | { "status": 0, "message": "user_token should be alphanumeric.", "code": 400 } |
Items should match with total sum of sku quantities | { "status": 0, "message": "Mismatched cart_details items and total skus.", "code": 400 } |
Amount in cart_details should match with total sum of sku details amount | { "status": 0, "message": "Mismatched cart_details amount and total skus amount.", "code": 400 } |
Amount in cart_details should match with invoice amount | { "status": 0, "message": "Mismatched cart_details amount and invoice amount.", "code": 400 } |
Updated 11 months ago