Sifr Wahid Developers

Architecture (HLD)

What the API does not do

Only what the guide and the OpenAPI file state. Design around these from the start.

Not in version 1

  • No write endpoint for abandoned carts or payments. carts.read_write and payments.read_write exist as scopes, but v1 has no write endpoint for them.
  • No headless storefront. Carts, checkout and payment links are not in v1.
  • No ready-made Postman collection. Import the OpenAPI file instead.

Orders

  • An order created through the API takes payment_method cod, bank_transfer or manual. Online card payment is not available there.
  • Totals, VAT, status and payment status are worked out by the store and never read from the body.
  • A status move that GET /order-statuses does not list is refused (422 invalid_transition).

Products and stock

  • Stock is never set on a product: any quantity key is answered 422. Stock goes through POST /inventory/adjustments only.
  • A digital card product's stock is its unsold codes and cannot be adjusted through inventory/adjustments (422 stock_managed_by_codes).
  • A product with options cannot be turned back into one without options through the API in this version.
  • A decrement never clamps: below zero is 409 insufficient_stock, and nothing is applied.

Customers

  • A customer's mobile cannot change through the API (422 on fields.mobile).
  • Blocking a customer is done in the dashboard: a body with is_blocked is refused (422).
  • Without customers.read, no answer or webhook carries contact data.

Keys and webhooks

  • A key is never accepted in the query string.
  • A key sees only the webhooks it made.
  • Webhook create and update ignore the Idempotency-Key.
  • A webhook made in the dashboard uses signature version 1, and a key cannot see or manage it.
  • Webhook deliveries follow no redirects and go to ports 80 and 443 only.
  • A SKU with a / cannot be addressed at /products/sku/{sku}: use the product id.
  • Lists of rows that never change (stock movements, abandoned carts, webhook deliveries) refuse updated_since (422).