techrar docs
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
  1. GETTING STARTED
  • GETTING STARTED
    • Techrar's Overview
    • Welcome 👋🏻
    • Versioning
    • Rate Limiting
    • Pagination
    • Responses
    • Change Log
    • Authentication
    • Webhooks
    • Setup Online Payments
    • Do you need help?
  • SaaS Solutions
    • Reucrring Billing
    • Techrar Storefront
    • Techrar eCommerce
    • Techrar Pay
    • Techrar Logistics
    • Techrar Meals SaaS
    • Techrar Marketplaces (MaaS)
  • Modules
    • Items & Catalog Management
      • Items
      • Categories
      • Bundled Items
      • Variations & Modifiers
      • Item Discounts
      • Catalog Configuration
    • Plans Offerings
      • Plans
      • Plan Duration & Billing
      • Plan Trial & Grace Periods
      • Plan Discounts
    • Checkout & Orders Management
      • Checkout Flow
      • Carts
      • Orders
      • Invoices
      • Transactions
      • Checkout Settings
    • Subscriptions Management
      • Subscriptions & Billing Cycles
      • Recurring Purchases
    • Webhooks Events
      • Order
      • Subscription
      • Invoice
      • Customer
      • Miscellaneous
      • Recurring Purchase
    • Meals Webhooks Events
      • Order
      • Subscription
      • Complaint
  1. GETTING STARTED

Responses

techrar API Error Handling#

The techrar API uses a uniform error response format and a standardized set of error codes to help clients handle errors consistently.

Error Response Format#

All error responses follow this structure:
{
    "error": {
        "code": "-404",
        "messages": ["Item does not exist"]
    }
}
code: A numeric error code (as a string or integer).
messages: An array of error message strings. Usually, the first message is the most relevant.

Error Codes#

Below is a list of all possible error codes returned by the techrar API, along with their default messages and meanings. Some messages include placeholders (e.g., {item}) that will be replaced with context-specific values.
CodeMessageMeaning
-101Invalid tokenThe provided JWT token is invalid or expired
-102This field is requiredA required field is missing in the request
-103The image size exceeds 500 KB and can't be processedImage upload failed due to size limit
-104You can not update this item variant as a standaloneAttempt to update a dependent variant item independently
-105Date should be null for non scheduled itemsDate field must be empty for non-scheduled items
-106You can not attach a category to itself or to one of its sub-categoriesInvalid category hierarchy - circular reference detected
-107Order must be in pending statusOperation requires order to be in pending state
-108Invoice must be paidOperation requires invoice to be in paid state
-109Invalid refund amountThe refund amount specified is invalid
-110There is no payment recorded for this invoiceCannot process refund for unpaid invoice
-111Checkout session has expiredThe checkout session timeout occurred
-112Item {item} in your cart requires your location/branchLocation or branch selection required for cart item
-113Item {item} is out of stockRequested item is not available in inventory
-114Item {item} has only {quantity} remaining in stockRequested quantity exceeds available stock
-115We couldn't refund this invoice. Please contact usRefund operation failed
-116You have to select at least {min} items from {group}Minimum selection requirement not met
-117You have to select at most {max} items from {group}Maximum selection limit exceeded
-118Item {item} in your cart is offered in {city} onlyItem is not available in selected city
-119Item {item} in your cart is offered for {branch} branch onlyItem is not available in selected branch
-120The order only supports deliveryPickup service is not available for this order
-121The order only supports pickupDelivery service is not available for this order
-122You need to login to be able to redeem or apply vouchersAuthentication required for voucher operations
-123You already logged inDuplicate login attempt
-124The order doesn't belong to a customerCustomer association required for payment method
-125Cannot update the status of a subscription fulfillmentInvalid subscription fulfillment status update
-126Cannot update the service type of a fulfillmentInvalid fulfillment service type modification
-127Booking date is required for item {item}Missing booking date for schedulable item
-128Subscription has ended or got canceledOperation on inactive subscription
-129Auto-renewal is already disabledRedundant auto-renewal disable request
-301Oops!. Something went wrong, please contact usGeneric system error
-302Default: {message}Default error message template
-400Method "{method}" not allowed / ({data}) is missingInvalid HTTP method or missing data
-401{message}Unauthorized access
-404{item} not found / {item} with ID ({id}) is not foundResource not found

Placeholders like {item}, {id}, {min}, {max}, {group}, {city}, {branch}, and {message} will be replaced with actual values in the error response.
If you encounter an error code or message not listed here, please contact the [email protected].
Modified at 2025-11-23 09:51:46
Previous
Pagination
Next
Change Log
Built with