MobiariDocs

API changelog

Every change to the public API, newest first.

Within a version, changes are additive (see versioning): new endpoints, fields, enum values and error codes can appear at any time and are listed here. Anything breaking ships as a new version or with a deprecation period announced here first.

2026-12-02: the store's content on the Storefront API

  • Storefront API, read-only, for a site that renders its own pages (tag "Content"). Each answers what a Liquid theme gets, with addresses as paths on the store's domain:
    • GET /v1/storefront/pages and /pages/{handle}: published content pages and the live theme's page files, with their HTML sanitized, and the privacy, returns and terms pages the platform writes from the store's company details. Error page_not_found.
    • GET /v1/storefront/menus and /menus/{handle}: the site's menus, with each link at the address its page lives at. Error menu_not_found.
    • GET /v1/storefront/cms/collections/{collection_slug}/documents and /documents/{document} (slug or id): a CMS collection's live documents (a blog's posts), media fields expanded. Errors cms_collection_not_found, cms_document_not_found.

2026-12-02: card installments with interest and saved cards

  • Store settings (GET, PATCH /stores/{store_id}/settings): installment_interest (none, monthly_rate or provider), interest_free_installments (1 to 12), installment_rate_bp (the store's monthly rate, 0 to 1000; 199 is 1.99%) and saved_cards_enabled. max_installments is now the most installments, interest included.
  • Orders carry installments, installment_interest_cents and installment_interest_by (store or provider). With store, total_cents includes the interest (what the card was charged); with provider, the gateway added it and total_cents does not.
  • Storefront API: GET /v1/storefront/installments takes bin as optional and every option carries installment_cents, first_installment_cents, total_cents, interest_cents and interest_by. GET /v1/storefront/payment-methods says saved_cards. A payment intent takes saved_card_id, save_card and save_card_token; new error saved_card_unavailable.
  • Storefront API: GET /v1/storefront/customers/me/cards and DELETE /v1/storefront/customers/me/cards/{card_id}.

2026-12-01: storefront product filters and facets

  • Storefront API: GET /v1/storefront/products takes brand (brands separated by commas) and options (name:value pairs separated by commas, such as Cor:Azul,Tamanho:M: values of one option match any of them, different options must match on the same variant). Both compare without case or accents.
  • Storefront API: GET /v1/storefront/products/facets takes the same filters and answers the counts behind each one: every brand and option value of the listed products (with color_hex for colours) and how many products choosing it would list, the products in stock and the price range.

2026-12-01: coupon conditions, promotions and per-line discounts

  • Discount codes (POST, PATCH /discount-codes/...) take conditions: scope (product_ids, variant_ids, collection_ids, category_ids; the discount then applies to those lines only), exclude_sale_items, min_quantity, per_customer_limit (by customer record, else the e-mail or CPF of a guest), first_purchase_only, customer_group_ids, free_shipping with free_shipping_services and free_shipping_max_cents, and combines_with_promotions. A code carries batch_id and handed_out_at when it came from a batch.
  • Batches of single-use codes: POST /discount-code-batches copies a template code into up to 5000 codes PREFIX-XXXXXXXX; GET /discount-code-batches lists them. GET /discount-codes leaves batch codes out unless asked with batch_id.
  • Usage: GET /discount-codes/{code_id}/usage and GET /automatic-discounts/{discount_id}/usage give orders, revenue_cents, discount_cents and last_used_at.
  • Automatic discounts have two new kind values, applied in the cart without a code: buy_x_get_y (with a buy_x_get_y object: "leve 3 pague 2", the second unit at 50% off, a gift from another set) and tiered (a tiered object: steps by quantity or amount). combines_with_codes and combines_with_promotions set how they stack. Treat kind values you do not know as unknown.
  • New code refusals: no_eligible_items, below_minimum_quantity, first_purchase_only, already_used, not_eligible_customer, not_combinable.

2026-11-22: cashback, tiers with perks and credit that expires

  • Loyalty program (GET, PUT /loyalty-program): new fields cashback_enabled, cashback_bps (500 is 5%), cashback_expire_months (months cashback stays in the wallet; null never expires), cashback_enabled_at and tier_window_months (the tiers' spend window, 12 by default). On PUT these fields may be left out (they keep what they were).
  • Tiers (GET, PUT /loyalty-tiers): each tier gets cashback_bps (empty: the program's), free_shipping and a birthday bonus (birthday_bonus_cents, birthday_bonus_points). The lowest tier may start at min_spend_cents 0. A tier's spend counts orders paid on every channel (online store, POS, orders made by hand), less refunds.
  • A customer's loyalty (GET /customers/{customer_id}/loyalty) carries cashback (pending_cents, next_release_at, released_cents, owed_cents), cashback_entries, tier_changes, wallet_expiring and tier.window_months.
  • A credit entry can carry expires_at, and there is a new kind, cashback (cashback released to the wallet; negative when a refund takes it back). Treat kind values you do not know as unknown.
  • Storefront API: GET /v1/storefront/loyalty/rates (what a purchase earns at the customer's tier; in the SDK, client.loyalty.rates()), and GET /v1/storefront/customers/me/loyalty with cashback, the wallet's history, what expires, the tier history and rates.
  • Products: is_gift_card says whether the product sells gift cards.

2026-11-21: notes from more than one CNPJ

  • A store can issue under more than one CNPJ (the branches set up in the admin). A fiscal document and a voiding carry the issuer_id of the CNPJ they belong to, and GET /fiscal-documents, GET /fiscal-voidings and POST /fiscal-voidings take issuer_id to filter or to choose the CNPJ. Without it, the lists return all of them and a voiding uses the company's CNPJ.

2026-11-21: scheduled orders and pre-sale

  • An order may carry scheduled_on, the day (YYYY-MM-DD) the customer asked for it to be sent (dispatched, or ready for pickup); null is as soon as possible. Set it with POST /orders or PATCH /orders/{order_id} (from today up to a year ahead; null clears it). New errors: scheduled_on_too_soon, scheduled_on_too_late.
  • GET /orders takes scheduled_from and scheduled_to (days, both included) and then lists only scheduled orders; OrderSummary carries scheduled_on.
  • A variant may carry preorder_available_on, the day a pre-sale collection is expected (with fulfillment_mode on_demand or stocked_or_on_demand). While it is ahead, units sold without stock are expected on that day (expected_availability_at), and the order line records it in preorder_available_on.

2026-11-21: reseller sign-up

  • Reseller sign-up requests: GET /reseller-applications (by status), GET /reseller-applications/{application_id}, POST .../approval (with group_id, or the store's default group) and POST .../rejection (with reason). Approving links the request to its customer (or creates one), fills in only what the record lacks and puts the customer in the group.
  • Storefront API: POST /storefront/reseller-applications sends a business's request (errors applications_closed, application_pending, validation_failed, turnstile_failed) and GET /storefront/reseller-applications/cnpj/{cnpj} looks up a CNPJ's public data to fill in the form.

2026-11-21: price lists and wholesale rules

  • Price lists: GET, POST /price-lists, GET, PATCH, DELETE /price-lists/{price_list_id}, and a list's prices (GET /price-lists/{price_list_id}/prices, PATCH to write: each price is a variant from a quantity up, and price_cents: null removes one). A variant without a price of its own costs the regular price less the list's percent_off_bp.
  • A customer group's price list and wholesale rules: PUT /customer-groups/{group_id}/wholesale (price_list_id, min_order_cents, min_item_quantity, pack_size, catalog_limited with collection_ids). The group answers these fields too.
  • Automatic discounts: skip_price_list_groups keeps the rule from applying to customers of a group with a price list. Without it, the rule applies on top of the list price.
  • Storefront API: with the customer signed in, price_cents is their list's price, compare_at_cents the regular price and price_tiers the quantity prices; where the store shows prices to signed-in customers only, a visitor gets null prices and prices_hidden: true. The cart carries price_list_name and wholesale_issues; new errors: wholesale_rules_unmet (at checkout), not_available_to_group and sign_in_required.

2026-11-21: shipping rules

  • The store's shipping rules (free shipping above an amount, a fixed price, a discount or markup, extra days, hidden services) now price every quote. In the Storefront API, each option of a cart (shipping_options) and of POST /storefront/shipping-estimates has base_shipping_cents, what the carrier quoted before the rules; the estimate's options may also carry shipping_rule (id, name, action).
  • The cart has free_shipping (threshold_cents, remaining_cents, qualifies): what it still needs for the store's free shipping at its CEP, null when no rule can apply. The estimate answers it too, for its items.
  • POST /storefront/shipping-estimates takes an optional channel (storefront by default, pos, quotes, conversations) for rules limited to a channel.
  • At checkout the rules run again on the cart as it is; a freight price that moved since the shopper chose it stops the checkout with the corrected total, as a changed shipping price already did.
  • A counter sale's freight (POST /orders with source: manual) may carry the option's shipping_rule and base_shipping_cents; the order keeps them with its freight.

2026-11-21: boleto

  • New boleto value for automatic discounts' condition_payment_method (/automatic-discounts): a discount only for customers paying by boleto.
  • An order's payments (GET /orders/{order_id}/payments) can have method: boleto; while it waits, provider_snapshot_json.boleto holds url, digitable_line, barcode, due_date and, when the payment provider issues one, pix_code.
  • POST /orders/{order_id}/refunds for a boleto paid through Banco Inter, or paid at a bank through Asaas, records the refund with provider_code: manual without calling the provider: the store makes the transfer to the customer.
  • Storefront API: boleto in POST /storefront/carts/{cart_id}/payments and POST /storefront/orders/{order_id}/payments, with next_action.type: boleto; GET /storefront/orders/{order_id}/payment has boleto while it waits; new GET /storefront/orders/{order_id}/boleto (the boleto's PDF, or a redirect to its page).

2026-11-21: reference tables

  • Reference tables: fabric palettes (swatches), size charts (measurements) and dimension tables (dimensions) a store defines once and shows on many products. GET, POST /reference-tables, GET, PATCH, DELETE /reference-tables/{reference_table_id}. A table's entries are its rows (a label, code, image_file_id, color_hex, option_value and one text per column in values); product_ids, category_ids and collection_ids say where it shows. New error: reference_table_not_found.
  • GET /products/{product_id}/reference-tables lists what a product page shows, its own and inherited from its categories and collections; PUT sets the product's own and the inherited ones it hides.
  • Storefront API: a product's detail carries reference_tables, each swatch with the product's option it stands for.

2026-11-19: a counter sale takes a list of payments

  • Breaking: POST /orders with source: manual takes payments (a list of { method, amount_cents, card, amount_received_cents }) in place of payment_method and amount_received_cents. One payment needs no amount_cents (it covers the total); several in-person payments each say theirs and add up to the total. pix_qr is always the only payment. New errors: payments_total_mismatch, pix_qr_not_splittable.
  • A card_terminal payment may say card (kind: credit or debit, and installments 1 to 24 on credit), on a counter sale and on POST /orders/{order_id}/payments. The order shows it as payment_card, and its NFC-e says credit or debit. New errors: card_detail_not_applicable, invalid_installments.
  • The sales report splits an order paid in several parts between its payment methods by amount.

2026-11-17: operations named after this API's resources; SDK 0.2.0

  • An operation is named after the resource it acts on in this API, where the admin's name said something else (the reference and the SDKs use these names; the document keeps the admin's as x-admin-operation): listEvents, listEventTypes, listLocations (and get, create, update, deleteLocation), listTeamMembers, listBookingSlots, listSubscriptions, getRecurringSubscription, createSubscription, updateSubscription, listHelpArticles (and get, create, update, deleteHelpArticle), listHelpCollections (and create, update, deleteHelpCollection), listForms (and get, create, update, deleteForm), listFormSubmissions (and update, deleteFormSubmission), createGiftCard, changeDealStage, listTaxClasses (and create, update, delete, assignTaxClass), checkFiscalDocumentStatus, checkFiscalCorrectionStatus, and listNfseDocuments (and get, create, cancelNfseDocument, checkNfseDocumentStatus, downloadNfseDocumentXml, downloadNfseDocumentPdf).
  • Breaking for SDK users: the SDK methods take these names; 0.1.x names of these operations are gone.
  • @mobiari/api 0.2.0 covers the whole API as of today, with webhook verification (verifyWebhook). See SDKs.

2026-11-17: fiscal documents

  • NF-e and NFC-e: GET /fiscal-documents (by status, environment, order_id), GET /fiscal-documents/{document_id} with SEFAZ's transmissions, its /xml, /danfe and the NFC-e's /receipt, and POST .../status-check to ask SEFAZ where it stands. A document's serie is series.
  • An order's invoices: POST, GET /orders/{order_id}/invoices, POST .../invoice-cancellation, correction letters (GET, POST .../invoice-corrections, then /fiscal-corrections/{correction_id}/xml, /pdf, POST .../status-check), and PUT /orders/{order_id}/nfe for an NF-e issued elsewhere.
  • Voidings (GET, POST /fiscal-voidings), tax classes (/tax-classes, PUT replaces the whole class, POST .../assignments gives it to products and variants) and NFS-e (/nfse-documents, POST .../cancellation, /xml, /pdf, POST .../status-check; the service's day is competence_on).
  • The fiscal setup (certificate, profile, environment, numbering, readiness) stays in the app, behind its checklist.

2026-11-17: loyalty, store credit, gift cards and digital products

  • Loyalty: the program (GET, PUT /loyalty-program) and its tiers (GET, PUT /loyalty-tiers), referrals (GET /loyalty-referrals), and a customer's points (GET /customers/{customer_id}/loyalty, POST .../loyalty/adjustments, POST .../loyalty/redemptions).
  • Store credit: wallets and gift cards (GET /credit-accounts, GET /credit-accounts/{account_id} with its entries, POST .../adjustments, PUT and DELETE .../disabled), selling a gift card (POST /credit-accounts, the one answer with its whole code), a customer's wallet (GET, POST /customers/{customer_id}/credit) and the credit on an order (GET /orders/{order_id}/credit).
  • A product as a gift card (GET, PUT /products/{product_id}/gift-card), its digital delivery (GET, PUT, DELETE /products/{product_id}/digital-delivery) and its license keys (GET says how many are left as key_count, used, available; POST adds keys, which are never read back).

2026-11-17: tickets, the help center and forms

  • Tickets of the support desk: GET /tickets, GET, PATCH /tickets/{conversation_id} (a ticket is a conversation).
  • The help center: articles (/help-articles, /help-articles/{article_id}; is_public puts a published article on the public help center) and collections (/help-collections).
  • Forms the store publishes: /forms, /forms/{form_id} (PUT replaces the whole form), their submissions (GET /forms/{form_id}/submissions, PATCH, DELETE /form-submissions/{submission_id}).

2026-11-17: purchasing

  • Suppliers (GET, POST /suppliers, PUT /suppliers/{supplier_id}: name, legal name, tax id, e-mail, phone, lead time and notes are set as sent, cleared when left out; the other fields keep their value when left out), purchase orders (/purchase-orders, /purchase-orders/{po_id}, its kit lines, a freight quote, and POST .../receipts for what arrived), supplier invoices (import an NF-e XML with POST /supplier-invoices, match it with PATCH, POST .../receipt to enter it into stock, POST .../discard), payables (/payables) and receivables (GET /receivables) are public.
  • A purchase order's expected day is expected_on.

2026-11-17: reviews, subscriptions, quotes and exchanges

  • Reviews: GET /reviews (with the product's product_title and product_slug), PATCH /reviews/{review_id} to approve or reject, DELETE.
  • Subscriptions (an order placed again every few days, weeks or months): GET, POST /subscriptions, GET, PATCH /subscriptions/{subscription_id} (pause, resume, cancel, skip_next, items, rhythm). subscriptions.* webhooks carry the Subscription and, in details, the status they were sent with and what they established: the cycle's order_id and order_number, the failed cycle's last_error, the paused_reason.
  • Quotes (a cart with a link the customer checks out from): GET, POST /quotes, POST /quotes/{cart_id}/expiration.
  • Exchanges of a return: POST /returns/{return_id}/exchange places the exchange order, PUT .../exchange-items sets what goes out, POST .../exchange-charge makes a Pix charge for the difference, and PUT .../shipping says how the items come back.

2026-11-17: conversations

  • The inbox is public: conversations (GET, PATCH /conversations/{conversation_id}, and POST .../handback), their messages (list, send, download an attachment), notes, the contact's block, linked orders, and labels (/conversation-labels). See Conversations.
  • A Conversation is the same in a list and a read (a read also carries notes and reply_window_expires_at); assignee_id, is_bot_active, unread_count and snooze_ends_at are this API's names. A message's attachment url is this API's download.
  • conversations.* webhooks carry the Conversation (without the team's notes), and conversations.message_received the message's text and sender in details.

2026-11-17: the CRM

  • GET /team-members lists the store's team: the ids a deal's owner_id and a task's assignee_id take.
  • Pipelines (GET, POST /pipelines, GET, PATCH /pipelines/{pipeline_id}), deals (/deals, /deals/{deal_id}, and POST /deals/{deal_id}/stage-changes to move one), tasks (/tasks, /tasks/{task_id}) and a customer's timeline (/customers/{customer_id}/interactions) are public. See CRM.
  • deals.* webhooks carry the Deal.

2026-11-17: bookings

  • Bookings are public: services (/booking-services), providers and their hours and time off (/booking-providers), free slots (GET /booking-slots), bookings (/bookings, with every_weeks and count for a weekly series) and what happens to them (POST /bookings/{booking_id}/rescheduling, /cancellation, /completion, /no-show), their notes and intake answers, the waitlist (/booking-waitlist), and packages and their plans (/booking-packages, /booking-package-plans). See Bookings.
  • In this API a booking's client is its customer_name, customer_email and customer_phone, as on an order; durations are *_minutes; is_active and timezone are named as elsewhere.
  • bookings.* webhooks carry the Booking.

2026-11-17: one address vocabulary

A breaking change, made while no integration depended on /v1.

  • Every address in the API says street, number, complement, neighborhood, city, state, postal_code (and country where it has one). An order's shipping_address is a ShippingAddress: postal_code and complement were zip_code and additional_info, in its answers and in PATCH /orders/{order_id} (ShippingAddressUpdate).
  • A customer's address is a CustomerAddress with those parts: type (was address_type), and no customer_id (the path names it). The free lines address_line_1 and address_line_2 are gone from it; an address saved as lines is answered in parts where they can be told apart (Rua das Flores, 88 is street and number; its second line is answered whole as complement). POST /customers/{customer_id}/addresses takes the parts (street is required) and PATCH changes any of them.

2026-11-17: webhooks carry the API's objects

A breaking change to webhooks, made while no store had one.

  • A webhook's body is the event as GET /events answers it, with the store: id, type, created_at, store_id and data. data.object is the object the event is about exactly as its GET answers it (an Order for orders.paid, a Customer for customers.created), read once when the event is sent, so every retry and GET /events carry the same one. An object that is gone is {id, deleted: true}. data.details holds what the event knows that the object does not (refund_cents of orders.refunded). The old envelope (event, timestamp, data with the admin's fields) is gone.
  • Deliveries are signed in Mobiari-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>">, so a receiver can refuse a replayed request; Mobiari-Event-Id and Mobiari-Event-Type replace the X-Webhook-* headers. See Verifying signatures.
  • The reference describes every event type's body (the document's webhooks), and GET /event-types answers a page of EventType: its type, description, the schema of its object and the names of its details.
  • An Event (GET /events) is id, type, created_at and data, filtered by type (was name). It lists the events of the catalog only.
  • POST /orders takes items[].variant_id, like a sale with source: manual (was product_variant_id), and POST /products/{product_id}/images takes variant_id and kind, the names of a ProductImage (were product_variant_id and image_kind).
  • The SDKs check signatures: verifyWebhook in @mobiari/api and verify_webhook in mobiari, typed by event type.

2026-11-17: the store and the single reads

  • GET /store answers the store a key works on: name, slug, kind, currency, locale, timezone and is_test.
  • Every resource with a list can now be read by id: GET /discount-codes/{code_id}, GET /automatic-discounts/{discount_id}, GET /webhooks/{webhook_id} (with its events and secret), GET /customer-groups/{group_id}, GET /inventory-locations/{location_id} and GET /sales-channels/{channel_id}.

2026-11-16: the API is the public API; the admin paths leave /v1

A breaking change, made while no integration depended on /v1.

  • /v1 now serves the API: 119 operations for catalog, inventory, orders and fulfilment, customers, discounts, webhooks and events, described by public.json. Paths have no store in them: GET /v1/products, not /v1/stores/{store_id}/products. A store API key (mobi_sa_…) names its store; with another credential, send the store id in the Mobiari-Store header (400 store_required without it).
  • Partial updates are PATCH, changes of state are nouns under the resource (POST /orders/{order_id}/cancellation, POST /returns/{return_id}/approval), and stock is read and written as inventory-levels, inventory-adjustments, inventory-transfers and inventory-movements.
  • Lists page with cursor and limit only: offset answers 400 offset_not_supported.
  • Everything else that answered under /v1/stores/..., /v1/tenants/..., /v1/me and /v1/auth is no longer there (404 route_not_found). It is the API of Mobiari's own apps, which changes without notice. Areas outside the list above (bookings, conversations, e-mail, fiscal documents, workflows and others) are not public yet and are announced here as they become so.
  • The Storefront API (/v1/storefront) and the chat widget are unchanged.
  • A product in the API has 34 fields, not the admin's 84: what it is, its variants, option groups and images. product_type is type, rich_text_description is description_html, fiscal_tax_class_id is tax_class_id, the highlight video is video_url, video_provider and video_poster_url, and store_id is not repeated. The feed overrides (google_*, meta_*, custom labels) are not part of it. POST /products and PATCH /products/{product_id} answer 422 validation_failed naming any field they do not take. A product in a list is a ProductSummary with image_url and thumbnail_url.
  • The variants and images in a product, and the operations on them, answer public objects too. A Variant uses tax_class_id. A ProductImage has url (where to load it from) and, for an image, thumbnail_url; kind, variant_id and size_bytes replace image_kind, product_variant_id and file_size_bytes, and the file's name and path on our storage and its renditions are not part of it. POST /products/{product_id}/variants, PATCH /variants/{variant_id} and PATCH /products/{product_id}/images/{image_id} refuse a field they do not take.
  • Orders, customers and companies answer public objects too. An Order carries what was bought, by whom, the amounts and how it is paid and delivered: shipping_contact is shipping_address, payment_provider_code is payment_provider, and the fiscal document (nfe_*, danfe_url), the carrier's internals (freight_*), allowed_status_transitions and store_id are not part of it. Its items and refunds are an OrderItem and a Refund; a list answers OrderSummary. GET /orders/{order_id}/payments answers the order's payments and refunds, without the gateway's raw events. A Customer has order_count and total_spent_cents (were total_orders and total_spent); a read of one carries its addresses and no longer its orders (use GET /orders?customer_id=) or its CRM timeline. A Company has contact_count, order_count and total_spent_cents, and not the CNPJ registry data. Creating and updating a customer or a company refuse a field they do not take.
  • GET, POST /inventory-locations and PATCH, DELETE /inventory-locations/{location_id} are public: where stock is held. A store needs one before POST /inventory-adjustments can record stock. locations stay the store's physical places (shops, pickup points).
  • A Shipment (in an order and from the shipment operations) has 26 fields for the admin's 38: freight_provider_code is provider, freight_external_order_code is carrier_order_code, and the carrier platform's own ids (cdf_*), the raw tracking payload, the cubing figures, the fiscal document that travels with it and store_id are not part of it. POST /shipments and PATCH /shipments/{shipment_id} take ShipmentCreate and ShipmentUpdate and refuse a field they do not take.
  • A product carries category_ids, collection_ids, sales_channels and shipping_profile, and PATCH /products/{product_id} takes them with slug and custom_fields: what the admin keeps behind operations of the product's own. See Categories, channels and shipping.
  • More settings are fields of their object, read with it and written with its PATCH: a product's specs; a variant's dimensions, shipping_profile and custom_fields; a customer's group_id and custom_fields; a collection's sales_channels; an order's shipping_address; a webhook's events. Their own paths are not part of the API.
  • What were operations of their own are now part of others: POST /orders with source: manual records a sale already paid and answers the order (with change_cents, and pix for a PIX charge); POST /orders/{order_id}/refunds with method: manual records a refund made by hand, and both refunds now answer the order instead of a Refund; POST /inventory-adjustments with items applies up to 500 adjustments at once (all or none); GET /inventory-levels filters by variant_id and product_id (a kit's buildable is what its components allow). GET /sales-channels lists the store's channels, whose ids products, collections and orders take.
  • The API follows all of its rules. When the store's payment gateway or carrier platform fails, the answer is 503 (same code), not 502. Whether the provider acted is unknown (its answer may be what failed), and a retry runs the operation again: look at the order or shipment before retrying. GET /customer-groups and GET /customer-tags answer a page (data, has_more). GET /customers no longer takes sort: sorted by anything but newest it could not be paged with a cursor. Operation descriptions name this API's paths only.
  • Test mode: each organization can open a test store (in the admin, Access → Service accounts → Open the test store). Its orders are test orders, its e-mail reaches only your team, it cannot connect payment, freight, channel, marketplace or ad providers (403 sandbox_not_allowed), its fiscal documents stay in homologação, and its webhooks are delivered. Use a key of it while you build. See Test mode.
  • The last objects in the admin's form have their own: no store_id anywhere (categories, discounts, webhooks, inventory and store locations, carts, events); no internal ids of team members (actor_user_id in an order's status_history, stock movements and return events); no raw provider data (a payment's provider_snapshot_json, a quote option's raw). A store location's hours_json, amenities_json and photos_json are hours, amenities and photos (in its answers and its create and update bodies); a webhook delivery's payload_json is payload; a payment's and a quote option's provider_code is provider; an event no longer carries the dispatcher's attempts, completed_subscribers and last_error. A return is a Return.
  • A shipment's status and dates agree: PATCH /shipments/{shipment_id} with shipped: true moves a draft shipment to shipped, delivered: true moves it to delivered, and a status that says it left stamps the date it lacked. The order's fulfillment follows.
  • The admin API's unversioned paths (/stores/{store_id}/... at the root, deprecated since /app) answer 404 route_moved with a Link to their /app path. Integrations use the API under /v1. Images, files, feeds and provider webhooks keep their addresses.

2026-11-16: the store's brand on booking pages

  • GET /storefront/bookings/services and a booking as its client sees it (GET /storefront/bookings/{token} and the answers of booking, cancelling and rescheduling) carry brand: logo_url, primary and primary_text (#rrggbb) and tagline, from the store's brand profile. brand is null when the store has no profile or nothing in it is usable; colours that are not hex and logo addresses that are not https:// are left out.

2026-11-15: sign-up captcha, one trial per account, e-mail sending guards

  • New: GET /auth/signup-config (getSignupConfig, public) returns turnstile_site_key while the sign-up captcha is on (null otherwise). POST /auth/register then needs captcha_token: 422 captcha_required without it, captcha_failed when Cloudflare does not confirm it.
  • New: GET /tenants/trial-eligibility (getTrialEligibility) says whether a new organization would get the free trial (eligible, trial_days). The trial is once per account: POST /tenants by an owner who already had one starts the organization with its first invoice due at once.
  • Stores that send from Mobiari's address (no verified domain or provider key of their own) send nothing until the organization's owner confirms their e-mail (parceiro organizations exempt): failed sends are archived with owner_email_unverified. POST /stores/{store_id}/email/broadcasts/{broadcast_id}/send: 409 email_campaigns_held (details.reason: owner_email_unverified or reputation).
  • GET /stores/{store_id}/usage: email_caps.source can be trial (500 campaign e-mails a day during the free trial on Mobiari's address) and email_caps.hold says why campaigns are held. Campaigns are held after more than 5% bounces or 0.1% spam complaints over 200+ campaign e-mails in 30 days; new notification kind marketing.email_campaigns_paused.

2026-11-15: unpaid organizations and stores not yet open

  • While an organization's subscription is suspended or canceled, admin writes under /stores/{store_id}/ and /tenants/{tenant_id}/ answer 402 subscription_inactive (details.stage, details.closes_at), except billing (/tenants/{tenant_id}/subscription*, and legal_name / tax_id in PATCH /tenants/{tenant_id}), the work of incoming orders (orders, shipments, returns, POS, quotes, carts, conversations, tickets, calls, bookings, dropshipping), privacy requests, customer erasure and calls that only read or preview. Reads are unaffected.
  • 30 days after that, and for a store whose organization owner has not verified their e-mail, the storefront API refuses cart changes, checkout and payments with 409 store_unavailable or store_not_ready; the store's pages answer 503. Payment webhooks are unaffected.
  • GET /tenants/{tenant_id}/subscription (getSubscription) adds stage (good, restricted, closed), store_closes_at and storefront_awaiting_verification.

2026-11-14: a billing address on every checkout

  • POST /storefront/carts/{cart_id}/payments and POST /storefront/carts/{cart_id}/checkout (and the older /storefront-api/{store_slug}/api/payments/intents and /checkout): 422 address_required when the cart's contact has no street, 8-digit CEP, city and two-letter state. This now holds for pickup too, since the order's invoice (NF-e) is issued to that address; gift card carts are exempt. Save the address with the cart's contact before paying. The default theme asks for it under "Endereço de cobrança" when the shopper picks up in store.
  • PUT /storefront/carts/{cart_id}/fulfillment with method: "shipping" on a cart already on shipping changes nothing (it used to zero shipping_cents while keeping the chosen option). A checkout whose shipping_cents disagrees with the chosen option is refused with 422 shipping_required / freight_selection_required and the cart corrected.
  • A cart checked out twice at once (two tabs, a double click) yields one order: the second call answers with the first one's order.

2026-11-05: subscribing to a sold-out product

  • POST /storefront/customers/me/subscriptions (startStorefrontSubscription): 409 out_of_stock when the product is stocked and sold out.

2026-11-04: charge an exchange's difference by Pix

  • New: POST /stores/{store_id}/returns/{return_id}/exchange/charge (chargeExchangeDifference) creates a Pix for what the replacement order still owes after the return's credit and returns order_id, amount_cents, qr_code, qr_code_base64 and expires_at (the same Pix again while it is live). Needs orders.write. 409 nothing_due (covered by credit, or already paid), invalid_state, exchange_order_cancelled (the Pix expired or was refused and the order was cancelled); 422 not_an_exchange, payment_unavailable (no Pix gateway connected), customer_email_required (the gateway needs the customer's e-mail and there is none), pix_intent_failed. The exchange order now spends at most the return's credit from the customer's wallet, never other balance.

2026-11-04: gift card custom amount

  • A gift card product can let the buyer type the amount: custom_amount on GiftCardProduct and on PUT /stores/{store_id}/products/{product_id}/gift-card (left as it is when omitted; off when the product stops being a gift card). The storefront Product carries gift_card (custom_amount, min_cents R$ 10,00, max_cents R$ 50.000,00) for gift card products. POST /storefront/carts/{cart_id}/gift-card-items takes amount_cents: that is the card's value (422 invalid_amount outside the limits, custom_amount_not_allowed for a product with fixed values); without it the variant's value is used as before. SDK: amount_cents in the second argument of cart.giftCards.add.

2026-11-04: undo a bank line

  • New: POST /stores/{store_id}/finance/bank-lines/{line_id}/unmatch (unmatchBankLine): a matched line goes back to open and the payable it paid is reopened; an ignored line goes back to open. 409 line_open. A payable matched from a statement now has method transfer.

2026-11-04: feed for content pages

  • GET /{page}/feed.xml on a store's own address (and /storefront/{store_slug}/{page}/feed.xml) serves an Atom 1.0 feed (application/atom+xml) of a CMS page's live entries: the 50 newest by when they went live, each with title (the entry's title, name or headline, else its slug), summary (summary, excerpt or description), published and updated. Scheduled and ended entries are left out. 404 for a page that does not exist, is not backed by a collection, is hidden or marked noindex.

2026-11-04: comments on project cards

  • GET and POST /stores/{store_id}/boards/{board_id}/cards/{card_id}/comments (listBoardCardComments, createBoardCardComment; projects.read / projects.write; body 1 to 2000 characters; oldest first, with author_name) and DELETE .../comments/{comment_id} (deleteBoardCardComment; 403 not_author unless it is the caller's own). Card carries comment_count. A comment from someone other than the assignee sends the assignee a tasks.assigned notification.

2026-11-04: project card reminders

  • A card's assignee gets a tasks.assigned notification when someone else assigns the card to them (create or updateBoardCard), and a tasks.due notification once on the card's due_on day in the store's time zone (not for done cards; a new due_on or assignee reminds again). Both use the existing task notification kinds and preferences and open /projects?board={board_id}.

2026-11-04: projects and boards

  • Kanban boards for the team's own work. GET and POST /stores/{store_id}/boards (listBoards, createBoard; projects.read / projects.write; a new board gets the columns A fazer, Em andamento and Concluído unless columns is sent, the last of which is the done column), GET, PATCH and DELETE /stores/{store_id}/boards/{board_id} (getBoard, updateBoard, deleteBoard; archived archives or restores). GET returns the columns in order and every card.
  • Columns: POST /boards/{board_id}/columns (createBoardColumn, at most 20), PATCH (updateBoardColumn: name, is_done, position; marking a column done finishes its cards, unmarking reopens them) and DELETE (deleteBoardColumn; 409 column_not_empty).
  • Cards: POST /boards/{board_id}/cards (createBoardCard: title, description, column_id, assignee_user_id, due_on, customer_id, order_id), PATCH and DELETE /boards/{board_id}/cards/{card_id} (updateBoardCard, deleteBoardCard; null clears a field) and POST .../cards/{card_id}/move (moveBoardCard: column_id and a 0-based position; answers the board). A card that reaches a done column gets completed_at. New permissions projects.read and projects.write (managers and owners have both).

2026-11-04: scheduled content

  • CMS documents carry publish_at and unpublish_at (RFC 3339, both optional) and a read-only status (draft when not is_active, scheduled before publish_at, expired from unpublish_at, else live). createCmsDocument takes both; updateCmsDocument leaves them alone when omitted and clears one with null. 422 validation_failed when unpublish_at is not after publish_at (checked against the stored value when only one changes). The storefront, its cms Liquid object and the sitemap show a document only while it is live; the store's cached pages are dropped within a minute of either moment.

2026-11-04: loyalty e-mails

  • LoyaltyProgram carries notify_points (default true); PUT /stores/{store_id}/loyalty/program takes it as an optional notify_points (left out: unchanged, so existing clients keep working). While on, the customer gets one e-mail when an order first earns them points (how many, and the day they become usable) and one when they redeem points for credit.

2026-11-04: loyalty tiers

  • GET and PUT /stores/{store_id}/loyalty/tiers (getLoyaltyTiers, setLoyaltyTiers; credit.read / credit.write): up to 6 tiers of name, min_spend_cents (what the customer paid for goods in the last 12 months, on orders that still stand) and multiplier_bps (10000 to 50000, 10000 is 1x). An order paid from then on earns points at the multiplier of the tier its customer has reached when it first earns; points already earned are never recalculated, and a refund takes back its share of the multiplied points. An empty list turns tiers off. CustomerLoyalty and the storefront PortalLoyalty carry tier (current, spend_cents, next, to_next_cents).

2026-11-04: digital products

  • License keys: POST /stores/{store_id}/products/{product_id}/license-keys (addProductLicenseKeys, up to 1000 keys a time; answers added and duplicates) and GET (getProductLicenseKeys: total, available, used; keys are never read back). When the delivery's instructions contain {license_key}, a paid order is given one key per unit bought (oldest first, sealed at rest, kept with the order so a resend repeats them); with too few free keys none is taken and the delivery waits for a load (the error is kept, a resend retries).
  • A product can deliver something online once an order is paid: GET, PUT and DELETE /stores/{store_id}/products/{product_id}/digital-delivery (getProductDigitalDelivery, setProductDigitalDelivery, removeProductDigitalDelivery; a title, an https url and/or instructions; 404 no_digital_delivery; 422 validation_failed). Permissions products.read and products.write. When the order is paid it is e-mailed once to the order's customer; POST /stores/{store_id}/orders/{order_id}/digital-delivery/resend (resendOrderDigitalDelivery, orders.write; 422 nothing_to_send, send_failed) sends it again. GET /storefront/customers/me/orders/{number}/downloads (getStorefrontOrderDownloads) lists a signed-in customer's items for an order (empty until paid); SDK client.customer.downloads(number).

2026-11-04: shareable wishlists

  • A signed-in customer can share their wishlist: POST /storefront/wishlist/share (shareStorefrontWishlist) returns token and path (/favoritos/compartilhada/{token}), the same link every time; DELETE /storefront/wishlist/share (unshareStorefrontWishlist) stops it. GET /storefront/wishlists/shared/{token} (getStorefrontSharedWishlist, no sign-in, rate limited) returns owner_name and the items (product_id, title, handle, price_cents, in_stock; never alerts or saved prices); 404 not_shared when unknown or stopped. In the SDK: client.wishlist.share(), .unshare() and .shared(token).

2026-11-04: recurring expenses

  • A recurring expense (rent, software, an accountant) makes one payable every interval_months (1 to 12), 10 days before its due day, from first_due_on until ends_on if given; each payable keeps the template's day of the month where the month has it. GET and POST /stores/{store_id}/recurring-expenses (listRecurringExpenses, createRecurringExpense) and PATCH .../recurring-expenses/{expense_id} (updateRecurringExpense: description, category, amount, active to pause and resume, ends_on). Payables already made are not changed. Permissions payables.read and payables.write; 422 invalid_category, amount_must_be_positive, invalid_interval, description_required, invalid_end. A payable made from one carries recurring_expense_id in the database.

2026-11-04: subscribe from a product

  • A product can be sold by subscription: GET/PUT /stores/{store_id}/products/{product_id}/subscription-options (getProductSubscriptionOptions, setProductSubscriptionOptions; up to 6 of unit week/month and count 1 to 52; empty turns it off). The storefront Product carries subscription_options. POST /storefront/customers/me/subscriptions (startStorefrontSubscription; variant_id, quantity, interval_unit, interval_count) starts one for the signed-in customer at an interval the product offers: the first order is placed within minutes, later ones repeat the delivery of the customer's latest paid order. 422 not_subscribable, invalid_interval_option, needs_first_order (a physical product needs an earlier purchase to know where to send it); 409 already_subscribed, too_many_subscriptions (20 running); 404 variant_not_found. SDK client.customer.subscriptions.start(variantId, {unit, count}, quantity).

2026-11-04: subscriptions (recurring orders)

  • A subscription is a customer's standing order of some variants, placed again every interval_count weeks or months (interval_unit week or month). GET and POST /stores/{store_id}/subscriptions (listRecurringOrders, createRecurringOrder), GET and PATCH .../subscriptions/{subscription_id} (getRecurringOrder, updateRecurringOrder: status active, paused or cancelled, skip_next, the interval, next_run_at, the full list of items, delivery_order_id). Permissions orders.read and orders.write. 409 cancelled on a cancelled subscription; 422 variant_not_found, invalid_delivery_order.
  • discount_code on a subscription (create and PATCH; an empty string removes it): every cycle's order applies that code of the store; 422 invalid_discount_code when the store has no such code. A code that expires or runs out fails the cycle like any other error.
  • Each due cycle places an ordinary order (placed_via subscription, orders.subscription_id), repeats the delivery of delivery_order_id and e-mails the customer a Pix. Three failed cycles in a row pause the subscription with paused_reason failures and the error in last_error.
  • Storefront API: GET /storefront/customers/me/subscriptions and POST .../subscriptions/{id}/pause, /resume, /skip and /cancel. 404 for another customer's; 409 invalid_state; 409 needs_store when the store paused it (resume is the store's). In the SDK: client.customer.subscriptions.list() / .pause(id) / .resume(id) / .skip(id) / .cancel(id).
  • GET /stores/{store_id}/subscriptions/summary (getRecurringOrderSummary): active, paused, needs_attention, cancelled, monthly_recurring_cents, and for 30 days started, cancelled, orders placed and failed cycles.
  • New events subscriptions.created, subscriptions.order_placed, subscriptions.cycle_failed, subscriptions.paused, subscriptions.resumed and subscriptions.cancelled.

2026-11-04: theme deployments keep their history

  • A deployment (StorefrontDeployment, from GET /stores/{store_id}/storefront/deployments) now has message (what the version changes), created_by and created_by_name (who made it) and parent_deployment_id (the live deployment a draft started from). Older deployments have them empty.
  • POST .../deployments/draft and POST .../deployments/{deployment_id}/ready take an optional JSON body {"message": "..."} (500 characters at most; 422 invalid_message). Without a body they work as before. The import form (POST .../deployments/import) takes an optional message field.
  • POST .../deployments/{deployment_id}/promote refuses a draft that was never promoted when its parent_deployment_id is no longer the live deployment: 409 stale_base, nothing changes. Start a new draft from the live theme, or pass ?force=true to replace what was promoted since. Rollbacks (a deployment promoted before) and deployments without a parent (imports, older ones) are not checked.
  • GET .../deployments/{deployment_id}/files and GET .../deployments/{deployment_id}/file now work for any deployment of the store, not only drafts (writes stay draft-only). Reading a binary file answers 422 file_not_text.
  • New: GET .../deployments/{deployment_id}/diff (diffStorefrontDeployment) lists the files added, modified and removed against another deployment (against; default the deployment's parent, else the live one) and, with path, returns the unified line diff of one text file (cut at 64 KiB or 1500 lines, with truncated).

2026-11-04: bank reconciliation

  • POST /stores/{store_id}/finance/bank-imports (importBankStatement; finance.write) takes content, the text of an OFX 1.x or 2.x statement (up to 2 MB and 5000 transactions), and answers lines, added and duplicates (a transaction is known by its account and FITID); 422 invalid_statement. GET .../finance/bank-lines?status=open|matched|ignored|all (listBankLines) lists lines, each open debit with up to 3 open payables of the same amount due within 20 days of it. POST .../bank-lines/{line_id}/match (matchBankLine, payable_id; needs finance.write and payables.write) marks the payable paid on the bank's day and amount (method bank_transfer): 409 line_resolved or payable_not_open, 422 not_a_debit or amount_mismatch. POST .../bank-lines/{line_id}/ignore (ignoreBankLine).
  • A credit is matched to a receivable: match takes either payable_id (a debit) or payment_id (a credit; 422 invalid_match unless exactly one, not_a_credit; 404 payment_not_found; 409 payment_confirmed). An open credit comes with receivable_candidates (up to 3 payments whose net of the estimated fee, or whole amount, is within R$ 1,00 of it and expected within 10 days), and Receivable carries confirmed_on, the bank's day.

2026-11-04: marketplace commission in Finance

  • A payment taken by a marketplace carries the commission it reported (marketplace_fee_cents in its provider snapshot): Receivable.fee_cents is that commission (scaled to what was not refunded, never more than the payment) and the new Receivable.fee_source says marketplace; every other payment keeps the estimate from the store's terms (estimate). The cash flow, the receivables totals and the DRE's payment fees use the real commission.

2026-11-04: saved report views

  • New: GET /stores/{store_id}/reports/views (listReportViews, optional report), POST .../reports/views (saveReportView: report, name of 1 to 60 characters, params as text pairs, at most 20; the same name on the same report replaces it) and DELETE .../reports/views/{view_id} (deleteReportView). Reading needs reports.read, saving and deleting reports.manage. 422 invalid_name, invalid_params, too_many_views (50 per store).

2026-11-04: sales forecast

  • New: GET /stores/{store_id}/reports/forecast (getSalesForecast; days 7 to 90, default 30, optional channel_id; reports.read): net revenue expected per day from the weekday averages of the last 56 days, with low_cents and high_cents (one standard deviation), the totals, last_period_cents and change_bps to compare, selling_days and enough_history (false under 14 selling days). 422 invalid_horizon.

2026-11-04: booking calendar feed

  • A provider's bookings as an iCalendar feed for any calendar app: POST /stores/{store_id}/booking-providers/{provider_id}/calendar-feed (enableBookingCalendarFeed) makes the link (token, path /booking-feeds/{token}.ics on the API's host; the same link every time) and DELETE (disableBookingCalendarFeed) turns it off, for bookings.manage or the provider's own login. GET /booking-feeds/{token}.ics needs no sign-in (the token is the credential; rate limited; an unknown or stopped token is a plain 404) and answers text/calendar with the confirmed and completed bookings from 30 days back to a year ahead: UTC times, the service and client name, the client's phone and e-mail and the video link. Never the session notes or the intake answers.

2026-11-04: a customer's own bookings

  • GET /storefront/customers/me/bookings (listStorefrontMyBookings) lists the signed-in customer's bookings (those made for them, linked by e-mail or phone): upcoming soonest first, then past ones, up to 100; each is the private link's view plus its id. POST /storefront/customers/me/bookings/{id}/cancel (cancelStorefrontMyBooking, body reason) cancels one under the service's cutoff: 404 booking_not_found for one that is not theirs, 409 cancel_window_closed or invalid_state. SDK client.customer.bookings.list() and .cancel(id, reason).

2026-11-04: booking deposit becomes credit on cancel

  • BookingService has deposit_on_cancel (keep, the default, or credit; also on create and update, 422 invalid_deposit_on_cancel). With credit, cancelling a booking whose deposit was paid, by the client or the team, adds the paid amount to the client's store credit once. Booking has deposit_credited_cents (what was credited; 0 otherwise).

2026-11-04: dropshipping

  • New: PUT /stores/{store_id}/variants/{variant_id}/dropship (setVariantDropship, supplier_id or null), GET .../products/{product_id}/dropship (getProductDropship), GET .../dropship-orders (listDropshipOrders, optional status), POST .../dropship-orders/{dropship_id}/resend and /cancel (resendDropshipOrder, cancelDropshipOrder; 409 not_pending, 422 send_failed). Read needs purchasing.read, changes purchasing.write.
  • When an order is paid, each supplier with items on it gets a dropship order and an e-mail with a private link (/fornecedor/{token} in the admin app, served by GET /dropship/{token} and POST /dropship/{token}/ship, no authentication, the token is the credential). Shipping creates a shipped shipment (freight_provider_code dropship) with the tracking code.

2026-11-04: customer groups and group discounts

  • New: GET/POST /stores/{store_id}/customer-groups (listCustomerGroups, createCustomerGroup: unique name, up to 60 characters, 50 per store), PUT/DELETE .../customer-groups/{group_id} (renameCustomerGroup, deleteCustomerGroup) and GET/PUT /stores/{store_id}/customers/{customer_id}/group (getCustomerGroup, setCustomerGroup; group_id null takes the customer out). Reading needs customers.read, managing groups customers.write and putting a customer in one customers.edit on that customer (deleting a group that has discounts also needs discounts.write, since they go with it). 409 group_name_taken, too_many_groups.
  • AutomaticDiscount has condition_customer_group_id (also on create and update; null clears it): the rule applies only in the carts and orders of that group's customers. It is not part of the public rules shown on product pages and quotes. Deleting a group deletes its discounts.

2026-11-02: exchanges, discount share and return shipping

  • A return has resolution (refund or exchange), discount_share_cents (its part of the order's discount; refund_cents is now net of it, so a coupon is not refunded twice) and, for an exchange, exchange_items (variant, quantity, unit_price_cents), exchange_order_id and exchange_order_number. New status exchanged; new timeline steps exchanged, shipping_updated and exchange_changed.
  • POST /stores/{store_id}/orders/{order_id}/returns takes resolution, exchange_items and, with approve, shipping. POST .../returns/{return_id}/approve takes an optional ReturnShipping body (instructions, carrier, code, label_url, https only); without instructions the store's default_instructions are used. 422 invalid_shipping.
  • New: PUT /stores/{store_id}/returns/{return_id}/shipping (setReturnShipping), PUT .../exchange-items (setReturnExchangeItems, turns a return into an exchange) and POST .../exchange (exchangeReturn): the return's value goes to the customer's store credit and pays a replacement order (placed_via exchange, orders.exchange_return_id); 409 insufficient_stock before any credit moves; 422 not_an_exchange, no_customer. Needs orders.write and orders.refund.
  • ReturnSettings adds exchanges_enabled (default true) and default_instructions; both optional on PUT. Returnable adds exchanges_enabled and, per line, product_id, variant_id and exchange_options (variant_id, title, sku, available).
  • Storefront: POST /storefront/customers/me/orders/{number}/returns takes resolution and exchange_items (other variants of the returned products, no more units than returned): 422 exchanges_disabled, exchange_other_product, exchange_exceeds_returned, exchange_variant_not_found, exchange_variant_unavailable, no_exchange_items, duplicate_exchange_item, invalid_resolution. PortalReturn adds resolution, discount_share_cents, shipping (once approved), exchange_items, exchange_order_number and exchanged_at; PortalReturnable adds exchanges_enabled and exchange_options.
  • New event returns.exchanged; every returns.* payload carries resolution, exchange_order_id and exchange_order_number. New transactional e-mails returns.requested, returns.approved, returns.rejected, returns.received, returns.refunded and returns.exchanged.

2026-11-02: loyalty points and referrals

  • The store's program: GET and PUT /stores/{store_id}/loyalty/program (getLoyaltyProgram, updateLoyaltyProgram: points per R$ 1, the redemption block in points and in cents, the days before an order's points count, months without earning before points expire; referrals on or off, the credit for the referrer and for the friend, the friend's minimum order and a monthly limit per referrer). GET .../loyalty/summary and GET .../loyalty/referrals?status= (pending, rewarded, void with void_reason). Permissions: credit.read and credit.write.
  • A customer's points: GET /stores/{store_id}/customers/{customer_id}/loyalty (balance usable and pending, history, referral code, referrals made and the one that brought them), POST .../loyalty/adjust (422 invalid_points, note_required, insufficient_points) and POST .../loyalty/redeem (points into store credit; 422 loyalty_off, invalid_points, insufficient_points).
  • Storefront API: GET /storefront/customers/me/loyalty (points, the store's rules and, with referrals on, the customer's code and share_path) and POST /storefront/customers/me/loyalty/redeem; GET, PUT and DELETE /storefront/carts/{cart_id}/referral (a friend's code on the cart: 404 referral_not_found, 422 referrals_off or own_referral_code, 429 rate_limited). In the SDK: client.customer.loyalty.get() / .redeem(points) and client.cart.referral.get() / .apply(code) / .remove().
  • Store credit entries from redeemed points and referral rewards are ordinary issue entries of the customer's wallet.

2026-11-02: bookings with deposits, packages, classes and more

  • Pix deposit: deposit_cents on a service makes the client's booking (POST /storefront/bookings) start as pending_payment and return payment (PixToPay: qr_code, qr_code_base64, amount_cents, expires_at). Paid, it turns confirmed; unpaid after 35 minutes, cancelled with cancelled_by system. When the Pix cannot be made: 422 payment_unavailable or pix_intent_failed, and nothing is booked. PublicBooking carries deposit_cents, paid_cents, payment and video_url.
  • Classes: capacity on a service; slots carry seats_left; 409 class_full and already_booked. Bookings of one class share an occurrence_id.
  • Intake form: intake_questions and sensitive on services; the booking request takes intake ([{question_id, value}]) and consent; 422 intake_required, invalid_intake_answer and consent_required. GET /stores/{store_id}/bookings/{booking_id}/intake (getBookingIntake) and notes at GET/POST .../bookings/{booking_id}/notes, PATCH/DELETE .../notes/{note_id}, only with bookings.notes or for the booking's own provider.
  • Packages of sessions: GET/POST /stores/{store_id}/booking-package-plans, PATCH/DELETE .../{plan_id}; GET/POST /stores/{store_id}/booking-packages, POST .../{package_id}/cancel and .../resend. On the storefront: package_code on the booking, GET /storefront/bookings/packages/{code} and POST /storefront/bookings/packages (bought by Pix). BookingPage carries package_plans, waitlist_enabled and consent_text.
  • Waitlist: GET/POST /stores/{store_id}/booking-waitlist, DELETE .../{entry_id} and POST /storefront/bookings/waitlist.
  • Series: POST /stores/{store_id}/bookings/series (createBookingSeries, every_weeks and count); following: true on .../cancel cancels the later sessions.
  • Providers: user_id (the team member who signs in with the new bookings.own permission), video_url and google_calendar; POST .../booking-providers/{provider_id}/google/authorize, .../google/complete and DELETE .../google connect a Google calendar. New permissions bookings.own and bookings.notes; managed set Profissional.
  • New events for automations and webhooks: bookings.created, bookings.confirmed, bookings.rescheduled, bookings.cancelled, bookings.completed and bookings.no_show. Team alerts bookings.created and bookings.attention.
  • Report GET /stores/{store_id}/reports/bookings (getBookingsReport) and the bookings kind in reports/export/{report} and scheduled e-mails.

2026-10-26: service invoices (NFS-e)

  • NFS-e through the national system (Sistema Nacional NFS-e): GET and PUT /stores/{store_id}/nfse/settings (getNfseSettings, putNfseSettings: series, default service code, ISS rate, approximate Simples rate), GET .../nfse/readiness, PUT .../nfse/environment (homologacao or producao; 409 nfse_not_ready while the checklist has open items) and POST .../nfse/numbering (the next production DPS number).
  • POST /stores/{store_id}/nfse/preview validates a note without issuing it; GET and POST .../nfse/documents (listNfse, emitNfse) list and issue; GET .../nfse/documents/{document_id}, POST .../refresh (settles a note whose answer was lost without sending it again), POST .../cancel, GET .../xml and GET .../pdf (the DANFSE). A booking can have one live note (source_kind booking, source_id): 409 nfse_exists. Notes are pending, unknown, authorized, rejected or cancelled. Permissions: settings use stores.read and stores.write; notes use finance.read/bookings.read and finance.write/bookings.write.
  • New workspace feature nfse, on in the appointments and support setups. POST /stores/{store_id}/fiscal/certificate now creates the fiscal profile row itself, since a service workspace may never set up the NF-e.
  • São Paulo's capital issues through the city's own web service (Nota Paulistana) with the same endpoints: GET .../nfse/settings returns provider (paulistana or national), settings take sp_service_code (the city's 4 or 5 digit code) and the issue request takes service_code and, for a client abroad, client.place_abroad (an export of services). A note carries provider, verification_code and verification_url; the city has no PDF API (GET .../pdf answers 409 nfse_no_pdf) and its test method creates no note: a note issued in homologacao there has no number and cannot be cancelled (409 nfse_test_note).

2026-10-25: workspace features

  • GET and PUT /stores/{store_id}/features (getWorkspaceFeatures, updateWorkspaceFeatures): the set of features a workspace uses (catalog, sales, storefront, inventory, purchasing, shipping, finance, bookings, support, pipeline, documents, and later nfse), the segment it equals (store, appointments, support or custom) and what each one requires. Only the owner may change it; 422 feature_requires when one is on without what it requires. Switching off hides areas of the admin and deletes nothing. GET /me/access carries features and segment for each store. POST /stores takes segment; kind follows the features (store with any selling feature, otherwise service).

2026-10-25: bookings

  • The services and providers a store offers: GET and POST /stores/{store_id}/booking-services (listBookingServices, createBookingService), PATCH and DELETE /stores/{store_id}/booking-services/{service_id}; GET and POST /stores/{store_id}/booking-providers, PATCH and DELETE .../booking-providers/{provider_id}, PUT .../booking-providers/{provider_id}/hours (the whole week, in minutes from midnight in the provider's zone) and GET, POST and DELETE .../booking-providers/{provider_id}/time-off. GET and PUT /stores/{store_id}/bookings/settings switch online booking on and set the reminders.
  • Bookings: GET and POST /stores/{store_id}/bookings, GET .../bookings/{booking_id}, POST .../cancel, .../reschedule, .../complete and .../no-show, and GET /stores/{store_id}/bookings/availability (the free times of a service; except_booking offers times that overlap a booking being moved). Two live bookings of one provider never overlap: the loser gets 409 slot_taken. New permissions: bookings.read, bookings.write and bookings.manage.
  • Storefront API (X-Storefront-Key): GET /storefront/bookings/services, GET /storefront/bookings/availability?service_id&from&to, POST /storefront/bookings (returns the client's token) and, by that token, GET /storefront/bookings/{token}, GET .../availability, POST .../cancel and POST .../reschedule. 404 bookings_disabled while the store has online booking off. The client can cancel or move until the service's cutoff; after that, 409 cancel_window_closed.

2026-10-25: specifications in custom fields

  • Custom fields can be filled in by the platform from another source: managed_by (specifications) on a field means its values are written from the product specifications and the API refuses to edit them (422 validation_failed on a value, 409 field_managed on the definition); change the specification instead. option_links gives each option of a select/multiselect the page it links to. A store's storefront can render its specifications from these fields (specs_source), with the same output.

2026-10-24: custom fields

  • New registry of fields a store defines for its own records: GET and POST /stores/{store_id}/custom-fields (listCustomFields, createCustomField), PATCH and DELETE /stores/{store_id}/custom-fields/{field_id} (updateCustomField, deleteCustomField). Each field has an entity (customer, product or variant), a typed kind (text, longtext, number, integer, boolean, date, select, multiselect, email, url, phone, document), and optional unit, min, max, group, help, label_translations, required, searchable, show_on_storefront (products and variants) and show_in_portal (customers). E-mails are stored lowercase, phones as E.164 and CPF/CNPJ as digits. The customer field endpoints (/customer-fields) keep working over the same registry.
  • Values: PATCH /stores/{store_id}/products/{product_id}/custom-fields (setProductCustomFields) and PATCH /stores/{store_id}/variants/{variant_id}/custom-fields (setVariantCustomFields) take {"values": {"<key>": value}} (null clears). createProduct accepts custom_fields, and every required product field must be in it. Unknown keys and wrong values answer 422 validation_failed with a message per key. getProduct and getVariant return custom_fields.
  • Customers: fields with show_in_portal appear as fields on GET /storefront/customers/me (label, kind, choices, current value), and the customer edits them with custom_fields on PATCH /storefront/customers/me; keys not shown in their account are refused.
  • Storefront API: products and variants carry fields, the fields marked show_on_storefront that have a value, in the admin's order: [{ key, label, label_translations, kind, group, unit, value }]. Nothing is sent for a store that defines none. Liquid themes get product.fields, product.field.<key> and variant.fields; see themes.

2026-10-24: storefront addresses

  • GET and PUT /stores/{store_id}/storefront/routes (getStorefrontRoutes, updateStorefrontRoutes): where a store's built-in pages live (products, categories, cart, search, wishlist, account, order placed). Nothing changes for a store that sets nothing; see themes.

2026-10-24: the previous storefront API keeps answering

  • Themes and headless apps built before /v1/storefront keep working: /storefront-api/{store_slug}/... (and under /v1) and the channel API's /storefront/products, /storefront/products/{slug} and /storefront/orders (root only, X-Channel-Key) answer exactly as before, with Deprecation headers. They are not documented and will be removed once nothing calls them; move to /v1/storefront.

2026-10-24: Storefront API redesign (breaking)

The shopper API moved to /v1/storefront, is identified by a key instead of the store slug, and uses one set of shapes everywhere. Nothing from the old API is kept as an alias. The guide is Storefront API guide; the operations are in the reference.

Identity

  • The store slug is out of every path. Send the store's publishable key in X-Storefront-Key: pk_live_... (several per store, with an optional allowed_origins allowlist, revocable). On the store's own domain (its Mobiari address or a custom domain) the key may be omitted. New errors: 401 storefront_key_required, 401 invalid_storefront_key, 403 origin_not_allowed.
  • Customer routes still take Authorization: Bearer <customer token>, in addition to the key. A token only works in the store that issued it (401 not_signed_in otherwise).
  • The Storefront API answers only under /v1. The unversioned /storefront-api/{store_slug}/... paths are removed from the public API (the Liquid theme runtime keeps a few internal ones: form posts, the verification page, PDFs, payment webhooks). The chat widget is unchanged: /widget/{key}/..., at the root and under /v1, now tagged Chat Widget.
  • CORS allows X-Storefront-Key and exposes X-Cart-Id.

Paths (every new path is under /v1/storefront)

Before (/storefront-api/{store_slug})Now
/api/products, /api/products/search, /api/categories/{slug}/productsGET /products with search, category (slug), collection (handle), sort, min_price_cents, max_price_cents, in_stock
/api/products/{ref}GET /products/{product_ref} (id or slug)
/api/products/{ref}/reviewsGET, POST /products/{product_ref}/reviews (POST answers 201)
.../subscribe ("Avise-me")POST /products/{product_ref}/subscriptions (201, JSON {email, variant_id?, kind})
/locations, /pickup-locationsGET /locations?pickup=true|false
GET /api/cart (it created the cart)POST /carts (201) and GET /carts/{cart_id} (never creates)
POST, PATCH /api/cart/itemsPOST /carts/{cart_id}/items (adds), PUT /carts/{cart_id}/items/{variant_id} (sets; 0 removes)
DELETE /api/cart/items/{variant_id}DELETE /carts/{cart_id}/items/{variant_id}
POST, PATCH /api/cart/contactPATCH /carts/{cart_id}/contact
PUT, DELETE /api/cart/discount-codePUT, DELETE /carts/{cart_id}/discount-code
POST /api/cart/freight/quotePOST /carts/{cart_id}/shipping-quotes
POST /api/cart/freight/selectPUT /carts/{cart_id}/shipping-option
POST /api/cart/pickupPUT /carts/{cart_id}/fulfillment (method: shipping|pickup)
POST /api/cart/whatsappPUT /carts/{cart_id}/whatsapp
POST, DELETE /api/cart/gift-cards[/{item_id}] (buying a card)POST /carts/{cart_id}/gift-card-items (201), DELETE .../gift-card-items/{item_id}
/api/cart/credit...GET /carts/{cart_id}/credit, POST .../credit/gift-cards, DELETE .../credit/gift-cards/{account_id}, PUT .../credit/wallet
POST /api/freight/simulatePOST /shipping-estimates
GET /api/payments/configGET /payment-methods
GET /api/payments/installmentsGET /installments
POST /api/payments/intents, GET .../intents/{id}POST /carts/{cart_id}/payments, GET /carts/{cart_id}/payments/{intent_id}
POST /api/checkoutPOST /carts/{cart_id}/checkout
/customers/register, /customers/verifyPOST /customers (201), POST /customers/verify
/customers/login, logout, code, code/verify, password/resetPOST /auth/login, /auth/logout (204), /auth/code (202), /auth/code/verify, /auth/password-reset
/customers/me...Same names under /customers/me
/forms/{form_slug}, POST /forms/{form_slug}GET /forms/{form_slug}, POST /forms/{form_slug}/submissions (201)
/wishlist...Unchanged names under /wishlist

The cart is a resource. The cart id is in the path; the cart_id in the header, query or body and the per-request currency are gone. {cart_id} is a cart id, or the literal current for the cart named by the X-Cart-Id header or cart_id cookie (server-rendered themes). An unknown or finished cart is 404 cart_not_found. Adding to a line (POST .../items) and setting it (PUT .../items/{variant_id}) are now separate calls. Every write to a cart returns the whole cart, including the ones that used to answer {ok} or a fragment: contact, shipping quote, shipping option, fulfillment, WhatsApp, gift card items. Credit routes return CartCredit.

Shapes

  • Lists are Page<T>: { data, has_more, next_cursor, total? } with limit (1 to 200, default 50), cursor, offset and include_total. This replaces bare arrays and {items, total, limit, offset}, for products, reviews (which add summary, and always carry total), locations, a customer's orders, returns, products and privacy requests.
  • Money is integer cents. On products and variants, price_cents is what the shopper pays and compare_at_cents is the struck-through regular price or null. Removed: the decimal-string price and sale_price, image_url, image_sizes, status, metadata; image_kind is kind. New: price_range, available, images[], variants[] (options, availability, in_stock, available_quantity up to 99, expected_availability_at, image), categories[], model_url, model_placement. The list and the detail have the same fields; the list leaves descriptions null.
  • Cart fields: freight_options is shipping_options (option_id, service_name, carrier_name, shipping_cents, delivery_days, provider_code, service_type, logo; the carrier-specific extras, raw and price are gone), selected_freight_option_id is selected_shipping_option_id, and contact_draft.invalid_fields lists the contact fields to fix (it replaces the invalid_fields response).
  • Payment: payment-methods answers { data: [{method, provider_code}], card_public_key }; the payment request is {method, card_token, installments, payer} with no cart_id or currency; checkout answers {order_id, cart_id, order_number, total_cents, currency}, and 422 payment_required until a payment is approved.
  • Create is 201 with the resource, delete is 204, and {ok: true} and {success: true} wrappers are gone. Address writes (/customers/me/addresses) return the Address (201, 200, 204), not the profile; wishlist PUT and DELETE return the whole Wishlist.

Errors

  • Every error is {error, code, details}. Codes you can act on are specific: cart_not_found, variant_not_found, insufficient_stock (409, details has available, max_shippable, limiting_sku), quote_items_locked, quote_freight_locked, quote_address_locked, gift_card_cart_mixed, invalid_phone, payment_required, cart_empty, shipping_required, invalid_credentials, not_signed_in and more. The full list, with what to do for each, is the error catalog.
  • Validation is 422 validation_failed with details.fields.<field> as an array of messages and details.codes.<field>. The old string-valued fields and the invalid_fields response are gone.
  • A bad login is 401 invalid_credentials.

Channel API (server to server). POST /storefront/orders with X-Channel-Key is POST /v1/channel/orders (201, snake_case fields, supports Idempotency-Key; tag Channel API). The channel's product list endpoints were removed: read the catalog with GET /products.

New

  • GET /store (name, currency, country, locale, logo, contact, enabled payment methods, whether pickup is on), GET /categories, GET /collections, and GET /customers/me/addresses.
  • Storefront keys for the admin: GET, POST /stores/{store_id}/storefront-keys and PATCH, DELETE /stores/{store_id}/storefront-keys/{key_id} (StorefrontKey: id, name, key, allowed_origins, created_at; tag Sales Channels; orders.read to list, orders.edit to change). Every store gets a Default key.
  • In Liquid themes, routes.api_url (/v1/storefront) and shop.storefront_key, see themes.
  • The SDK takes the key instead of the slug: createClient({ key, apiBase }).

2026-10-24: access cleanup

  • The role era's names are gone from the API. StoreAccess.roles is permission_sets (items are PermissionSetSummary: id, name, color, managed), StoreMember.roles and ServiceAccount.roles are permission_sets (items are AccessBadge, which also types StoreMember.groups), and InvitePreview.role_names is policy_names.
  • GET /stores/{store_id}/roles/audit is GET /stores/{store_id}/access/audit (listAccessAudit); entries are AccessAuditEntry with policy_id in place of role_id.
  • users.manage_permissions reads "Gerir acessos" in the catalog. Permission codes that were only aliases of a catalog code (roles.read, roles.write, permissions.read, permissions.write, tenants.read, tenants.write, users.write, users.delete, inventory.adjust, files.manage, tokens.manage, customers.view, products.view, admin.manage_integrations, admin.system_settings) are no longer accepted; use the catalog code.
  • Workflow action.notify_team and action.approval recipients: mode roles (names) is members with group_ids and policy_ids.
  • Invites can put the person in groups: POST /stores/{store_id}/invites takes group_ids besides policy_ids (at least one of the two; what the groups hold must be within the inviter's permissions wherever they reach); StoreInvite and InvitePreview return group_ids/group_names. New GET /stores/{store_id}/members/{user_id}/permissions (getMemberPermissions): a member's effective permission codes in the store.

2026-10-23: groups, policies and attachments

  • Access is managed at the organization, see team: GET, POST /tenants/{tenant_id}/groups, PATCH, DELETE .../groups/{group_id}, GET, PUT .../groups/{group_id}/members; GET, POST /tenants/{tenant_id}/policies (permission sets, rules and Cedar), PATCH, DELETE .../policies/{policy_id}, POST .../policies/validate, .../policies/dry-run and .../policies/draft?store_id=; GET, POST /tenants/{tenant_id}/attachments, PATCH, DELETE .../attachments/{attachment_id}; GET /tenants/{tenant_id}/people.
  • Removed: /stores/{store_id}/roles, .../roles/{role_id}, .../users/{user_id}/roles and the store-scoped /stores/{store_id}/policies*. Invites and service accounts take policy_ids (permission sets) instead of role_ids; StoreInvite returns policy_ids and policy_names. StoreAccess.roles, StoreMember.roles and ServiceAccount.roles keep their names and list the permission sets reaching the person; StoreMember.groups is new.
  • GET /stores/{store_id}/access/explain reasons are owner, grant:<policy>@<attachment>, policy:..., cedar:..., token_scope or engine_error, named "Policy (via Group)". GET /stores/{store_id}/roles/audit keeps its path and now lists group.*, policy.* and attachment.* changes too.

2026-10-23: store mailboxes

  • Store mailboxes, see channels: GET and POST /stores/{store_id}/mailboxes, POST .../mailboxes/test (checks a login without saving it), and PATCH and DELETE .../mailboxes/{mailbox_id}. A mailbox is a JMAP account the team reads and answers in Conversas; each one has its own e-mail channel. The password is write-only and is checked before it is stored (mailbox_unreachable); the same address twice answers mailbox_exists. Reading needs conversations.read, the rest conversations.manage.
  • Messages from a mailbox carry sender_verified in their e-mail payload (false for a sender that fails DKIM and DMARC).

2026-10-23: wishlists

  • Wishlists, see wishlists: GET and PATCH /storefront-api/{store_slug}/wishlist, GET .../wishlist/ids, and PUT and DELETE .../wishlist/items/{product_ref}. A visitor's list is found by the wishlist_id cookie or the X-Wishlist-Id header (handed back on the first save); signing in moves it into the customer's list. A list holds 200 products (wishlist_full); gift cards cannot be saved. In the SDK, wishlist.get, ids, save, remove and setAlerts, and catalog.notifyMe for the existing "Avise-me" endpoint.
  • A signed-in customer's saves arm back-in-stock and price-drop alerts (product_subscriptions with source wishlist); PATCH with alerts: false stops the ones the list made.
  • GET /stores/{store_id}/reports/wishlist (permission reports.read), also as wishlist in .../reports/export/{report} and in report schedules.
  • Store routes: /favoritos and routes.wishlist_url in themes; the page is served only by themes that ship a wishlist template.

2026-10-22: gift card sales

  • Gift cards sold in the online store, see gift cards and credit: GET and PUT /stores/{store_id}/products/{product_id}/gift-card flag a product as a gift card (each variant a face value) and POST /stores/{store_id}/credit/accounts/{account_id}/resend sends the e-mail again.
  • On the store cart, POST /storefront-api/{store_slug}/api/cart/gift-cards adds a card (one per line, with recipient, message, sender and deliver_on) and DELETE .../api/cart/gift-cards/{item_id} takes the line out. items[].gift_card carries that data. In the SDK, cart.addGiftCard and cart.removeGiftCard. A cart holds cards or goods, never both (gift_card_cart_mixed), with no discount or credit (gift_card_not_discountable, gift_card_order).
  • GET .../orders/{order_id}/credit returns gift_cards_sold, and CreditAccount gains order_id, sender_name, deliver_on, delivered_at and delivery_error.
  • An order of gift cards is left out of sales reports, the income statement and invoices (gift_card_order when trying to issue one).

2026-10-21: reports

  • Sales and BI reports, see reports: GET /stores/{store_id}/reports/sales, .../reports/products, .../reports/customers and .../reports/inventory (permission reports.read), built on the income statement's definitions (a refund stays with its order).
  • GET .../reports/export/{report} downloads any of them as CSV (sales, products, customers or inventory; lang=pt|en).
  • Scheduled e-mails at .../reports/schedules (list and create), .../reports/schedules/{schedule_id} (update and delete) and .../reports/schedules/{schedule_id}/send (send now), with the reports.manage permission.

2026-10-21: gift cards and credit

  • Store credit, see gift cards and credit: the admin API under /stores/{store_id}/credit (summary, accounts, gift-cards, accounts/{account_id}/adjust, disable and enable), GET and POST .../customers/{customer_id}/credit and GET .../orders/{order_id}/credit.
  • The customer side: GET .../customers/me/credit, and on the cart GET .../api/cart/credit, POST .../api/cart/credit/gift-cards, DELETE .../api/cart/credit/gift-cards/{account_id} and PUT .../api/cart/credit/wallet. In the SDK, cart.credit and customer.credit().
  • Gift card codes appear whole only when a card is issued and at POST .../credit/accounts/{account_id}/code (permission credit.write); lists and details carry only the last four characters.
  • POST .../returns/{return_id}/refund accepts destination (original or store_credit) and bonus_percent.
  • An order partly paid with credit gets a payment from the store_credit provider among its payment_intents, and refundOrder refunds the provider first and the credit after it.
  • New store_credit value in NfePaymentKind (now an extensible enum, like NotificationKind) and new permissions credit.read and credit.write. New error codes: gift_card_not_found, gift_card_disabled, gift_card_expired, gift_card_empty, wallet_empty and insufficient_balance.

2026-10-21: returns

  • Return requests (RMA), see returns: the admin API under /stores/{store_id}/returns (list, get, approve, reject, cancel, receive, refund, settings), GET .../orders/{order_id}/returnable and POST .../orders/{order_id}/returns.
  • The customer side, under .../customers/me: GET orders/{number}/returnable, POST orders/{number}/returns, GET returns, GET returns/{number} and POST returns/{number}/cancel.
  • New events returns.requested, returns.approved, returns.rejected, returns.received and returns.refunded.
  • New error codes include return_window_closed, returns_disabled, order_not_paid, order_not_delivered, quantity_exceeds_returnable and invalid_state.

2026-10-21: server-side ad tracking

  • PATCH .../marketing/config accepts tiktok_pixel_code, tiktok_access_token, tiktok_test_event_code, ga4_measurement_id and ga4_api_secret; GET shows tiktok_* and ga4_* as plain values or *_configured flags (secrets stay write-only).
  • GET .../marketing/conversions rows gain platforms: the TikTok and GA4 purchases and the refunds and corrections sent for the order, each with its status.
  • New GET .../marketing/conversions/health: server-side events of the last 7 days by platform and kind, counted sent, failed, skipped and pending.
  • New GET .../marketing/google-ads/campaigns: Google Ads campaigns with spend, clicks and Google's conversions next to the orders and revenue credited to each (see ad tracking).
  • POST .../marketing/conversions/{order_id}/resend also resends the TikTok and GA4 purchases.

2026-10-21: social fixes

  • POST .../social/ai/images also needs files.write (the images are saved to the file library), checked before anything is generated, and answers 503 images_unavailable when Gemini does not answer (worth retrying; 422 images_failed stays for a refusal).
  • Deleting an Instagram channel or Facebook Page keeps its post targets: pending ones fail ("conta removida") instead of disappearing.

2026-10-21: fixes from review

  • GET .../tickets/summary gains total, the tickets ever opened. Ticket views and counts now consider every open ticket before the list is cut at 300.
  • A chat started through the widget keeps only page metadata from attributes (page_url, page_title, referrer, language, locale, screen, product_id, utm_*); other keys are dropped.
  • AI actions with confirm run only after the customer writes again (see AI actions).

2026-10-21: AI actions

2026-10-21: help center

  • A public help center per workspace at /ajuda on its addresses (see help center): GET and PUT /stores/{store_id}/help-center (enabled, title, intro; answers url and public_articles).
  • Knowledge base articles gain public (shown in the help center once published) and slug (its address there, set the first time it is public).

2026-10-21: service workspaces

  • Stores gain kind: store (the default) or service, a workspace that only serves its customers (inbox, tickets, CRM) without catalog or storefront. Set it in POST /stores or switch it with PATCH /stores/{store_id}; nothing is deleted either way. GET /me/access carries it per store. A service workspace's storefront hosts serve nothing.
  • The setup checklist of a service workspace has its own steps: knowledge, tickets, whatsapp, integration, team and first_conversation.

2026-10-21: customer context

  • GET .../conversations/{conversation_id}/context answers who a conversation's customer is: the signed identity's context, what the workspace's context URL returned (cached 10 minutes, ?refresh=true asks again) and the ticket fields with their values. See customer context.
  • Workspace ticket fields (text, number, select, date, checkbox): GET and PUT .../ticket-fields. A ticket gains custom_fields, written by PATCH .../tickets/{conversation_id} (null clears one; 422 validation_failed for an unknown key or a wrong kind). Tickets also gain organization.
  • The inbox settings gain context_url, context_secret_set and rotate_context_secret; the integration secret appears once, as context_secret, in the answer that created it. Chat identity tokens signed with it are accepted.

2026-10-20: tickets

  • Tickets in any workspace (tag Tickets): a conversation the team commits to answer by a deadline, with a number per workspace, subject, category and the conversation's priority. GET .../tickets lists them by view (open, waiting_us, breached, mine, unassigned, waiting_customer, resolved), late first; GET .../tickets/summary counts them and gives the month's first reply times and rating; GET/PATCH .../tickets/{conversation_id} reads and changes one; POST .../conversations/{conversation_id}/ticket turns a conversation into one.
  • The inbox settings gain tickets: mode (off, manual, all: every conversation a customer starts becomes a ticket) and the first-reply targets by priority (hours for urgent and high, business days for normal and low).

2026-10-19: Asaas for cards

  • Stores can connect Asaas (code: "asaas") as their card gateway. The shopper types the card on Asaas's page: POST .../payments/intents with method: "card" takes no card_token for such a store and answers next_action: {"type": "redirect", "url"}; send the shopper there, and they come back to the order page. The same page is answered again until it is paid or the installments change. Such a card payment needs the payer's CPF/CNPJ (422 document_required otherwise), as Pix does.

2026-10-19: AI error statuses

  • POST .../social/ai/images answers 429 images_quota when Gemini refuses on quota (the key's project needs billing; the free tier makes no images) and 422 images_failed for Gemini's other refusals, instead of 502. Caption and plan failures (assistant_failed) are 503 instead of 502.

2026-10-19: comments on ads

  • Comments on ads come in too: Facebook ad posts (Ads Manager creatives and boosts, which never show on the Page) and the Instagram media of each running ad in a connected ad account. SocialComment.is_ad marks them; GET .../social/comments takes is_ad=true|false.

2026-10-19: AI for social posts

  • GET .../social/ai says which helpers this server offers (text, images).
  • POST .../social/ai/caption writes a caption in the brand's voice from a brief, products or a draft, with hashtags (as the first comment for Instagram). Nothing is saved.
  • POST .../social/ai/images makes 1 to 4 images with Gemini (optionally keeping the product of a library photo), saved to the library; 503 images_not_configured without a Gemini key.
  • POST .../social/ai/plan plans up to 14 posts over up to 31 days and saves them as dated drafts with captions and an image idea in the new post field notes.

2026-10-19: ads

  • Meta ad accounts through Facebook Login (new permission marketing.ads, for anything that spends): GET .../social/ads/accounts, POST .../social/ads/authorize, DELETE .../social/ads/accounts/{account_id}.
  • GET .../social/ads/campaigns (account_id, days): each campaign's spend, reach, clicks, CTR, CPC and Meta purchases, next to the paid orders our attribution credits to it, ROAS, and flag: spending_without_sales.
  • PATCH .../social/ads/campaigns/{campaign_id} pauses, resumes or changes the daily budget (409 budget_per_adset when it is spread over ad sets).
  • POST .../social/ads/boosts boosts a published post (engagement or traffic, budget, days, audience); it starts right away. Meta refusals answer 502 meta_refused and leave nothing running.

2026-10-19: social insights

  • GET .../social/insights (days 7 to 90): followers and their change, daily reach, views and interactions, the window's posts with their numbers, and paid orders our last-touch attribution credits to Instagram and Facebook (organic and ads). POST .../social/insights/refresh asks Meta now; otherwise the numbers refresh every three hours.

2026-10-19: comments

  • Comments on the store's Instagram and Facebook posts: GET .../social/comments (status=open|done, network, account_id; each with its replies), GET .../social/comments/counts, PATCH .../social/comments/{comment_id} (hidden, status), DELETE .../social/comments/{comment_id}, POST .../reply, POST .../private-reply (Instagram Direct, once per comment within 7 days) and POST .../suggest (an AI draft). Calls Meta refuses answer 502 meta_refused with Meta's message.

2026-10-18: social publishing

  • New tag Social: the accounts posts go to and posts written, reviewed and scheduled in Mobiari, then published on Instagram and Facebook.
  • GET .../social/accounts lists Instagram accounts and Facebook Pages with can_publish and missing_permissions; POST .../social/instagram/authorize and POST .../social/facebook/authorize return the login address; DELETE .../social/facebook-pages/{page_id} disconnects a Page.
  • Posts: GET/POST .../social/posts, GET/PATCH/DELETE .../social/posts/{post_id}, POST .../submit (send for review), POST .../schedule (approve and publish at scheduled_at, now when omitted; retries failed accounts) and POST .../return (back to draft with a note). A post that cannot go out answers 422 post_invalid with details.problems; one being published answers 409 post_not_editable.
  • New permission marketing.publish (approve, schedule and publish, connect accounts). Roles that had marketing.write were given it.
  • Every message to a customer passes a consent check by purpose (transactional, feedback, marketing). A WhatsApp template send in a conversation answers 422 marketing_consent_required (a MARKETING template to someone without a WhatsApp opt-in) or contact_opted_out.
  • POST .../customers/{customer_id}/consent takes a note (how the customer agreed), required to record an opt-in (422 consent_note_required).
  • New: GET .../consent/overview, GET .../consent/ledger (format=csv), GET/POST/DELETE .../consent/suppressions, GET .../privacy-requests, PATCH .../privacy-requests/{request_id} and POST .../conversations/{conversation_id}/consent-request.
  • Storefront: the cart contact takes email_opt_in and whatsapp_opt_in; PATCH .../customers/me takes them too; new GET .../customers/me/data and GET/POST .../customers/me/privacy-requests.
  • New notification kind customers.privacy_request.

2026-10-14: notifications

  • Each member now has their own notifications instead of reading the store's send log. New: GET /stores/{store_id}/me/notifications (keyset-paged, ?unread=, ?category=), GET .../me/notifications/summary (unread, per category, latest_unread_at), POST .../me/notifications/read (ids, category or all, optional until) and POST .../me/notifications/unread.
  • One preference grid per member and store, kind by channel (in_app, push, email, whatsapp): GET and PATCH .../me/notification-preferences. GET/PUT .../me/push-preferences keep working as its push column.
  • Removed: GET .../notification-inbox, .../notification-inbox/unread-count, .../notification-inbox/{log_id}/read, .../notification-inbox/mark-all-read, GET/PUT .../me/platform-notifications and GET/PUT .../alert-subscriptions[/{user_id}]. Their choices moved to the preference grid; e-mail goes to the account's address and WhatsApp to the profile phone. notification-logs lists sends only (customer messages and team e-mail/WhatsApp notifications).
  • New kinds: customers.address_changed, inventory.out_of_stock, tasks.assigned, tasks.due, customers.note_mention, fiscal.document_rejected, purchasing.documents_received, documents.expiring, signatures.updated, workflows.run_failed. Low stock now comes from every stock movement, not only manual adjustments.
  • Push: data carries link (and customer_id), collapse keys are per subject (order-<id>: "paid" replaces "new"), the badge is the unread notification count, and a fourth Android channel general exists. See push notifications.

2026-10-05: storefront SDK 0.3

  • @mobiari/storefront 0.3: createClient typed from this API's OpenAPI document, with cart methods (cart.get/add/set/remove/saveContact/ quoteFreight/selectFreight, keeping X-Cart-Id for headless sites) and customer methods; data-mobiari="phone|cpf|cnpj|document|cep|email" on any input for the mask and native validity from the platform's rules. Stores load the SDK on pages using its elements or data-mobiari.
  • New guide: Themes and the storefront SDK.

2026-10-05: customer portal

  • Sign-in by one-time code: POST /storefront-api/{store_slug}/customers/code (email, or phone by WhatsApp when the platform has it; purpose: reset for a password reset) and POST .../customers/code/verify. New POST .../customers/password/reset and POST .../customers/logout.
  • Sessions: an HttpOnly, host-only cookie (mobiari_session) on the store's own domain, set by code sign-in, password sign-in and reset. token in the answer still works as a bearer for headless sites. Cookie-signed writes must come from the store's own pages (Origin).
  • PATCH .../customers/me (name, phone), GET .../customers/me/orders/{number} (items with their stage, shipments with tracking, NF-e, cartas de correção), GET .../customers/me/orders/{number}/danfe, GET .../customers/me/orders/{number}/corrections/{sequence}/pdf and GET .../customers/me/products.
  • Themes: /conta, /conta/pedidos, /conta/pedidos/{number}, /conta/produtos and /conta/entrar are rendered by the platform inside the theme's layout; customer is set on every page for a signed-in visitor; routes.account_url is /conta.

2026-10-05: store forms and the storefront SDK

  • Store forms: GET/POST /stores/{store_id}/forms, GET/PUT/DELETE /stores/{store_id}/forms/{form_id}, GET /stores/{store_id}/forms/{form_id}/submissions and PATCH/DELETE /stores/{store_id}/form-submissions/{submission_id}. A form has typed fields (text, textarea, email, phone, cpf, cnpj, document, cep, number, date, select, radio, checkboxes, consent), notification e-mails and customer tags.
  • Storefront: GET/POST /storefront-api/{store_slug}/forms/{form_slug}. Values are validated by type and stored canonical; 422 validation_failed lists details.fields and details.codes. A plain HTML post works too and redirects back. Per-IP limit, honeypot (_hp) and Cloudflare Turnstile (turnstile_token) when enabled.
  • Themes get forms (by slug) and the built-in snippet {% render 'mobiari-form', form: forms.contato %}.
  • @mobiari/storefront (sdk/storefront): validation, validateForm, createClient and the <mobiari-form> element. Stores serve the browser build at /_/sdk/storefront.js, added to pages that use it.

2026-10-05: one set of rules for CPF, CNPJ, CEP, phone and e-mail

  • The storefront and the admin validate Brazilian data with one shared set of rules: CPF/CNPJ check digits (alphanumeric CNPJ included), CEP, UF, e-mail, and phones by real DDD (mobile 9 + 8 digits, landline 8 digits) or E.164 abroad. Phones are stored as E.164 (+5511987654321).
  • POST /storefront-api/{store_slug}/api/cart/contact stores valid values in canonical form and returns invalid_fields (field → code, message) for the ones to fix; invalid values are still kept as typed.
  • Customer registration refuses an invalid e-mail or phone (400 with code, e.g. email_invalid, phone_ddd); e-mail form posts (/_/f) answer 422 with field and code.

2026-10-05: where goods leave from, and pickups

  • PUT /stores/{store_id}/fiscal/dispatch-place sets where the store's goods leave from when it is not the emitter's address: who holds the place (CPF/CNPJ, name) and its address. The profile returns it as dispatch_place. The NF-e of shipped and picked-up orders then carries it as retirada (draft field pickup_place).
  • Pickup orders go out with freight mode 4 (the customer's own vehicle) and volumes from the pickup shipment's boxes; counter sales keep mode 9.

2026-10-05: ship day with Central do Frete

  • Central do Frete quotes now stay valid as long as Central do Frete says (expiration, five days), instead of one hour: quote.expires_at on a shipment and checkout quotes follow it.
  • POST .../shipments/{shipment_id}/quote declares the order total (what the NF-e will be) when there is no NF-e yet, and comes back with an option already chosen: the carrier the order's NF-e names, else the one chosen before, else the customer's at checkout. Choosing an option also sets the shipment's carrier_name.
  • New GET .../shipments/{shipment_id}/invoice-check: the order's NF-e against the chosen carrier (problems, suggested_correction, correction_registered, the note's and checkout's carriers).

2026-10-05: cartas de correção (CC-e)

  • GET/POST /stores/{store_id}/orders/{order_id}/invoice/corrections list and issue cartas de correção (event 110110) for the order's NF-e, the one Mobiari emitted or one attached from another system under the store's CNPJ. The body is { "correction": "..." } (15 to 1000 characters; it replaces earlier cartas). Numbering continues from the note's events at SEFAZ. New error codes: order_without_nfe, fiscal_invalid_correction, fiscal_correction_other_emitter, fiscal_correction_cancelled_nfe, fiscal_correction_nfe_not_found, fiscal_correction_limit, fiscal_correction_in_flight, fiscal_correction_rejected.
  • POST /stores/{store_id}/fiscal/corrections/{correction_id}/refresh settles one whose answer was lost (unknown); GET .../pdf prints it, GET .../xml downloads the procEventoNFe.
  • POST .../shipments/{shipment_id}/book answers 422 nfe_freight_mismatch when the NF-e lacks what Central do Frete requires, with details.problems and details.suggested_correction. A carta registered for the note counts as cce_issued.

2026-10-05: shipments own their boxes

Breaking, by exception. No integration called these routes yet, so the shipment API was reshaped in place instead of in a new version:

  • Shipments moved to the top level: GET/POST /stores/{store_id}/shipments (list with order_id, status, boxes_state, freight_provider_code filters; create takes order_id in the body), GET/PATCH/DELETE /stores/{store_id}/shipments/{shipment_id}. The order-scoped /orders/{order_id}/shipments... routes are gone; /orders/{order_id}/unshipped-items and /orders/{order_id}/nfe stay.
  • A shipment owns its boxes: boxes[] (sizes in millimetres, weights in grams, what is inside each, with inside for items that ride in another box), boxes_state (computed, edited, packed, frozen), totals (box_count, gross_weight_g, net_weight_g, volume_mm3, cubed_weight_g). New: PUT .../shipments/{id}/lines (was /items; edited or packed boxes need reset_boxes), PUT .../boxes, POST .../boxes/recompute, POST .../pack, GET .../labels.pdf, GET .../packing-list.pdf.
  • Carrier flow on the saved boxes: POST .../quote no longer takes volumes or invoice_amount (optional destination_postal_code, declared_value_cents, recipient) and keeps the quote on the shipment; POST .../quote/select chooses an option; POST .../book (was /generate) books it and freezes the boxes, answering 409 quote_outdated when the boxes changed since the quote.
  • Shipping profiles replace box assignment: GET/PUT /stores/{store_id}/variants/{variant_id}/shipping-profile and /products/{product_id}/shipping-profile (modes own_boxes, from_parts, inside, loose, none); POST /stores/{store_id}/shipping/plan packs any lines without saving. The /variants/{variant_id}/shipping-boxes routes are gone. listFreightPackages rows carry mode, profile_level, needs_review, boxes and issues (PlanIssue) instead of packages.
  • GET/PUT /stores/{store_id}/shipping/settings: origin address (wins over the carrier integration's config), cubing factor, default carton. Catalog cartons gain item_id (stocked cartons are used up as boxes leave).
  • Checkout quote options carry boxes (count, weight, volume quoted). Paid orders get a draft shipment automatically. NF-e volumes (qVol, weights) come from the shipment's boxes.

2026-10-04: recipes all the way down, made items, combos

Additive. Recipes nest, items can be made from items, and a product can be sold as a bundle of other products:

  • Item recipes: GET/PUT/DELETE /stores/{store_id}/items/{item_id}/recipe/{component_item_id} define what one base unit of an item is made from, in base units (decimals allowed) or packs; the item becomes made. A component whose own recipe reaches the item is refused (422 bom_cycle). Variant recipe lines (setVariantRecipeLine) now accept decimal quantity/packs and items with no variant behind them; an item that mirrors a variant still counts whole units (422 whole_units_required).
  • Breakdown: GET .../variants/{variant_id}/breakdown and GET .../items/{item_id}/breakdown return the full tree: every level's items with quantity per unit of the root, stock, what each could still supply, cost (own or summed from its components) and, for sold parts, their price. components_price_cents is what a combo's parts would cost bought separately, next to the combo's own price_cents.
  • Production runs: POST .../items/{item_id}/production-runs, GET .../item-production-runs, GET/PATCH .../item-production-runs/{run_id}. Starting a run takes the components (build_consume, reference_type: "production_run"), ready puts the finished units in stock and gives them to any order waiting for the item, going back returns everything.
  • Everything that holds or moves stock follows the tree: availability, reservations, consumption on shipping and build jobs walk into an item's recipe when its finished units run out (a kit sold inside a combo takes its parts; a made box takes its foam and fabric). Holds can name an item directly (inventory_reservations.item_id), so native items (no variant) are held and released like everything else, and POST .../items/{item_id}/stock/adjust works for them.
  • Combos: a bill-of-materials line may be another sold product; it keeps its price and is not flagged as a part. Cycle checks on setKitBomLine and setProductBaseLine follow the whole tree. The storefront reports a built product as available when its parts could make it, not only when a finished unit is on the shelf; freight packaging follows the same recipe (per-item override of base lines, mirrored items through their variant's recipe).
  • listVariantRecipe now returns the effective recipe (base lines included) with kind and source per line; ItemDetail gains used_in_items and recipe_lines; MovementReferenceType gains production_run.

2026-10-03: stock moves with the goods

Additive. Physical stock now follows every sale, every build and every cancellation, and every held unit has a reservation behind it:

  • Shipping consumes stock. When a line's units ship (a shipment in ordered, collected, in_transit, shipped or delivered), or the order is marked fulfilled by any path, those units leave on_hand once: finished units the line holds first, otherwise every part of the kit's recipe (its own holds, then the shelf). order_items carry stock_consumed_qty. Simple products are consumed too, which they never were. A shortage on the shelf is written into the movement's note instead of leaving a phantom unit.
  • Production moves stock. POST .../build-jobs/{job_id}/start takes the parts (build_consume movements, reference_type: "build_job"), status: "ready" puts the finished unit in stock held for its order (build_produce), going back to queued or in_progress returns them, and cancelling a built job frees its unit for sale. New 409 build_job_shipped on updateBuildJob when the unit already left. The job's metadata_json.stock records what it took and made.
  • A kit's finished units count. available, buildable and the storefront availability of a product built from parts now add its own free units (built ahead, or left by a cancelled order) to what the parts can make, orders take them before parts, and useStockForOrderItem accepts such lines (stock_can_cover reports them); 409 line_has_parts is gone.
  • Holds have rows. Every reservation, simple products included, is a row in GET .../reservations with its order line, and releases give back exactly what was held. New units (a receipt, a count, a positive adjustment, a cancelled order) go to the open orders waiting for them, oldest first.
  • Fixes: a failed payment intent only releases an order it actually cancelled; stock count sheets leave kits out (409 logical_stock_readonly on receivePurchaseOrder for a kit line too); the stock list's buildable floors instead of rounding; the overview's out-of-stock counts leave kits out; required_open on GET .../components is the same figure as GET .../stock/parts (queued builds of paid orders beyond what they hold); items' available floors at zero; the ledger records the change that actually happened when it clamps at zero.

2026-10-03: authored CMS schemas and validation

Additive. Content models no longer need a git push: POST /stores/{store_id}/cms/collections defines a collection (slug, name, typed field schema), PATCH .../collections/{collection_slug} renames, replaces the schema or archives, answering how many documents stop validating. Documents validate on every write (422 invalid_document names the field): text, number, boolean, date, color, richtext, image (a library image of the store), reference (product, collection, page, document or file of the store) and list types; unknown fields are rejected. Themes resolve library images through the existing media expansion, and drafts can pull them in with POST .../deployments/{deployment_id}/files/from-library (public library files only).

2026-10-03: GitHub theme pipeline removed

Breaking (acknowledged). Themes are authored as AI drafts, imports and exports now — the GitHub App pipeline is gone:

  • Removed: GET /stores/{store_id}/github/installation, GET /stores/{store_id}/github/connect, GET /stores/{store_id}/github/repos, POST|DELETE /stores/{store_id}/github/link, GET /stores/{store_id}/github/export, GET /github/setup-callback, POST /webhooks/github. Use POST .../storefront/deployments/draft to start a theme, .../deployments/import to bring files in, and .../deployments/{id}/export to take them out.
  • Feedback comments stay; only the GitHub check-run/PR-comment sync is gone. Historical deployments keep their SHAs, PR numbers and preview links.

2026-10-03: AI theme drafts

Additive. New in the Storefront tag, so the assistant (or a theme editor) can author storefront designs as deployments instead of git pushes:

  • POST /stores/{store_id}/storefront/deployments/draft: snapshots the live deployment's files (or the default theme) into a new draft deployment.
  • PUT .../deployments/{deployment_id}/files: writes up to 50 theme files per call. Paths must stay inside the theme, Liquid templates must parse with the production parser, JSON must parse; the first problem fails the call with 422 invalid_draft_files and nothing is written.
  • GET .../files lists paths with sizes; GET .../file?path= reads one file's full content.
  • POST .../deployments/{deployment_id}/ready: revalidates everything and flips the draft to ready (422 draft_not_ready names every problem), after which preview hosts and promote treat it like any build.
  • StorefrontDeploymentStatus gains draft, StorefrontDeploymentTrigger gains ai; both are extensible sets, so clients must tolerate new values.
  • Draft file reads page through line windows (offset/limit, 400 lines by default), and writes accept anchored edits (each old_string must occur exactly once) so large files change without resending them whole.
  • POST .../deployments/{deployment_id}/files/assets uploads one binary image or font (multipart file + theme path under /assets/, 5 MiB max); text files keep using the files endpoint. The ready check skips revalidating uploaded binaries.
  • GET .../deployments/{deployment_id}/export downloads a deployment as a zip (relative paths); POST .../deployments/import takes such a zip back in as a new manual draft, sanitized, capped and validated like written files (422 names the problem, nothing created).

2026-10-02: pickup on counter sales

Additive. createManualSale now records retirada alongside delivery:

  • ManualSaleFreight accepts pickup_location_id for a store location with pickup enabled. A pickup sale needs no destination_postal_code (now optional) and shipping_cents is the operator-typed fee. A hand-typed other_carrier price with a carrier name stays store-managed instead of waiting for a carrier label.
  • Pickup orders are created with fulfillment_method: pickup, the location snapshot, and a draft pickup shipment holding every unit, so marking it delivered fulfills the order like any delivery.
  • ManualSaleResponse answers fulfillment_method and pickup_location_id. New 422 invalid_pickup_location for a location that does not belong to the store or does not accept pickups.

2026-09-30: freight walks item recipes

Additive. listFreightPackages and getFreightCoverage now resolve a variant through its item recipes instead of the legacy one-level BOM:

  • Made items expand recursively; an item with ships_as_package ships as one volume per unit and its children are not expanded. Leaf items ship as their own packages with their own size and weight.
  • New FreightIssueCode values: recipe_cycle when a recipe points back to itself, and fractional_package_count when a package quantity is not whole (freight rounds up rather than underquoting).
  • PackageSource part is now a warehouse item; source_id is the item id. WeightOrigin own is the item's recorded weight.

Variants without recipes still use boxes, own size, or the placeholder, unchanged.

2026-09-30: purchase and receive item packs

Additive. Purchase-order lines can now keep the supplier's purchase unit:

  • PurchaseOrderLineInput accepts either quantity_ordered in base units, or pack_id with packs_ordered. unit_cost_cents is the cost of the chosen purchase unit. Pack lines snapshot the pack name, conversion and supplier SKU, while quantity_ordered in responses remains the converted base-unit quantity used by incoming-stock projections.
  • PurchaseReceiveLine accepts either quantity in base units or packs. Pack receipts are converted through the order's snapshot before the stock movement is written. Receipt and order responses expose both forms.
  • Invalid quantity forms answer 422 purchase_quantity_ambiguous; a pack from another item answers 422 pack_not_found; a pack conversion that is not a whole stock unit answers 422 pack_not_whole_units.

Existing purchase orders remain base-unit orders and need no migration by a client.

2026-09-30: items you can write

Additive. New in the Items tag, so a client can work with items alone:

  • POST /stores/{store_id}/items: creates a part with its base_unit, its packs and its opening stock (initial_on_hand at location_id, written to the ledger as an opening_balance count) in one call. A SKU already in use answers 409 sku_taken.
  • PATCH /stores/{store_id}/items/{item_id} now also takes name, sku, cost_cents, reorder_point, reorder_quantity, allow_backorder, weight_grams and the length_cm, width_cm, height_cm size.
  • POST /stores/{store_id}/items/{item_id}/stock/adjust: changes the units on hand at one location, in base units (delta, set_to) or in whole packs of pack_id (delta_packs, set_to_packs: 2 boxes of 4 is +8 un). Exactly one of the four; the pack forms without a pack_id answer 422 pack_required, and a count that is not a whole number of units answers 422 pack_not_whole_units. Same ledger entry, webhooks and refusals as adjustVariantStock (409 insufficient_stock, multiple_locations).
  • GET /stores/{store_id}/variants/{variant_id}/recipe: the items one unit of a variant is built from, each with the quantity in base units and, when the line was written in a pack, in packs, plus how many units of the variant that item alone could supply (supports_units).
  • PUT and DELETE on /stores/{store_id}/variants/{variant_id}/recipe/{item_id}: set a line in base units (quantity) or in whole packs (packs of pack_id); the line remembers the pack, and a later edit in units drops it. 422 ambiguous_quantity when both are sent; 422 bom_cycle when the item would depend on itself.

All of these write through the variant, stock and BOM endpoints they stand in for, so the two views stay equal; items/reconciliation shows it.

2026-09-29: items stay in step

Additive. New in the Items tag:

  • GET /stores/{store_id}/items/reconciliation: compares the item tables with the variants, stock, movement history and recipes for the store (item count, stock rows, units on hand and reserved, movements and their units, recipe lines). Every check should be ok; one that is not names what drifted, and POST /stores/{store_id}/items/sync re-copies it.

Items now follow every write to stock, the movement history, recipes and the component variant's own fields as it happens, instead of at the next sync. Stock, reservations, purchasing and freight still work on variants.

2026-09-29: items

Additive. New in the Items tag, the first step of separating what the warehouse holds from what is sold:

  • GET /stores/{store_id}/items and GET /stores/{store_id}/items/{item_id}: purchased parts and made sub-assemblies with a base_unit, stock in that unit (on_hand, reserved, available), stock read as whole packs (on_hand_packs: 42 un of a 4-pack is 10 packs and 2 un), and where each item is used. Every component variant is an item; the fields that still live on the variant (name, cost, supplier, reorder point, size, weight) follow it, and stock and usage are read live.
  • PATCH /stores/{store_id}/items/{item_id}: kind (purchased, made), tracking (counted, consumable), base_unit, description and ships_as_package.
  • POST, PATCH and DELETE on /stores/{store_id}/items/{item_id}/packs: named conversions to the base unit ("Caixa c/ 4" = 4 un). A duplicate name answers 409 pack_name_taken.
  • POST /stores/{store_id}/items/sync: re-copies the store's stock, movement history and recipes into the item tables. Reads do not need it.

Stock, reservations, purchasing and freight still work on variants; they move to items in later releases.

2026-09-29: freight audit

Additive. New in the Freight tag:

  • GET /stores/{store_id}/freight/packages: every variant with the packages one unit sends to Central do Frete (packages, each with its source: part, box, variant or default; size in cm, weight in kg, the defaulted fields and the weight_origin), a status (complete, estimated, not_shipped) and the issues behind it. Filters: status, role (product, part), product_id, search, include_inactive. The worst rows come first.
  • GET /stores/{store_id}/freight/coverage: how many variants are complete, estimated or not shipped, built from parts, and with boxes.
  • PATCH /stores/{store_id}/variants/{variant_id}/shipping: sets a variant's own length_cm, width_cm, height_cm and weight_grams (null clears one) and returns the recomputed row.

Changed: quotes and the cart preview build their volumes with the same resolver these endpoints read, so what the audit shows is what a quote sends. Behaviour that differs from before:

  • A variant without its own weight uses the product's weight_grams, then its shipping_weight text, before the 1 kg default.
  • A shipping box counts quantity boxes per unit, and the product weight is spread over them instead of the default weight.
  • Digital products (is_physical: false) ship nothing, and a cart of only digital items answers no physical items to ship.
  • A weight of zero counts as unknown.

2026-09-29: stock by product

Additive. New in the Inventory tag:

  • GET /stores/{store_id}/stock/products: stock grouped by product, each with its variants. For products built from parts, every variant lists its parts with quantity_required, shelf stock, demand (what the queued builds of paid orders still need), missing and incoming, and the variant's buildable and limiting_part. status filters by in_stock, low, out or missing_parts; search matches the product title, a variant title or a SKU.
  • GET /stores/{store_id}/stock/parts: the parts themselves, shortages first, with the same demand figures and used_in.
  • GET /stores/{store_id}/stock: search also matches the product title.

Fixed: a build job's component reserved, and a timeline part's reserved and missing, counted every reservation on the order line. When part of the line was served from stock, the queued build looked covered when it was short. They now count only the build's share.

2026-09-29: production orders

Additive. New in the Manufacturing tag:

  • GET /stores/{store_id}/production-orders: one production order per customer order with anything to build, numbered like the order. Each has a stage (waiting_parts, queued, in_progress, ready, shipped, cancelled: the least advanced of its lines), promised_at, late, its lines and the parts its queued builds are missing. Lists the ones in production plus those shipped or cancelled in the last done_days days (default 7); order_id finds one order's.
  • GET /stores/{store_id}/production-orders/{production_order_id}: one production order with its build jobs, the parts its queued builds need (with what purchase orders are bringing) and its activity feed. Build job changes are recorded in the feed with who made them.
  • PATCH /stores/{store_id}/production-orders/{production_order_id}: sets the date promised for the whole order (promised_at), or null to follow its latest job target.
  • POST /stores/{store_id}/production-orders/{production_order_id}/comments: adds an internal note to the feed. invalid_comment (422) when empty or over 4000 characters.

2026-09-29: delivered counts

Additive:

  • Orders: delivered_units on each row of GET /stores/{store_id}/orders and delivered_quantity on each order line: units that a delivered shipment brought to the customer. fulfillment_status alone cannot say this, since an order closed by hand is fulfilled with nothing delivered.
  • Build jobs: line_shipped, true once every unit of the job's order line has left in a shipment or the order is fulfilled.

2026-09-29: order timeline

Additive. New in the Orders tag:

  • GET /stores/{store_id}/orders/{order_id}/timeline: where each line of an order stands. Every line gets stages (ordered, parts and production for made-to-order lines, shipped, delivered), each done, current, blocked or upcoming, with at, expected_at and late. Also the line's build jobs, the parts its queued builds are missing with the purchase orders bringing them, and free stock.
  • POST /stores/{store_id}/orders/{order_id}/items/{item_id}/use-stock: for a made-to-order line whose product is in stock after all, holds free stock for the order and takes those units off its queued build jobs. line_has_parts (409) for products built from parts.

Build jobs now close when their goods leave by any route: a shipment, the order marked fulfilled, or the assistant. Before, only a shipment saved with its items closed them, so GET /stores/{store_id}/build-jobs could list jobs of orders long delivered.

2026-09-29: new token prefixes

Additive. New tokens carry the product's prefix; old ones keep working:

  • Store API tokens now start with mobi_st_ (was bod_). Existing bod_ tokens are accepted until they are rotated or revoked; rotating one returns a mobi_st_ value.
  • Refresh tokens now start with mobi_rt_ (was bpr_). A bpr_ token still trades at POST /v1/auth/refresh, for a mobi_rt_ one.

Treat tokens as opaque: don't validate them by prefix or length.

2026-09-29: ask the documentation

Additive. New tag Help:

  • POST /docs/ask: answers a question from the documentation, streamed as an AI SDK UI message stream (text/event-stream) with the pages it cites as source-url parts. Public, no token; 20 questions per hour per visitor, rate_limited (429) beyond that. The docs site's Ask AI panel uses it.

2026-09-29: plans, billing and setup

Additive. Mobiari is now sold in self-serve plans; these endpoints expose the organization's subscription.

  • New tag Billing:
    • GET /billing/plans: the plans on sale with prices (BRL cents) and limits. Public, no token.
    • GET /tenants/{tenant_id}/subscription: plan, status (trialing, active, past_due, suspended, canceled), trial end, paid period, the open invoice and usage against the plan's limits.
    • PUT /tenants/{tenant_id}/subscription: change plan or billing cycle (owner only; usage_exceeds_plan when the organization would not fit).
    • POST /tenants/{tenant_id}/subscription/cancel, .../resume, .../pay (issues or returns the invoice to pay, with a Pix "copia e cola").
    • GET /tenants/{tenant_id}/invoices: a Page of invoices.
  • New GET /stores/{store_id}/onboarding: the store's setup checklist (products, payments, freight, brand, WhatsApp, team, custom domain, first order), read from its data.
  • POST /tenants accepts an optional plan_code (the plan to try). A new organization starts a 14-day trial and defaults to BRL, America/Sao_Paulo and the caller's language.
  • New error codes, status 402: plan_limit_reached (with limit, max, used, plan in details) from POST /stores and POST /stores/{store_id}/invites; subscription_inactive from those and from the assistant chat when the subscription is suspended or canceled.
  • GET /stores/{store_id}/assistant/usage: cap is now the plan's monthly limit per store instead of a fixed 500.
  • Storefront themes: new routes.products_url (prefix of product pages), and shop.currency is the store's currency (BRL) so | money prints R$ 19,90.

v1 (2026-10)

The API gets a version, a single error shape, a single list shape and refreshable sessions. The unversioned paths keep answering during the transition, but they serve the new behaviour: the changes below reach an existing integration whether or not it moves to /v1.

Migrating

  • Point your client at https://api.mobiari.com/v1 and switch every moved path to its new one.
  • Branch on the error code, not on the error text; expect 422 validation_failed where you handled 400.
  • Treat any 2xx as success: many creates now answer 201 and many actions 204 with no body.
  • Read lists from the Page envelope (data, next_cursor) and pass include_total=true where you show a total.
  • Send an Idempotency-Key on POSTs you retry, such as orders, refunds and messages.
  • If you sign in with a password, keep the refresh_token and call POST /v1/auth/refresh when the access token expires. Store API tokens (bod_…) need no change.
  • Accept enum values you do not know: many string fields became enums in this version, and new values can appear without a new version.

Versioned base path

  • The API lives at https://api.mobiari.com/v1. The Storefront API is under /v1/storefront-api/....
  • The unversioned paths still answer, with the new behaviour, plus Deprecation, Link: <…>; rel="successor-version" and, once a date is set, Sunset headers. See Deprecation.
  • An unknown path under /v1 returns 404 route_not_found.
  • Two OpenAPI documents describe the documented surface: admin.json and storefront.json. The API reference is generated from them.

Errors have a code

  • Every error response is now {"error": "<message>", "code": "<stable_code>", "details"?: {...}}.
  • code is new and stable: branch on it. error keeps the message, so clients that read error keep working, but its wording may change.
  • Error bodies that used other shapes ({"message": …}, {"ok": false, "message": …}, plain text, bare status codes) now use this one. Any extra fields they carried moved under details.
  • Validation failures are 422 validation_failed with per-field messages in details.fields.

See Errors.

One list envelope: Page

  • Lists return {"data": [...], "has_more": bool, "next_cursor": string | null}, plus total when you pass include_total=true.
  • This replaces bare arrays and the per-endpoint envelopes such as {"orders": [...], "total", "limit", "offset"} and {"products": [...], "total", "page"}.
  • Paging uses limit (1 to 200, default 50) and an opaque cursor; offset remains for jumping to a page, in place of page parameters.
  • total is no longer computed by default.

See Pagination.

Idempotency keys

  • New: send Idempotency-Key on a POST to make retries safe. Replays within 24 hours return the original response with Idempotent-Replayed: true.
  • New error codes: 409 idempotency_request_in_progress, 422 idempotency_key_reused.

See Idempotency.

Rate limits

  • New: per-caller budgets per one-minute window (1200 requests/minute authenticated, 300 anonymous by default), reported in RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Over budget: 429 rate_limited with Retry-After.

See Rate limits.

Sessions with refresh tokens

  • New: POST /v1/auth/login returns token, refresh_token (bpr_…), expires_in and token_type, or a two-factor challenge, told apart by status. It supersedes POST /login, whose token lasted 24 hours and could not be renewed.
  • New: POST /v1/auth/refresh trades a refresh token for a new pair. Refresh tokens rotate on every use; reusing one revokes the whole session (401 refresh_token_reused).
  • New: POST /v1/auth/logout, GET /v1/me/sessions and DELETE /v1/me/sessions/{session_id}.
  • Store API tokens (bod_…) are unchanged.

See Authentication.

Unchanged

  • Outbound webhook payloads and signatures.
  • Money in integer cents, timestamps in RFC 3339 UTC, UUID ids.

Endpoint-level changes

What changes per area, grouped like the API reference. Paths are relative to the base URL and link to their reference page.

  • Moved paths are written old → new. Where a line says "old path still answers", the old unversioned path keeps working with the new behaviour, but it has no /v1 form and sends no Deprecation header: switch to the new path.
  • Page marks a list that now answers the Page envelope; its old shape follows when it was not a bare array.
  • Across every area, validation failures that were 400 (often plain text) are now 422 validation_failed. Only other changes are listed.

Auth

  • POST /register → POST /auth/register, answers 201. Old path still answers.
  • POST /login → POST /auth/login. Old path still answers, with the new response.
  • Sign-in answers {"status": "authenticated" | "two_factor_required", ...} and adds refresh_token, token_type, expires_in, refresh_token_expires_in and session_id.
  • Wrong e-mail or password: 401 invalid_credentials (was 400 plain text).
  • POST /verify-totp → POST /auth/2fa/totp/verify. Old path still answers. It accepts only a sign-in challenge token (401 invalid_challenge) and no longer fails with a 500 on a bad one.
  • Two-factor and one-time-code errors are 401 or 400 with codes such as invalid_code, no_pending_code and too_many_attempts (send code, verify code).
  • An access token whose session was revoked is refused. Deactivating a user revokes all their sessions.
  • POST /auth/refresh: retrying with the previous refresh token within 30 seconds, while its replacement is unused, re-issues a pair instead of ending the session.
  • A refresh token of a session ended on purpose (sign-out, device revoke, password change) is 401 invalid_refresh_token, not refresh_token_reused.

Me

Tenants

Stores

Team

  • Page: GET /users, members, invites, roles, a user's roles, role audit.
  • Security: GET /users lists the users of your teams only (was every user on the platform).
  • 204 with no body: remove member, cancel invite.
  • 409 with a code: removing the owner (cannot_remove_owner), deleting a system role (system_role), changing the owner's roles (owner_roles_locked).
  • Security: accepting an invite for an e-mail that already has an account requires that account's password (401 invalid_credentials); an account with 2FA gets no session from an invite.

API tokens

Webhooks

Events

Audit

Places

Products

Categories

Collections

Product feeds

Files

Inventory

  • Store-owned routes moved from ?store_id= or a body store_id to /stores/{store_id}/...: /inventory-locations, /stock, /stock/overview, /stock/export, /stock/movements, /stock/bulk-adjust, /stock/bulk-reorder, /reservations, /stock-counts. Old paths still answer.
  • /stock/levels/{id} → GET /stores/{store_id}/variants/{variant_id}/stock; /stock/history/{id} → .../stock/movements. Old paths still answer.
  • /stock/adjust and /stock/transfer → POST .../variants/{variant_id}/stock/adjust and .../transfer; /stock/reorder → PUT .../stock/reorder (now PUT). Old paths still answer.
  • /stock-items, /component-inventory, /inventory-events and /product-variants/{id}/set-stock stay at the root only, undocumented.
  • Page for every list (were bare arrays, {items, total, limit, offset}, {events, total}, {movements, ...} or {levels}).
  • A stock count is flattened: {count, items} → the count's fields plus items.
  • Creates answer 201 with the resource (were {id}); updates return the resource (were 204).
  • Release and consume return the reservation and stock (were {ok: true}).
  • Movement filters item_id, from, to → variant_id, created_after, created_before; created_at is RFC 3339 (was epoch milliseconds).
  • reason, kind and status are enums: an unknown reason is 422 (was stored as correction).
  • A negative adjustment beyond on-hand stock is 409 insufficient_stock (was clamped); the transfer code insufficient_available became insufficient_stock.
  • Stock writes are 409 logical_stock_readonly on kits and 409 inventory_managed_externally on stores whose stock an ERP owns (unless force).
  • An inventory location's address is plain text (was JSON-encoded).
  • Security: /stock-items and /component-inventory listed every store's stock; adjustments and counts accepted other stores' variants and locations. Both are scoped to the store now.

Purchasing

Manufacturing

Shipping boxes

Integrations

  • ERP sync logs: Page (was {logs}) and readable only in their own store.
  • An unsupported ERP provider is 422 unsupported_erp_provider (was 400); a missing token is provider_token_missing.
  • Security: creating or updating an ERP provider masks its secrets (they were echoed back).

Orders

  • GET /stores/{store_id}/orders: always Page (was a bare array or {orders, total, limit, offset}). status is an enum (unknown values 400).
  • List rows drop freight_quote_id, freight_snapshot_json, freight_external_order_code and the NF-e fields; read them from the order.
  • Get, create and status change return the full order (shipments, refunds, refundable_cents, allowed_status_transitions, ...); create answers 201.
  • PATCH .../status enforces the lifecycle: 409 invalid_status_transition. shipped, delivered, confirmed and processing are no longer accepted (422); the code status_not_settable is gone.
  • POST .../orders/manual answers 201. Errors carry codes: 422 invalid_manual_discount, invalid_shipping, invalid_postal_code, pix_intent_failed; 404 variant_not_found; 409 insufficient_stock, insufficient_component_stock (extra fields moved under details).
  • /order-item-adjustments → /stores/{store_id}/orders/{order_id}/adjustments. The old path is removed (it always failed with a 500).
  • Removed: /fulfillments and /fulfillments/{id} (always failed with a 500).
  • Security: POST /orders refuses other stores' variants, customers and sales channels; a status change checks the store before releasing stock.

Carts

Quotes

  • GET /stores/{store_id}/quotes: Page (was {quotes}, capped at 200).
  • Quote status is open, expired or converted (was aberta, expirada, convertida).
  • Create answers 201. Errors carry codes: 422 empty_quote, invalid_max_installments, invalid_discount; 409 insufficient_stock; 404 variant_not_found, customer_not_found, sales_channel_not_found.
  • Security: a quote refuses another store's customer and sales channel.

Shipments

Payments

  • POST .../orders/{order_id}/refund answers 201 with the refund (was {ok, intent_id, ..., provider_response}).
  • Refunds: amount_cents below 1 is 422; above the refundable balance is 422 refund_exceeds_refundable (was silently capped); no approved payment is 409 no_refundable_payment.
  • Refunded orders are marked refunded or partially_refunded; the payment status gains partially_refunded.
  • Your Idempotency-Key on a refund is forwarded to Mercado Pago.
  • GET /stores/{store_id}/payment-providers: Page.
  • Creating or updating a provider masks its secrets; a duplicate is 409 payment_provider_exists.
  • Security: GET /payment-providers?store_id= still answers at the root, but masks secrets (it leaked them) and needs the manage permission.
  • Removed (they always failed with a 500): /refunds (see GET /stores/{store_id}/refunds), /payments, /payments/{id}/status, POST /payment-providers.
  • Removed: the unsigned /webhooks/payments. Payment gateway webhooks are not served under /v1.

Freight

Locations

Discounts

  • /discount-codes, /discount-codes/{id} and /discount-codes/validate → /stores/{store_id}/discount-codes/...; store_id leaves the body and query. Old paths still answer.
  • Discount codes: Page; create answers 201; expires_at is a date-time (bad input 422, was a server error); 409 discount_code_exists, discount_code_in_use.
  • Validate answers discount_type: null (was "unknown") and a reason enum.
  • Automatic discounts: Page; kind and condition_payment_method are enums.
  • Explicit null clears nullable fields on update, for codes and automatic discounts.

Sales channels

  • /sales-channels and /sales-channels/{id} → /stores/{store_id}/sales-channels/.... Old paths still answer.
  • Page; create answers 201; channel_type is an enum.
  • 409 codes: web_channel_exists, web_channel_protected (was a bare 409), sales_channel_in_use.
  • Generate API key answers {key, prefix}.

Reviews

Customers

  • GET /stores/{store_id}/customers: Page (was {customers, total, page, per_page, vip_threshold_cents}); page and per_page are gone; lifecycle is an enum filter.
  • Customer search also matches full name, company, document and phone digits.
  • GET .../customers/{customer_id} drops recent_orders; orders holds the 50 newest.
  • Create answers 201; a duplicate e-mail is 409 customer_email_exists; unknown ids are 404 customer_not_found.
  • Interactions: Page; 404 for a customer of another store.
  • /customer-addresses and /customer-addresses/{id} are removed (they failed on every call); use GET .../customers/{customer_id}/addresses (Page).
  • Page: timeline (was {events}), duplicates (was {groups}).
  • Merge answers {into, removed, tables} (no ok); merging a customer into itself is 422 same_customer.
  • Erase answers {erased, skipped} (no ok).
  • The CRM endpoints (graph, consent, merge, timeline, duplicates, export, erase) answer 403 missing_permission (was an empty 403).
  • E-mail activity of an unknown customer is 404 (was {summary: null, events: []}).

Conversations

  • GET /stores/{store_id}/conversations: Page (was {conversations, counts}); counts moved to GET .../conversations/counts.
  • The list's q → search and channel → channel_kind; status, priority and sort are enums (all is no longer accepted); open conversations are no longer listed first.
  • Messages: Page, newest first; before takes a message id (was a timestamp).
  • Sending a message answers 201; 422 empty_message, message_too_long, whatsapp_window_closed (were 400 or a later failure).
  • Notes answer 201; deleting an unknown note is 404 (was 204).
  • Socket ticket answers 201 {ticket, expires_in}.
  • Bulk update answers {updated} (no ok); an unknown action or value is 422.
  • GET .../cart returns the cart or 404 no_cart (was {cart}); item endpoints return the cart (were {cart} or {cart, conversation}).
  • PUT .../cart/customer returns the state only; reset answers 204; send and PIX answer 201.
  • Cart errors carry codes: no_cart, empty_cart, insufficient_stock, variant_unavailable, missing_info, checkout_failed, pix_failed, freight_quote_failed, freight_option_invalid.
  • Cart search: q → search; Page (was {variants}).
  • A WhatsApp message accepted by Meta is sent (was delivered).
  • Security: PATCH refuses another store's customer and assignees outside the store's team (422); typing events are limited to the store's conversations.

Conversation settings

Knowledge base

  • Page: collections, articles; q → search.
  • Creates answer 201; deleting an unknown collection or article is 404 (was 204).
  • Security: an article refuses another store's collection.

Email

  • Page: templates, broadcasts, broadcast recipients.
  • Segments: Page (was {segments, fields}); fields moved to GET .../email/segments/fields.
  • Segment members: Page (was {count, members}, capped at 500).
  • Page: forms (was {forms}), products (was {products}).
  • Product subscriptions: Page (was {summary, subscriptions}); counts moved to .../summary.
  • Template test send answers 204 and fails with 502 email_send_failed (was {ok}).
  • Send broadcast answers 202 with the campaign; cancel answers 200 with it.
  • provider, inbox_mode, mode and match are enums: unknown values are 422 (were ignored).
  • New 409 codes: broadcast_in_flight, broadcast_sending, broadcast_not_sendable, broadcast_not_cancellable, email_form_slug_taken.
  • New 422 codes: no_unopened_recipients, csv_missing_file, csv_empty, csv_missing_email_column. Assistant features: 503 assistant_unavailable, 502 assistant_error.
  • Deleting an unknown template, form or segment is 404 (was 204); an unknown broadcast is 404 (was 409).
  • Form sign-ups and CSV imports of new e-mails were silently lost; they are stored now.
  • Security: broadcasts refuse another store's template, and forms another store's welcome template.
  • Segment CSV export neutralizes spreadsheet formulas.

Transactional email

Email deliverability

Ads

  • Audiences: Page (was {audiences, meta_configured}); the flag moved to GET .../ads/connection.
  • Create answers 201 with the audience (was {id, name, status}); sync returns the audience (was {ok, count}) and fails with 502 meta_sync_failed.
  • Deleting an unknown audience is 404.
  • Security: performance errors no longer include the Meta access token.

Workflows

  • Page: workflows, a workflow's runs, versions, secrets.
  • Store runs: Page (was {runs, total, limit, offset}).
  • Fire and retry answer 202 with the run (were {run_id}).
  • Saving a secret returns its summary (was {name}).
  • kind and the settable status are enums (unknown values 422, were 400).
  • Publish with errors is 422 workflow_invalid with details.problems (was {problems}).
  • New codes: 409 workflow_not_published (resume), run_not_active (cancel), run_active (retry), run_not_awaiting_approval (approval); 422 run_not_retryable.
  • GET .../runs/{run_id} is 404 for a run of another workflow.
  • Restoring a version works (it always failed with a 500).
  • Security: fire and test node refuse another store's customer_id (422).

Assistant

  • /assistant/chat, /assistant/conversations (list), /assistant/prefs, /assistant/usage, /assistant/actions, /assistant/actions/{id}/undo, /assistant/phones, /assistant/phones/verify-start and /assistant/phones/verify-complete → /stores/{store_id}/assistant/.... Old paths still answer. store_id leaves the chat body.
  • Page: conversations (?search=; ?q= still accepted), actions (was the 100 newest), phones.
  • 429 assistant_cap_reached (was plain text); 503 assistant_unavailable; 403 not_a_member or missing_permission.
  • Undo: 409 action_already_undone, 422 undo_not_supported (were text).
  • Renaming a conversation returns it (was 204); stop always answers 204 (was 202 when nothing was running).
  • Verify start answers {phone_e164, expires_in_seconds} and fails with 502 whatsapp_send_failed (was 200 {ok: false, message}).
  • Verify complete returns the linked phone (was {verified: true}); a wrong code is 422 invalid_verification_code (was 400).

Notifications

  • Page: channels, logs and inbox (were bare arrays capped at 200 or 100; the inbox takes ?unread=).
  • Alert subscriptions: Page (was {subscriptions}).
  • Channel test answers 204 (was an empty 200) and fails with 502 notification_send_failed (was plain text).
  • PUT .../alert-subscriptions/{user_id} returns the subscription (was {ok: true}); 404 for a non-member; unknown events are 422 (were dropped).
  • channel_type, alert events and alert channel types are enums (unknown values 422); empty alert destinations are 422 (were skipped).
  • Marking read an unknown log is 404 (was 204).
  • Security: channel secrets read as "__stored__" (they were returned to marketing.read); sending that value back keeps the stored secret.

Brand

  • Errors carry codes (were plain text or bare statuses): 503 assistant_unavailable; 422 brand_sources_missing, brand_system_missing, file_missing, invalid_package, invalid_asset; 404 brand_job_not_found; 403 missing_permission.
  • Export without a brand system is 404 brand_system_missing.
  • Asset upload answers 201 (was 200).
  • Job records: kind and status are enums; started_at is a timestamp; already_running is omitted when false.
  • PUT .../brand-kit answers {kit, font_presets} like GET (was {kit}); import fails with 422 brand_import_failed.

Storefront

  • GET /stores/{store_id}/pages: Page (was a bare array); create answers 201 (was 200).
  • Pages: a duplicate slug is 409 page_slug_taken; blank or too long fields are 422 (were 500).
  • Security: pages require cms.read or cms.write (any signed-in user could read and edit any store's pages).
  • Deployments: Page (was the 20 newest as a bare array); status and triggered_by are enums.
  • Promote: 409 deployment_not_ready or storefront_repo_not_connected (were plain text).
  • POST /preview-auth/grant: expires_at is RFC 3339 (was a Unix timestamp).
  • Domains: Page; add answers 201 and no longer fails with a 500; 422 invalid_hostname or reserved_suffix (were 400).
  • Setting a primary domain that is not verified is 409 domain_not_verified.
  • GitHub repos: Page.

Content

Analytics

  • GET /dashboard/stats?store_id= → GET /stores/{store_id}/dashboard/stats; GET /dashboard/attention?store_id= → GET /stores/{store_id}/dashboard/attention. Old paths still answer.
  • Dashboard stats: revenue_this_month (a float) → revenue_this_month_cents, itself now deprecated in favour of revenue_cents and revenue_change_pct.
  • Dashboard revenue counts paid orders only: revenue_series no longer includes unpaid orders.
  • Dashboard days follow the store's time zone (returned as timezone): 7d, 30d and 90d are whole local days ending today.
  • Dashboard stats and every tracking report answer 500 on a database error (they returned zeros or empty lists); the tracking config PATCH no longer reports success when the write failed.
  • Page: top pages, top referrers, top events (were bare arrays with ?limit up to 200).
  • Recent events: Page with a cursor (was a bare array paged by ?before=).
  • Visitors: Page; search is ?search= (?q= still accepted). The list was always empty (a query error); it now returns visitors.
  • Conversions: Page (was {deliveries, total, limit, offset}); capi_meta_status and google_ads_status are enums (sending, sent, failed, skipped), and the skip reason moved to google_ads_skip_reason.
  • Insights: touch is an enum; unknown values are 400 (were read as last_touch).
  • An unknown visitor is 404 visitor_not_found (was an empty 200).
  • Resend: 422 order_not_captured (was {"error": "not_captured", ...}).
  • Catalog sync: 422 meta_catalog_not_configured, 502 meta_catalog_error; result is null when nothing was pushed (was the text "no active variants").

Storefront API

  • Shopper endpoints keep their paths, requests and responses; deployed themes work unchanged. /v1 also answers on store domains.
  • Security: POST /storefront/orders accepts only the channel's own store's products and variants.
  • The retired theme checkout POST /storefront-api/{store_slug}/checkout (always 410) is not served under /v1.

On this page

2026-12-02: the store's content on the Storefront API2026-12-02: card installments with interest and saved cards2026-12-01: storefront product filters and facets2026-12-01: coupon conditions, promotions and per-line discounts2026-11-22: cashback, tiers with perks and credit that expires2026-11-21: notes from more than one CNPJ2026-11-21: scheduled orders and pre-sale2026-11-21: reseller sign-up2026-11-21: price lists and wholesale rules2026-11-21: shipping rules2026-11-21: boleto2026-11-21: reference tables2026-11-19: a counter sale takes a list of payments2026-11-17: operations named after this API's resources; SDK 0.2.02026-11-17: fiscal documents2026-11-17: loyalty, store credit, gift cards and digital products2026-11-17: tickets, the help center and forms2026-11-17: purchasing2026-11-17: reviews, subscriptions, quotes and exchanges2026-11-17: conversations2026-11-17: the CRM2026-11-17: bookings2026-11-17: one address vocabulary2026-11-17: webhooks carry the API's objects2026-11-17: the store and the single reads2026-11-16: the API is the public API; the admin paths leave /v12026-11-16: the store's brand on booking pages2026-11-15: sign-up captcha, one trial per account, e-mail sending guards2026-11-15: unpaid organizations and stores not yet open2026-11-14: a billing address on every checkout2026-11-05: subscribing to a sold-out product2026-11-04: charge an exchange's difference by Pix2026-11-04: gift card custom amount2026-11-04: undo a bank line2026-11-04: feed for content pages2026-11-04: comments on project cards2026-11-04: project card reminders2026-11-04: projects and boards2026-11-04: scheduled content2026-11-04: loyalty e-mails2026-11-04: loyalty tiers2026-11-04: digital products2026-11-04: shareable wishlists2026-11-04: recurring expenses2026-11-04: subscribe from a product2026-11-04: subscriptions (recurring orders)2026-11-04: theme deployments keep their history2026-11-04: bank reconciliation2026-11-04: marketplace commission in Finance2026-11-04: saved report views2026-11-04: sales forecast2026-11-04: booking calendar feed2026-11-04: a customer's own bookings2026-11-04: booking deposit becomes credit on cancel2026-11-04: dropshipping2026-11-04: customer groups and group discounts2026-11-02: exchanges, discount share and return shipping2026-11-02: loyalty points and referrals2026-11-02: bookings with deposits, packages, classes and more2026-10-26: service invoices (NFS-e)2026-10-25: workspace features2026-10-25: bookings2026-10-25: specifications in custom fields2026-10-24: custom fields2026-10-24: storefront addresses2026-10-24: the previous storefront API keeps answering2026-10-24: Storefront API redesign (breaking)2026-10-24: access cleanup2026-10-23: groups, policies and attachments2026-10-23: store mailboxes2026-10-23: wishlists2026-10-22: gift card sales2026-10-21: reports2026-10-21: gift cards and credit2026-10-21: returns2026-10-21: server-side ad tracking2026-10-21: social fixes2026-10-21: fixes from review2026-10-21: AI actions2026-10-21: help center2026-10-21: service workspaces2026-10-21: customer context2026-10-20: tickets2026-10-19: Asaas for cards2026-10-19: AI error statuses2026-10-19: comments on ads2026-10-19: AI for social posts2026-10-19: ads2026-10-19: social insights2026-10-19: comments2026-10-18: social publishing2026-10-15: consent center2026-10-14: notifications2026-10-05: storefront SDK 0.32026-10-05: customer portal2026-10-05: store forms and the storefront SDK2026-10-05: one set of rules for CPF, CNPJ, CEP, phone and e-mail2026-10-05: where goods leave from, and pickups2026-10-05: ship day with Central do Frete2026-10-05: cartas de correção (CC-e)2026-10-05: shipments own their boxes2026-10-04: recipes all the way down, made items, combos2026-10-03: stock moves with the goods2026-10-03: authored CMS schemas and validation2026-10-03: GitHub theme pipeline removed2026-10-03: AI theme drafts2026-10-02: pickup on counter sales2026-09-30: freight walks item recipes2026-09-30: purchase and receive item packs2026-09-30: items you can write2026-09-29: items stay in step2026-09-29: items2026-09-29: freight audit2026-09-29: stock by product2026-09-29: production orders2026-09-29: delivered counts2026-09-29: order timeline2026-09-29: new token prefixes2026-09-29: ask the documentation2026-09-29: plans, billing and setupv1 (2026-10)MigratingVersioned base pathErrors have a codeOne list envelope: PageIdempotency keysRate limitsSessions with refresh tokensUnchangedEndpoint-level changesAuthMeTenantsStoresTeamAPI tokensWebhooksEventsAuditPlacesProductsCategoriesCollectionsProduct feedsFilesInventoryPurchasingManufacturingShipping boxesIntegrationsOrdersCartsQuotesShipmentsPaymentsFreightLocationsDiscountsSales channelsReviewsCustomersConversationsConversation settingsKnowledge baseEmailTransactional emailEmail deliverabilityAdsWorkflowsAssistantNotificationsBrandStorefrontContentAnalyticsStorefront API