| code | HTTP | לנסות שוב | הודעה | מתי | מה לעשות |
|---|
| invalid_api_key | 401 | לא | מפתח ה-API אינו תקין | The Authorization header is missing, malformed, or the key does not exist / the secret does not match. | Send 'Authorization: Bearer calio_sk_…'. Check you copied the whole key. |
| api_key_revoked | 401 | לא | מפתח ה-API בוטל | The key was revoked by the business owner. | Create a new key in the Calio app (חיבור לאתר → מפתחות). |
| api_key_expired | 401 | לא | תוקף מפתח ה-API פג | The key passed its expiry (rotation window ended, or unused for 180 days). | Create a new key in the Calio app. |
| api_key_ip_not_allowed | 403 | לא | המפתח הזה לא מקבל בקשות מהכתובת הזו | The key has an IP list and this request came from another address. | Send it from an allowed server, or ask Calio to update the key's IP list. |
| key_suspended_security | 403 | לא | מפתח ה-API הושעה מטעמי אבטחה | Calio's protection engine suspended the key (suspected abuse). | The business owner was notified. Reactivation is manual, from the Calio app, after review. |
| capability_denied | 403 | לא | למפתח הזה אין הרשאה לפעולה | The key's capabilities do not include the one this endpoint requires. | The business owner can enable the capability for this key in the Calio app. |
| secret_key_from_browser | 403 | לא | אין לשלוח את המפתח הסודי מהדפדפן | The request carried a browser Origin header — the secret key is being used from client-side code and is exposed to every visitor. | Move the call to your server and rotate the key immediately. |
| auth_rate_limited | 429 | כן | יותר מדי ניסיונות התחברות. נסו שוב מאוחר יותר | Too many failed authentications from this IP. | Wait for Retry-After. Check the key you are sending. |
| rate_limited | 429 | כן | יותר מדי בקשות. נסו שוב בעוד רגע | A per-key / per-business / platform request-rate limit was reached. | Retry after Retry-After seconds with the same Idempotency-Key. |
| monthly_quota_exceeded | 429 | לא | הגעתם למכסת הבקשות החודשית | The business used its monthly API request quota. | The quota resets at the start of the month (Retry-After). Contact Calio to raise it. |
| rate_limiter_unavailable | 503 | כן | השירות אינו זמין כרגע. נסו שוב בעוד רגע | The request-limit store is unreachable. Calio fails closed rather than unprotected. | Retry with backoff and the same Idempotency-Key. |
| api_disabled | 403 | לא | החיבור לאתר אינו פעיל לעסק הזה | The API is switched off for this business (by the owner or by Calio). | The business owner can switch it on in the Calio app. |
| api_unavailable | 503 | כן | השירות אינו זמין כרגע. נסו שוב בעוד רגע | The API is temporarily switched off platform-wide, or its configuration could not be read. | Retry with backoff. |
| provider_not_supported_yet | 403 | לא | אמצעי הסליקה של העסק עדיין לא נתמך בחיבור לאתר | The business clears online payments with a provider the API does not support yet. | Contact Calio support. |
| api_version_invalid | 400 | לא | גרסת ה-API אינה מוכרת | The Calio-Api-Version header names a version that does not exist. | Omit the header or send a version listed in the docs. |
| invalid_json | 400 | לא | גוף הבקשה אינו JSON תקין | The request body could not be parsed as a JSON object. | Send a JSON object with Content-Type: application/json. |
| unsupported_media_type | 415 | לא | סוג התוכן אינו נתמך | A request with a body was sent without Content-Type: application/json. | Set Content-Type: application/json. |
| payload_too_large | 413 | לא | הבקשה גדולה מדי | The request body exceeds 64KB. | Reduce the number of lines or the metadata size. |
| missing_parameter | 400 | לא | חסר שדה חובה בבקשה | A required field is missing. 'param' names it. | Add the field named in 'param'. |
| invalid_parameter | 400 | לא | אחד השדות בבקשה אינו תקין | A field has the wrong type, format or range. 'param' names it, 'developer_message' says why. | Fix the field named in 'param'. |
| unknown_parameter | 400 | לא | הבקשה כוללת שדה לא מוכר | The body contains a field the endpoint does not accept (typo, or a field from another endpoint). | Remove or rename the field named in 'param'. |
| method_not_allowed | 405 | לא | הפעולה אינה נתמכת בכתובת הזו | The path exists but not with this HTTP method. | Check the method in the docs. |
| route_not_found | 404 | לא | הכתובת אינה קיימת | No endpoint matches the path. | Check the path and the /v1 prefix. |
| resource_not_found | 404 | לא | הפריט המבוקש לא נמצא | The id does not exist, or belongs to another business (Calio does not confirm which). | Check the id. |
| idempotency_key_required | 400 | לא | חסרה כותרת Idempotency-Key | Every POST/PATCH must carry an Idempotency-Key header. | Send a unique Idempotency-Key (e.g. a UUID) per logical operation, and reuse it on retries. |
| idempotency_key_invalid | 400 | לא | כותרת Idempotency-Key אינה תקינה | The key is empty, longer than 255 characters, or contains characters outside printable ASCII. | Use a UUID. |
| idempotency_key_reused | 409 | לא | הבקשה כבר נשלחה עם תוכן אחר | The same Idempotency-Key was used with a different method, path or body within 24 hours. | Use a new Idempotency-Key for a new operation. |
| idempotency_request_in_progress | 409 | כן | הבקשה עדיין בטיפול | A request with the same Idempotency-Key is still being processed. | Retry after Retry-After seconds with the same key; you will get the original response. |
| internal_error | 500 | כן | אירעה שגיאה. נסו שוב בעוד רגע | An unexpected error on Calio's side. Nothing partial is committed for idempotent requests. | Retry with backoff and the same Idempotency-Key. If it persists, contact support with request_id. |
| product_not_found | 422 | לא | המוצר המבוקש לא נמצא | product_id does not exist, was deleted, or the business hid it from the API. | Read GET /v1/products for current ids. |
| product_unavailable | 422 | לא | המוצר אינו זמין כרגע | The product exists but is inactive, hidden, or has a price range instead of a single price. | Remove the line, or ask the business to activate the product. |
| product_out_of_stock | 409 | לא | המוצר אזל מהמלאי | Requested quantity (summed across the cart per variant) exceeds the shelf. error.available holds the current stock. | Show the buyer the available quantity and let them change the cart. |
| invalid_variant | 422 | לא | בחירת האפשרויות למוצר אינה תקינה | A required variant group is missing, an option does not exist or is sold out, or a group's min/max was violated. | Read the product's variant_groups and send a valid selection. |
| invalid_quantity | 422 | לא | הכמות אינה תקינה | Quantity is outside the product's min/max or not a multiple of its step. error.min_quantity/max_quantity/step tell the rule. | Send a quantity that follows the rule. |
| custom_lines_disabled | 403 | לא | העסק לא מאפשר שורות בסכום חופשי | A line without product_id was sent, but the business allows catalog products only. | Use catalog products, or ask the business to allow custom lines. |
| price_changed | 409 | לא | המחיר השתנה | expected_total_agorot was sent and differs from the total computed from the current catalog. error.amount_total_agorot holds the current total. | Show the buyer the new total and send again with the new expected_total_agorot. |
| amount_below_minimum | 422 | לא | הסכום נמוך מהמינימום לתשלום | The total is below the provider's minimum (₪1). | Raise the amount. |
| amount_above_business_limit | 422 | לא | הסכום גבוה מהמותר לעסק בתשלום יחיד | The business set its own per-payment maximum in the app and the total exceeds it. | Split the payment, or ask the business to raise its limit. |
| installments_not_allowed | 422 | לא | מספר התשלומים גבוה מהמותר לעסק | max_installments exceeds what the business allows (its setting and its plan). | Send a lower max_installments (error.allowed holds the maximum). |
| url_domain_not_allowed | 422 | לא | כתובת החזרה אינה ברשימת הדומיינים של העסק | success_url / cancel_url is not https, or its domain is not in the business's allowed return domains. | Use an https URL on a domain the business added in the app (חיבור לאתר → דומיינים). |
| business_cannot_accept_payments | 403 | לא | העסק אינו יכול לקבל תשלומים כרגע | The business has no active internet clearing terminal right now. Checked BEFORE the buyer sees a payment page. | The business owner was notified. Try again later. |
| business_cannot_issue_documents | 403 | לא | העסק אינו יכול להפיק קבלות כרגע | The business is not connected to its documents provider. Checked BEFORE the buyer pays. | The business owner was notified. Try again later. |
| plan_quota_reached | 403 | לא | העסק הגיע למכסת התשלומים במסלול | The business used the digital payments included in its plan this month. | The business owner was notified. |
| checkout_session_not_open | 409 | לא | דף התשלום כבר אינו פתוח | Expire was requested for a session that is already paid, expired or canceled. | GET the session for its current status. |
| checkout_session_in_payment | 409 | כן | הלקוח נמצא באמצע תשלום | Expire was requested while the buyer has the payment page open (last 3 minutes). | Retry after Retry-After, or let the session expire on its own. |
| customer_not_found | 404 | לא | הלקוח לא נמצא | customer_id does not exist in this business. | Create the customer with POST /v1/customers, or send customer details inline. |
| document_pdf_unavailable | 409 | כן | קובץ ה-PDF של המסמך עוד לא מוכן | The document exists but its PDF copy is not stored yet (it is copied a few seconds after issuing), or the file is missing. | Retry in a minute. The document data itself (GET /v1/documents/{id}) is available now. |
| customer_exists | 409 | לא | כבר קיים לקוח עם הטלפון או המייל האלה | POST/PATCH with a phone or email that another customer card of the business already has. extra.customer_id names it. | Use the existing customer (extra.customer_id) — Calio never creates a silent duplicate or overwrites a card. |
| customers_list_disabled | 403 | לא | בעל העסק כיבה את שליפת רשימת הלקוחות | The owner switched off reading the whole customer list. Exact search by phone/email still works. | Search by phone or email, or ask the business owner to switch the list on in the Calio app. |
| customers_list_blocked | 403 | לא | שליפת רשימת הלקוחות נעצרה להגנת העסק | More than half of the customers were read in 24 hours — the pattern of a leaked key. The owner was alerted. | The business owner approves in the Calio app (חיבור לאתר) if it was a legitimate sync. |
| subscription_invalid_state | 409 | לא | לא ניתן לבצע את הפעולה במצב הנוכחי של המנוי | For example pause on a subscription that is not active, resume on one that is not paused, or any change on a canceled / completed one. extra.status is the current public status. | GET the subscription and act on its current status. A past_due subscription needs a new card: POST …/payment_method_update_link. |
| subscription_changed | 409 | כן | המנוי השתנה בזמן הפעולה | The subscription changed status between the read and the write (for example the engine charged it, or the business changed it in the app). | GET the subscription again and retry if still relevant. |
| subscription_increase_too_large | 422 | לא | העלאת הסכום גדולה מהמותר לעדכון מהאתר | The new amount is more than 1.5 times the current one. extra.maximum_agorot is the most this call can set. | Raise it in steps of up to 50%, 30 days apart, or ask the business to change it in the app. |
| subscription_increase_too_soon | 409 | לא | הסכום של המנוי הזה הועלה לאחרונה | A site raised this subscription's amount in the last 30 days. Lowering it is always allowed. | Try again after 30 days, or ask the business to change it in the app. |
| subscription_amount_locked | 409 | לא | סכום המנוי הזה ננעל ביצירה | The business passes the processing fee to the customer on this subscription; its amount can be changed only in the Calio app. | Ask the business to change it in the app. |
| test_mode_unsupported | 400 | לא | הפעולה הזו אינה זמינה במצב בדיקה | The operation needs a real card page (for example payment_method_update_link). | In test mode use the test helpers: POST /v1/subscriptions/{id}/test/activate and …/test/charge. |
| shipping_fee_not_allowed | 403 | לא | העסק לא מאפשר לאתר לקבוע דמי משלוח | order.shipping_fee_agorot was sent, but the business did not allow the site to set a shipping fee. | Send the order without a shipping fee, or ask the business to allow it (Calio app → חיבור לאתר). |
| discount_not_allowed | 403 | לא | העסק לא מאפשר לאתר לתת הנחה | order.discount was sent, but the business did not allow the site to give order discounts. | Send the order without a discount, or ask the business to allow it (Calio app → חיבור לאתר). |
| unpaid_orders_not_allowed | 403 | לא | העסק לא מאפשר הזמנות בלי תשלום | POST /v1/orders was called, but the business did not allow orders without payment, or this key lacks orders:create_unpaid. | Take the payment with a checkout session, or ask the business to allow orders without payment and to create a key with that capability. |
| order_invalid_state | 409 | לא | לא ניתן לשנות את ההזמנה במצב הנוכחי | For example marking a canceled order as shipped, or delivered → shipped. extra.status is the current status. | GET the order and act on its current status. A cancellation is done only by the business in the Calio app. |