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/pagesand/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. Errorpage_not_found.GET /v1/storefront/menusand/menus/{handle}: the site's menus, with each link at the address its page lives at. Errormenu_not_found.GET /v1/storefront/cms/collections/{collection_slug}/documentsand/documents/{document}(slug or id): a CMS collection's live documents (a blog's posts), media fields expanded. Errorscms_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_rateorprovider),interest_free_installments(1 to 12),installment_rate_bp(the store's monthly rate, 0 to 1000; 199 is 1.99%) andsaved_cards_enabled.max_installmentsis now the most installments, interest included. - Orders carry
installments,installment_interest_centsandinstallment_interest_by(storeorprovider). Withstore,total_centsincludes the interest (what the card was charged); withprovider, the gateway added it andtotal_centsdoes not. - Storefront API:
GET /v1/storefront/installmentstakesbinas optional and every option carriesinstallment_cents,first_installment_cents,total_cents,interest_centsandinterest_by.GET /v1/storefront/payment-methodssayssaved_cards. A payment intent takessaved_card_id,save_cardandsave_card_token; new errorsaved_card_unavailable. - Storefront API:
GET /v1/storefront/customers/me/cardsandDELETE /v1/storefront/customers/me/cards/{card_id}.
2026-12-01: storefront product filters and facets
- Storefront API:
GET /v1/storefront/productstakesbrand(brands separated by commas) andoptions(name:valuepairs separated by commas, such asCor: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/facetstakes the same filters and answers the counts behind each one: every brand and option value of the listed products (withcolor_hexfor 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_shippingwithfree_shipping_servicesandfree_shipping_max_cents, andcombines_with_promotions. A code carriesbatch_idandhanded_out_atwhen it came from a batch. - Batches of single-use codes:
POST /discount-code-batchescopies a template code into up to 5000 codesPREFIX-XXXXXXXX;GET /discount-code-batcheslists them.GET /discount-codesleaves batch codes out unless asked withbatch_id. - Usage:
GET /discount-codes/{code_id}/usageandGET /automatic-discounts/{discount_id}/usagegiveorders,revenue_cents,discount_centsandlast_used_at. - Automatic discounts have two new
kindvalues, applied in the cart without a code:buy_x_get_y(with abuy_x_get_yobject: "leve 3 pague 2", the second unit at 50% off, a gift from another set) andtiered(atieredobject: steps by quantity or amount).combines_with_codesandcombines_with_promotionsset how they stack. Treatkindvalues 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 fieldscashback_enabled,cashback_bps(500 is 5%),cashback_expire_months(months cashback stays in the wallet;nullnever expires),cashback_enabled_atandtier_window_months(the tiers' spend window, 12 by default). OnPUTthese fields may be left out (they keep what they were). - Tiers (
GET,PUT /loyalty-tiers): each tier getscashback_bps(empty: the program's),free_shippingand a birthday bonus (birthday_bonus_cents,birthday_bonus_points). The lowest tier may start atmin_spend_cents0. 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) carriescashback(pending_cents,next_release_at,released_cents,owed_cents),cashback_entries,tier_changes,wallet_expiringandtier.window_months. - A credit entry can carry
expires_at, and there is a newkind,cashback(cashback released to the wallet; negative when a refund takes it back). Treatkindvalues 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()), andGET /v1/storefront/customers/me/loyaltywith cashback, the wallet's history, what expires, the tier history andrates. - Products:
is_gift_cardsays 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_idof the CNPJ they belong to, andGET /fiscal-documents,GET /fiscal-voidingsandPOST /fiscal-voidingstakeissuer_idto 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 withPOST /ordersorPATCH /orders/{order_id}(from today up to a year ahead;nullclears it). New errors:scheduled_on_too_soon,scheduled_on_too_late. GET /orderstakesscheduled_fromandscheduled_to(days, both included) and then lists only scheduled orders;OrderSummarycarriesscheduled_on.- A variant may carry
preorder_available_on, the day a pre-sale collection is expected (withfulfillment_modeon_demandorstocked_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 inpreorder_available_on.
2026-11-21: reseller sign-up
- Reseller sign-up requests:
GET /reseller-applications(bystatus),GET /reseller-applications/{application_id},POST .../approval(withgroup_id, or the store's default group) andPOST .../rejection(withreason). 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-applicationssends a business's request (errorsapplications_closed,application_pending,validation_failed,turnstile_failed) andGET /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,PATCHto write: each price is a variant from a quantity up, andprice_cents: nullremoves one). A variant without a price of its own costs the regular price less the list'spercent_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_limitedwithcollection_ids). The group answers these fields too. - Automatic discounts:
skip_price_list_groupskeeps 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_centsis their list's price,compare_at_centsthe regular price andprice_tiersthe quantity prices; where the store shows prices to signed-in customers only, a visitor gets null prices andprices_hidden: true. The cart carriesprice_list_nameandwholesale_issues; new errors:wholesale_rules_unmet(at checkout),not_available_to_groupandsign_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 ofPOST /storefront/shipping-estimateshasbase_shipping_cents, what the carrier quoted before the rules; the estimate's options may also carryshipping_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-estimatestakes an optionalchannel(storefrontby 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 /orderswithsource: manual) may carry the option'sshipping_ruleandbase_shipping_cents; the order keeps them with its freight.
2026-11-21: boleto
- New
boletovalue 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 havemethod: boleto; while it waits,provider_snapshot_json.boletoholdsurl,digitable_line,barcode,due_dateand, when the payment provider issues one,pix_code. POST /orders/{order_id}/refundsfor a boleto paid through Banco Inter, or paid at a bank through Asaas, records the refund withprovider_code: manualwithout calling the provider: the store makes the transfer to the customer.- Storefront API:
boletoinPOST /storefront/carts/{cart_id}/paymentsandPOST /storefront/orders/{order_id}/payments, withnext_action.type: boleto;GET /storefront/orders/{order_id}/paymenthasboletowhile it waits; newGET /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'sentriesare its rows (alabel,code,image_file_id,color_hex,option_valueand one text per column invalues);product_ids,category_idsandcollection_idssay where it shows. New error:reference_table_not_found. GET /products/{product_id}/reference-tableslists what a product page shows, its own and inherited from its categories and collections;PUTsets the product's own and the inherited ones it hides.- Storefront API: a product's detail carries
reference_tables, each swatch with the product'soptionit stands for.
2026-11-19: a counter sale takes a list of payments
- Breaking:
POST /orderswithsource: manualtakespayments(a list of{ method, amount_cents, card, amount_received_cents }) in place ofpayment_methodandamount_received_cents. One payment needs noamount_cents(it covers the total); several in-person payments each say theirs and add up to the total.pix_qris always the only payment. New errors:payments_total_mismatch,pix_qr_not_splittable. - A
card_terminalpayment may saycard(kind:creditordebit, andinstallments1 to 24 on credit), on a counter sale and onPOST /orders/{order_id}/payments. The order shows it aspayment_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(andget,create,update,deleteLocation),listTeamMembers,listBookingSlots,listSubscriptions,getRecurringSubscription,createSubscription,updateSubscription,listHelpArticles(andget,create,update,deleteHelpArticle),listHelpCollections(andcreate,update,deleteHelpCollection),listForms(andget,create,update,deleteForm),listFormSubmissions(andupdate,deleteFormSubmission),createGiftCard,changeDealStage,listTaxClasses(andcreate,update,delete,assignTaxClass),checkFiscalDocumentStatus,checkFiscalCorrectionStatus, andlistNfseDocuments(andget,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/api0.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(bystatus,environment,order_id),GET /fiscal-documents/{document_id}with SEFAZ'stransmissions, its/xml,/danfeand the NFC-e's/receipt, andPOST .../status-checkto ask SEFAZ where it stands. A document'sserieisseries. - 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), andPUT /orders/{order_id}/nfefor an NF-e issued elsewhere. - Voidings (
GET,POST /fiscal-voidings), tax classes (/tax-classes,PUTreplaces the whole class,POST .../assignmentsgives it to products and variants) and NFS-e (/nfse-documents,POST .../cancellation,/xml,/pdf,POST .../status-check; the service's day iscompetence_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,PUTandDELETE .../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 (GETsays how many are left askey_count,used,available;POSTadds 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_publicputs a published article on the public help center) and collections (/help-collections). - Forms the store publishes:
/forms,/forms/{form_id}(PUTreplaces 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, andPOST .../receiptsfor what arrived), supplier invoices (import an NF-e XML withPOST /supplier-invoices, match it withPATCH,POST .../receiptto 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'sproduct_titleandproduct_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 theSubscriptionand, indetails, the status they were sent with and what they established: the cycle'sorder_idandorder_number, the failed cycle'slast_error, thepaused_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}/exchangeplaces the exchange order,PUT .../exchange-itemssets what goes out,POST .../exchange-chargemakes a Pix charge for the difference, andPUT .../shippingsays how the items come back.
2026-11-17: conversations
- The inbox is public: conversations (
GET,PATCH /conversations/{conversation_id}, andPOST .../handback), their messages (list, send, download an attachment), notes, the contact's block, linked orders, and labels (/conversation-labels). See Conversations. - A
Conversationis the same in a list and a read (a read also carriesnotesandreply_window_expires_at);assignee_id,is_bot_active,unread_countandsnooze_ends_atare this API's names. A message's attachmenturlis this API's download. conversations.*webhooks carry theConversation(without the team'snotes), andconversations.message_receivedthe message'stextandsenderindetails.
2026-11-17: the CRM
GET /team-memberslists the store's team: the ids a deal'sowner_idand a task'sassignee_idtake.- Pipelines (
GET,POST /pipelines,GET,PATCH /pipelines/{pipeline_id}), deals (/deals,/deals/{deal_id}, andPOST /deals/{deal_id}/stage-changesto move one), tasks (/tasks,/tasks/{task_id}) and a customer's timeline (/customers/{customer_id}/interactions) are public. See CRM. deals.*webhooks carry theDeal.
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, withevery_weeksandcountfor 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_emailandcustomer_phone, as on an order; durations are*_minutes;is_activeandtimezoneare named as elsewhere. bookings.*webhooks carry theBooking.
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(andcountrywhere it has one). An order'sshipping_addressis aShippingAddress:postal_codeandcomplementwerezip_codeandadditional_info, in its answers and inPATCH /orders/{order_id}(ShippingAddressUpdate). - A customer's address is a
CustomerAddresswith those parts:type(wasaddress_type), and nocustomer_id(the path names it). The free linesaddress_line_1andaddress_line_2are gone from it; an address saved as lines is answered in parts where they can be told apart (Rua das Flores, 88isstreetandnumber; its second line is answered whole ascomplement).POST /customers/{customer_id}/addressestakes the parts (streetis required) andPATCHchanges 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 /eventsanswers it, with the store:id,type,created_at,store_idanddata.data.objectis the object the event is about exactly as itsGETanswers it (anOrderfororders.paid, aCustomerforcustomers.created), read once when the event is sent, so every retry andGET /eventscarry the same one. An object that is gone is{id, deleted: true}.data.detailsholds what the event knows that the object does not (refund_centsoforders.refunded). The old envelope (event,timestamp,datawith 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-IdandMobiari-Event-Typereplace theX-Webhook-*headers. See Verifying signatures. - The reference describes every event type's body (the document's
webhooks), andGET /event-typesanswers a page ofEventType: itstype,description, the schema of itsobjectand the names of itsdetails. - An
Event(GET /events) isid,type,created_atanddata, filtered bytype(wasname). It lists the events of the catalog only. POST /orderstakesitems[].variant_id, like a sale withsource: manual(wasproduct_variant_id), andPOST /products/{product_id}/imagestakesvariant_idandkind, the names of aProductImage(wereproduct_variant_idandimage_kind).- The SDKs check signatures:
verifyWebhookin@mobiari/apiandverify_webhookinmobiari, typed by event type.
2026-11-17: the store and the single reads
GET /storeanswers the store a key works on:name,slug,kind,currency,locale,timezoneandis_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 itseventsandsecret),GET /customer-groups/{group_id},GET /inventory-locations/{location_id}andGET /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.
/v1now serves the API: 119 operations for catalog, inventory, orders and fulfilment, customers, discounts, webhooks and events, described bypublic.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 theMobiari-Storeheader (400 store_requiredwithout 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 asinventory-levels,inventory-adjustments,inventory-transfersandinventory-movements. - Lists page with
cursorandlimitonly:offsetanswers400 offset_not_supported. - Everything else that answered under
/v1/stores/...,/v1/tenants/...,/v1/meand/v1/authis 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_typeistype,rich_text_descriptionisdescription_html,fiscal_tax_class_idistax_class_id, the highlight video isvideo_url,video_providerandvideo_poster_url, andstore_idis not repeated. The feed overrides (google_*,meta_*, custom labels) are not part of it.POST /productsandPATCH /products/{product_id}answer422 validation_failednaming any field they do not take. A product in a list is aProductSummarywithimage_urlandthumbnail_url. - The variants and images in a product, and the operations on them, answer public objects too. A
Variantusestax_class_id. AProductImagehasurl(where to load it from) and, for an image,thumbnail_url;kind,variant_idandsize_bytesreplaceimage_kind,product_variant_idandfile_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}andPATCH /products/{product_id}/images/{image_id}refuse a field they do not take. - Orders, customers and companies answer public objects too. An
Ordercarries what was bought, by whom, the amounts and how it is paid and delivered:shipping_contactisshipping_address,payment_provider_codeispayment_provider, and the fiscal document (nfe_*,danfe_url), the carrier's internals (freight_*),allowed_status_transitionsandstore_idare not part of it. Itsitemsandrefundsare anOrderItemand aRefund; a list answersOrderSummary.GET /orders/{order_id}/paymentsanswers the order'spaymentsandrefunds, without the gateway's raw events. ACustomerhasorder_countandtotal_spent_cents(weretotal_ordersandtotal_spent); a read of one carries itsaddressesand no longer its orders (useGET /orders?customer_id=) or its CRM timeline. ACompanyhascontact_count,order_countandtotal_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-locationsandPATCH,DELETE /inventory-locations/{location_id}are public: where stock is held. A store needs one beforePOST /inventory-adjustmentscan record stock.locationsstay 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_codeisprovider,freight_external_order_codeiscarrier_order_code, and the carrier platform's own ids (cdf_*), the raw tracking payload, the cubing figures, the fiscal document that travels with it andstore_idare not part of it.POST /shipmentsandPATCH /shipments/{shipment_id}takeShipmentCreateandShipmentUpdateand refuse a field they do not take. - A product carries
category_ids,collection_ids,sales_channelsandshipping_profile, andPATCH /products/{product_id}takes them withslugandcustom_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'sspecs; a variant'sdimensions,shipping_profileandcustom_fields; a customer'sgroup_idandcustom_fields; a collection'ssales_channels; an order'sshipping_address; a webhook'sevents. Their own paths are not part of the API. - What were operations of their own are now part of others:
POST /orderswithsource: manualrecords a sale already paid and answers the order (withchange_cents, andpixfor a PIX charge);POST /orders/{order_id}/refundswithmethod: manualrecords a refund made by hand, and both refunds now answer the order instead of aRefund;POST /inventory-adjustmentswithitemsapplies up to 500 adjustments at once (all or none);GET /inventory-levelsfilters byvariant_idandproduct_id(a kit'sbuildableis what its components allow).GET /sales-channelslists 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(samecode), not502. 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-groupsandGET /customer-tagsanswer a page (data,has_more).GET /customersno longer takessort: 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_idanywhere (categories, discounts, webhooks, inventory and store locations, carts, events); no internal ids of team members (actor_user_idin an order'sstatus_history, stock movements and return events); no raw provider data (a payment'sprovider_snapshot_json, a quote option'sraw). A store location'shours_json,amenities_jsonandphotos_jsonarehours,amenitiesandphotos(in its answers and its create and update bodies); a webhook delivery'spayload_jsonispayload; a payment's and a quote option'sprovider_codeisprovider; an event no longer carries the dispatcher'sattempts,completed_subscribersandlast_error. A return is aReturn. - A shipment's status and dates agree:
PATCH /shipments/{shipment_id}withshipped: truemoves adraftshipment toshipped,delivered: truemoves it todelivered, 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) answer404 route_movedwith aLinkto their/apppath. 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/servicesand a booking as its client sees it (GET /storefront/bookings/{token}and the answers of booking, cancelling and rescheduling) carrybrand:logo_url,primaryandprimary_text(#rrggbb) andtagline, from the store's brand profile.brandis null when the store has no profile or nothing in it is usable; colours that are not hex and logo addresses that are nothttps://are left out.
2026-11-15: sign-up captcha, one trial per account, e-mail sending guards
- New:
GET /auth/signup-config(getSignupConfig, public) returnsturnstile_site_keywhile the sign-up captcha is on (null otherwise).POST /auth/registerthen needscaptcha_token: 422captcha_requiredwithout it,captcha_failedwhen 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 /tenantsby 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 (
parceiroorganizations exempt): failed sends are archived withowner_email_unverified.POST /stores/{store_id}/email/broadcasts/{broadcast_id}/send: 409email_campaigns_held(details.reason:owner_email_unverifiedorreputation). GET /stores/{store_id}/usage:email_caps.sourcecan betrial(500 campaign e-mails a day during the free trial on Mobiari's address) andemail_caps.holdsays 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 kindmarketing.email_campaigns_paused.
2026-11-15: unpaid organizations and stores not yet open
- While an organization's subscription is
suspendedorcanceled, admin writes under/stores/{store_id}/and/tenants/{tenant_id}/answer 402subscription_inactive(details.stage,details.closes_at), except billing (/tenants/{tenant_id}/subscription*, andlegal_name/tax_idinPATCH /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_unavailableorstore_not_ready; the store's pages answer 503. Payment webhooks are unaffected. GET /tenants/{tenant_id}/subscription(getSubscription) addsstage(good,restricted,closed),store_closes_atandstorefront_awaiting_verification.
2026-11-14: a billing address on every checkout
POST /storefront/carts/{cart_id}/paymentsandPOST /storefront/carts/{cart_id}/checkout(and the older/storefront-api/{store_slug}/api/payments/intentsand/checkout): 422address_requiredwhen 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}/fulfillmentwithmethod: "shipping"on a cart already on shipping changes nothing (it used to zeroshipping_centswhile keeping the chosen option). A checkout whoseshipping_centsdisagrees with the chosen option is refused with 422shipping_required/freight_selection_requiredand 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): 409out_of_stockwhen 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 returnsorder_id,amount_cents,qr_code,qr_code_base64andexpires_at(the same Pix again while it is live). Needsorders.write. 409nothing_due(covered by credit, or already paid),invalid_state,exchange_order_cancelled(the Pix expired or was refused and the order was cancelled); 422not_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_amountonGiftCardProductand onPUT /stores/{store_id}/products/{product_id}/gift-card(left as it is when omitted; off when the product stops being a gift card). The storefrontProductcarriesgift_card(custom_amount,min_centsR$ 10,00,max_centsR$ 50.000,00) for gift card products.POST /storefront/carts/{cart_id}/gift-card-itemstakesamount_cents: that is the card's value (422invalid_amountoutside the limits,custom_amount_not_allowedfor a product with fixed values); without it the variant's value is used as before. SDK:amount_centsin the second argument ofcart.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. 409line_open. A payable matched from a statement now has methodtransfer.
2026-11-04: feed for content pages
GET /{page}/feed.xmlon 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 withtitle(the entry'stitle,nameorheadline, else its slug),summary(summary,excerptordescription),publishedandupdated. Scheduled and ended entries are left out. 404 for a page that does not exist, is not backed by a collection, is hidden or markednoindex.
2026-11-04: comments on project cards
GETandPOST /stores/{store_id}/boards/{board_id}/cards/{card_id}/comments(listBoardCardComments,createBoardCardComment;projects.read/projects.write;body1 to 2000 characters; oldest first, withauthor_name) andDELETE .../comments/{comment_id}(deleteBoardCardComment; 403not_authorunless it is the caller's own).Cardcarriescomment_count. A comment from someone other than the assignee sends the assignee atasks.assignednotification.
2026-11-04: project card reminders
- A card's assignee gets a
tasks.assignednotification when someone else assigns the card to them (create orupdateBoardCard), and atasks.duenotification once on the card'sdue_onday in the store's time zone (not for done cards; a newdue_onor 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.
GETandPOST /stores/{store_id}/boards(listBoards,createBoard;projects.read/projects.write; a new board gets the columns A fazer, Em andamento and Concluído unlesscolumnsis sent, the last of which is the done column),GET,PATCHandDELETE /stores/{store_id}/boards/{board_id}(getBoard,updateBoard,deleteBoard;archivedarchives or restores).GETreturns 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) andDELETE(deleteBoardColumn; 409column_not_empty). - Cards:
POST /boards/{board_id}/cards(createBoardCard:title,description,column_id,assignee_user_id,due_on,customer_id,order_id),PATCHandDELETE /boards/{board_id}/cards/{card_id}(updateBoardCard,deleteBoardCard;nullclears a field) andPOST .../cards/{card_id}/move(moveBoardCard:column_idand a 0-basedposition; answers the board). A card that reaches a done column getscompleted_at. New permissionsprojects.readandprojects.write(managers and owners have both).
2026-11-04: scheduled content
- CMS documents carry
publish_atandunpublish_at(RFC 3339, both optional) and a read-onlystatus(draftwhen notis_active,scheduledbeforepublish_at,expiredfromunpublish_at, elselive).createCmsDocumenttakes both;updateCmsDocumentleaves them alone when omitted and clears one withnull. 422validation_failedwhenunpublish_atis not afterpublish_at(checked against the stored value when only one changes). The storefront, itscmsLiquid object and the sitemap show a document only while it islive; the store's cached pages are dropped within a minute of either moment.
2026-11-04: loyalty e-mails
LoyaltyProgramcarriesnotify_points(defaulttrue);PUT /stores/{store_id}/loyalty/programtakes it as an optionalnotify_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
GETandPUT /stores/{store_id}/loyalty/tiers(getLoyaltyTiers,setLoyaltyTiers;credit.read/credit.write): up to 6 tiers ofname,min_spend_cents(what the customer paid for goods in the last 12 months, on orders that still stand) andmultiplier_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.CustomerLoyaltyand the storefrontPortalLoyaltycarrytier(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; answersaddedandduplicates) andGET(getProductLicenseKeys:total,available,used; keys are never read back). When the delivery'sinstructionscontain{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,PUTandDELETE /stores/{store_id}/products/{product_id}/digital-delivery(getProductDigitalDelivery,setProductDigitalDelivery,removeProductDigitalDelivery; atitle, an httpsurland/orinstructions; 404no_digital_delivery; 422validation_failed). Permissionsproducts.readandproducts.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; 422nothing_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); SDKclient.customer.downloads(number).
2026-11-04: shareable wishlists
- A signed-in customer can share their wishlist:
POST /storefront/wishlist/share(shareStorefrontWishlist) returnstokenandpath(/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) returnsowner_nameand the items (product_id,title,handle,price_cents,in_stock; never alerts or saved prices); 404not_sharedwhen 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, fromfirst_due_onuntilends_onif given; each payable keeps the template's day of the month where the month has it.GETandPOST /stores/{store_id}/recurring-expenses(listRecurringExpenses,createRecurringExpense) andPATCH .../recurring-expenses/{expense_id}(updateRecurringExpense: description, category, amount,activeto pause and resume,ends_on). Payables already made are not changed. Permissionspayables.readandpayables.write; 422invalid_category,amount_must_be_positive,invalid_interval,description_required,invalid_end. A payable made from one carriesrecurring_expense_idin 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 ofunitweek/monthandcount1 to 52; empty turns it off). The storefrontProductcarriessubscription_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. 422not_subscribable,invalid_interval_option,needs_first_order(a physical product needs an earlier purchase to know where to send it); 409already_subscribed,too_many_subscriptions(20 running); 404variant_not_found. SDKclient.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_countweeks or months (interval_unitweekormonth).GETandPOST /stores/{store_id}/subscriptions(listRecurringOrders,createRecurringOrder),GETandPATCH .../subscriptions/{subscription_id}(getRecurringOrder,updateRecurringOrder:statusactive,pausedorcancelled,skip_next, the interval,next_run_at, the full list ofitems,delivery_order_id). Permissionsorders.readandorders.write. 409cancelledon a cancelled subscription; 422variant_not_found,invalid_delivery_order. discount_codeon a subscription (create andPATCH; an empty string removes it): every cycle's order applies that code of the store; 422invalid_discount_codewhen 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_viasubscription,orders.subscription_id), repeats the delivery ofdelivery_order_idand e-mails the customer a Pix. Three failed cycles in a row pause the subscription withpaused_reasonfailuresand the error inlast_error. - Storefront API:
GET /storefront/customers/me/subscriptionsandPOST .../subscriptions/{id}/pause,/resume,/skipand/cancel. 404 for another customer's; 409invalid_state; 409needs_storewhen 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.resumedandsubscriptions.cancelled.
2026-11-04: theme deployments keep their history
- A deployment (
StorefrontDeployment, fromGET /stores/{store_id}/storefront/deployments) now hasmessage(what the version changes),created_byandcreated_by_name(who made it) andparent_deployment_id(the live deployment a draft started from). Older deployments have them empty. POST .../deployments/draftandPOST .../deployments/{deployment_id}/readytake an optional JSON body{"message": "..."}(500 characters at most; 422invalid_message). Without a body they work as before. The import form (POST .../deployments/import) takes an optionalmessagefield.POST .../deployments/{deployment_id}/promoterefuses a draft that was never promoted when itsparent_deployment_idis no longer the live deployment: 409stale_base, nothing changes. Start a new draft from the live theme, or pass?force=trueto 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}/filesandGET .../deployments/{deployment_id}/filenow work for any deployment of the store, not only drafts (writes stay draft-only). Reading a binary file answers 422file_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, withpath, returns the unified line diff of one text file (cut at 64 KiB or 1500 lines, withtruncated).
2026-11-04: bank reconciliation
POST /stores/{store_id}/finance/bank-imports(importBankStatement;finance.write) takescontent, the text of an OFX 1.x or 2.x statement (up to 2 MB and 5000 transactions), and answerslines,addedandduplicates(a transaction is known by its account and FITID); 422invalid_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; needsfinance.writeandpayables.write) marks the payable paid on the bank's day and amount (methodbank_transfer): 409line_resolvedorpayable_not_open, 422not_a_debitoramount_mismatch.POST .../bank-lines/{line_id}/ignore(ignoreBankLine).- A credit is matched to a receivable:
matchtakes eitherpayable_id(a debit) orpayment_id(a credit; 422invalid_matchunless exactly one,not_a_credit; 404payment_not_found; 409payment_confirmed). An open credit comes withreceivable_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), andReceivablecarriesconfirmed_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_centsin its provider snapshot):Receivable.fee_centsis that commission (scaled to what was not refunded, never more than the payment) and the newReceivable.fee_sourcesaysmarketplace; 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, optionalreport),POST .../reports/views(saveReportView:report,nameof 1 to 60 characters,paramsas text pairs, at most 20; the same name on the same report replaces it) andDELETE .../reports/views/{view_id}(deleteReportView). Reading needsreports.read, saving and deletingreports.manage. 422invalid_name,invalid_params,too_many_views(50 per store).
2026-11-04: sales forecast
- New:
GET /stores/{store_id}/reports/forecast(getSalesForecast;days7 to 90, default 30, optionalchannel_id;reports.read): net revenue expected per day from the weekday averages of the last 56 days, withlow_centsandhigh_cents(one standard deviation), the totals,last_period_centsandchange_bpsto compare,selling_daysandenough_history(false under 14 selling days). 422invalid_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}.icson the API's host; the same link every time) andDELETE(disableBookingCalendarFeed) turns it off, forbookings.manageor the provider's own login.GET /booking-feeds/{token}.icsneeds no sign-in (the token is the credential; rate limited; an unknown or stopped token is a plain 404) and answerstext/calendarwith 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 itsid.POST /storefront/customers/me/bookings/{id}/cancel(cancelStorefrontMyBooking, bodyreason) cancels one under the service's cutoff: 404booking_not_foundfor one that is not theirs, 409cancel_window_closedorinvalid_state. SDKclient.customer.bookings.list()and.cancel(id, reason).
2026-11-04: booking deposit becomes credit on cancel
BookingServicehasdeposit_on_cancel(keep, the default, orcredit; also on create and update, 422invalid_deposit_on_cancel). Withcredit, cancelling a booking whose deposit was paid, by the client or the team, adds the paid amount to the client's store credit once.Bookinghasdeposit_credited_cents(what was credited; 0 otherwise).
2026-11-04: dropshipping
- New:
PUT /stores/{store_id}/variants/{variant_id}/dropship(setVariantDropship,supplier_idor null),GET .../products/{product_id}/dropship(getProductDropship),GET .../dropship-orders(listDropshipOrders, optionalstatus),POST .../dropship-orders/{dropship_id}/resendand/cancel(resendDropshipOrder,cancelDropshipOrder; 409not_pending, 422send_failed). Read needspurchasing.read, changespurchasing.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 byGET /dropship/{token}andPOST /dropship/{token}/ship, no authentication, the token is the credential). Shipping creates a shipped shipment (freight_provider_codedropship) 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) andGET/PUT /stores/{store_id}/customers/{customer_id}/group(getCustomerGroup,setCustomerGroup;group_idnull takes the customer out). Reading needscustomers.read, managing groupscustomers.writeand putting a customer in onecustomers.editon that customer (deleting a group that has discounts also needsdiscounts.write, since they go with it). 409group_name_taken,too_many_groups. AutomaticDiscounthascondition_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(refundorexchange),discount_share_cents(its part of the order's discount;refund_centsis now net of it, so a coupon is not refunded twice) and, for an exchange,exchange_items(variant, quantity,unit_price_cents),exchange_order_idandexchange_order_number. New statusexchanged; new timeline stepsexchanged,shipping_updatedandexchange_changed. POST /stores/{store_id}/orders/{order_id}/returnstakesresolution,exchange_itemsand, withapprove,shipping.POST .../returns/{return_id}/approvetakes an optionalReturnShippingbody (instructions,carrier,code,label_url, https only); without instructions the store'sdefault_instructionsare used. 422invalid_shipping.- New:
PUT /stores/{store_id}/returns/{return_id}/shipping(setReturnShipping),PUT .../exchange-items(setReturnExchangeItems, turns a return into an exchange) andPOST .../exchange(exchangeReturn): the return's value goes to the customer's store credit and pays a replacement order (placed_viaexchange,orders.exchange_return_id); 409insufficient_stockbefore any credit moves; 422not_an_exchange,no_customer. Needsorders.writeandorders.refund. ReturnSettingsaddsexchanges_enabled(default true) anddefault_instructions; both optional onPUT.Returnableaddsexchanges_enabledand, per line,product_id,variant_idandexchange_options(variant_id,title,sku,available).- Storefront:
POST /storefront/customers/me/orders/{number}/returnstakesresolutionandexchange_items(other variants of the returned products, no more units than returned): 422exchanges_disabled,exchange_other_product,exchange_exceeds_returned,exchange_variant_not_found,exchange_variant_unavailable,no_exchange_items,duplicate_exchange_item,invalid_resolution.PortalReturnaddsresolution,discount_share_cents,shipping(once approved),exchange_items,exchange_order_numberandexchanged_at;PortalReturnableaddsexchanges_enabledandexchange_options. - New event
returns.exchanged; everyreturns.*payload carriesresolution,exchange_order_idandexchange_order_number. New transactional e-mailsreturns.requested,returns.approved,returns.rejected,returns.received,returns.refundedandreturns.exchanged.
2026-11-02: loyalty points and referrals
- The store's program:
GETandPUT /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/summaryandGET .../loyalty/referrals?status=(pending,rewarded,voidwithvoid_reason). Permissions:credit.readandcredit.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(422invalid_points,note_required,insufficient_points) andPOST .../loyalty/redeem(points into store credit; 422loyalty_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 andshare_path) andPOST /storefront/customers/me/loyalty/redeem;GET,PUTandDELETE /storefront/carts/{cart_id}/referral(a friend's code on the cart: 404referral_not_found, 422referrals_offorown_referral_code, 429rate_limited). In the SDK:client.customer.loyalty.get()/.redeem(points)andclient.cart.referral.get()/.apply(code)/.remove(). - Store credit entries from redeemed points and referral rewards are ordinary
issueentries of the customer's wallet.
2026-11-02: bookings with deposits, packages, classes and more
- Pix deposit:
deposit_centson a service makes the client's booking (POST /storefront/bookings) start aspending_paymentand returnpayment(PixToPay:qr_code,qr_code_base64,amount_cents,expires_at). Paid, it turnsconfirmed; unpaid after 35 minutes,cancelledwithcancelled_bysystem. When the Pix cannot be made: 422payment_unavailableorpix_intent_failed, and nothing is booked.PublicBookingcarriesdeposit_cents,paid_cents,paymentandvideo_url. - Classes:
capacityon a service; slots carryseats_left; 409class_fullandalready_booked. Bookings of one class share anoccurrence_id. - Intake form:
intake_questionsandsensitiveon services; the booking request takesintake([{question_id, value}]) andconsent; 422intake_required,invalid_intake_answerandconsent_required.GET /stores/{store_id}/bookings/{booking_id}/intake(getBookingIntake) and notes atGET/POST .../bookings/{booking_id}/notes,PATCH/DELETE .../notes/{note_id}, only withbookings.notesor 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}/canceland.../resend. On the storefront:package_codeon the booking,GET /storefront/bookings/packages/{code}andPOST /storefront/bookings/packages(bought by Pix).BookingPagecarriespackage_plans,waitlist_enabledandconsent_text. - Waitlist:
GET/POST /stores/{store_id}/booking-waitlist,DELETE .../{entry_id}andPOST /storefront/bookings/waitlist. - Series:
POST /stores/{store_id}/bookings/series(createBookingSeries,every_weeksandcount);following: trueon.../cancelcancels the later sessions. - Providers:
user_id(the team member who signs in with the newbookings.ownpermission),video_urlandgoogle_calendar;POST .../booking-providers/{provider_id}/google/authorize,.../google/completeandDELETE .../googleconnect a Google calendar. New permissionsbookings.ownandbookings.notes; managed set Profissional. - New events for automations and webhooks:
bookings.created,bookings.confirmed,bookings.rescheduled,bookings.cancelled,bookings.completedandbookings.no_show. Team alertsbookings.createdandbookings.attention. - Report
GET /stores/{store_id}/reports/bookings(getBookingsReport) and thebookingskind inreports/export/{report}and scheduled e-mails.
2026-10-26: service invoices (NFS-e)
- NFS-e through the national system (Sistema Nacional NFS-e):
GETandPUT /stores/{store_id}/nfse/settings(getNfseSettings,putNfseSettings: series, default service code, ISS rate, approximate Simples rate),GET .../nfse/readiness,PUT .../nfse/environment(homologacaoorproducao; 409nfse_not_readywhile the checklist has open items) andPOST .../nfse/numbering(the next production DPS number). POST /stores/{store_id}/nfse/previewvalidates a note without issuing it;GETandPOST .../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 .../xmlandGET .../pdf(the DANFSE). A booking can have one live note (source_kindbooking,source_id): 409nfse_exists. Notes arepending,unknown,authorized,rejectedorcancelled. Permissions: settings usestores.readandstores.write; notes usefinance.read/bookings.readandfinance.write/bookings.write.- New workspace feature
nfse, on in theappointmentsandsupportsetups.POST /stores/{store_id}/fiscal/certificatenow 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/settingsreturnsprovider(paulistanaornational), settings takesp_service_code(the city's 4 or 5 digit code) and the issue request takesservice_codeand, for a client abroad,client.place_abroad(an export of services). A note carriesprovider,verification_codeandverification_url; the city has no PDF API (GET .../pdfanswers 409nfse_no_pdf) and its test method creates no note: a note issued inhomologacaothere has no number and cannot be cancelled (409nfse_test_note).
2026-10-25: workspace features
GETandPUT /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 laternfse), the segment it equals (store,appointments,supportorcustom) and what each one requires. Only the owner may change it; 422feature_requireswhen one is on without what it requires. Switching off hides areas of the admin and deletes nothing.GET /me/accesscarriesfeaturesandsegmentfor each store.POST /storestakessegment;kindfollows the features (storewith any selling feature, otherwiseservice).
2026-10-25: bookings
- The services and providers a store offers:
GETandPOST /stores/{store_id}/booking-services(listBookingServices,createBookingService),PATCHandDELETE /stores/{store_id}/booking-services/{service_id};GETandPOST /stores/{store_id}/booking-providers,PATCHandDELETE .../booking-providers/{provider_id},PUT .../booking-providers/{provider_id}/hours(the whole week, in minutes from midnight in the provider's zone) andGET,POSTandDELETE .../booking-providers/{provider_id}/time-off.GETandPUT /stores/{store_id}/bookings/settingsswitch online booking on and set the reminders. - Bookings:
GETandPOST /stores/{store_id}/bookings,GET .../bookings/{booking_id},POST .../cancel,.../reschedule,.../completeand.../no-show, andGET /stores/{store_id}/bookings/availability(the free times of a service;except_bookingoffers times that overlap a booking being moved). Two live bookings of one provider never overlap: the loser gets 409slot_taken. New permissions:bookings.read,bookings.writeandbookings.manage. - Storefront API (
X-Storefront-Key):GET /storefront/bookings/services,GET /storefront/bookings/availability?service_id&from&to,POST /storefront/bookings(returns the client'stoken) and, by that token,GET /storefront/bookings/{token},GET .../availability,POST .../cancelandPOST .../reschedule. 404bookings_disabledwhile the store has online booking off. The client can cancel or move until the service's cutoff; after that, 409cancel_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 (422validation_failedon a value, 409field_managedon the definition); change the specification instead.option_linksgives each option of aselect/multiselectthe 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:
GETandPOST /stores/{store_id}/custom-fields(listCustomFields,createCustomField),PATCHandDELETE /stores/{store_id}/custom-fields/{field_id}(updateCustomField,deleteCustomField). Each field has anentity(customer,productorvariant), a typedkind(text,longtext,number,integer,boolean,date,select,multiselect,email,url,phone,document), and optionalunit,min,max,group,help,label_translations,required,searchable,show_on_storefront(products and variants) andshow_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) andPATCH /stores/{store_id}/variants/{variant_id}/custom-fields(setVariantCustomFields) take{"values": {"<key>": value}}(nullclears).createProductacceptscustom_fields, and everyrequiredproduct field must be in it. Unknown keys and wrong values answer 422validation_failedwith a message per key.getProductandgetVariantreturncustom_fields. - Customers: fields with
show_in_portalappear asfieldsonGET /storefront/customers/me(label, kind, choices, current value), and the customer edits them withcustom_fieldsonPATCH /storefront/customers/me; keys not shown in their account are refused. - Storefront API: products and variants carry
fields, the fields markedshow_on_storefrontthat 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 getproduct.fields,product.field.<key>andvariant.fields; see themes.
2026-10-24: storefront addresses
GETandPUT /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/storefrontkeep 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, withDeprecationheaders. 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 optionalallowed_originsallowlist, revocable). On the store's own domain (its Mobiari address or a custom domain) the key may be omitted. New errors: 401storefront_key_required, 401invalid_storefront_key, 403origin_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 (401not_signed_inotherwise). - 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-Keyand exposesX-Cart-Id.
Paths (every new path is under /v1/storefront)
Before (/storefront-api/{store_slug}) | Now |
|---|---|
/api/products, /api/products/search, /api/categories/{slug}/products | GET /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}/reviews | GET, POST /products/{product_ref}/reviews (POST answers 201) |
.../subscribe ("Avise-me") | POST /products/{product_ref}/subscriptions (201, JSON {email, variant_id?, kind}) |
/locations, /pickup-locations | GET /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/items | POST /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/contact | PATCH /carts/{cart_id}/contact |
PUT, DELETE /api/cart/discount-code | PUT, DELETE /carts/{cart_id}/discount-code |
POST /api/cart/freight/quote | POST /carts/{cart_id}/shipping-quotes |
POST /api/cart/freight/select | PUT /carts/{cart_id}/shipping-option |
POST /api/cart/pickup | PUT /carts/{cart_id}/fulfillment (method: shipping|pickup) |
POST /api/cart/whatsapp | PUT /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/simulate | POST /shipping-estimates |
GET /api/payments/config | GET /payment-methods |
GET /api/payments/installments | GET /installments |
POST /api/payments/intents, GET .../intents/{id} | POST /carts/{cart_id}/payments, GET /carts/{cart_id}/payments/{intent_id} |
POST /api/checkout | POST /carts/{cart_id}/checkout |
/customers/register, /customers/verify | POST /customers (201), POST /customers/verify |
/customers/login, logout, code, code/verify, password/reset | POST /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? }withlimit(1 to 200, default 50),cursor,offsetandinclude_total. This replaces bare arrays and{items, total, limit, offset}, for products, reviews (which addsummary, and always carrytotal), locations, a customer's orders, returns, products and privacy requests. - Money is integer cents. On products and variants,
price_centsis what the shopper pays andcompare_at_centsis the struck-through regular price ornull. Removed: the decimal-stringpriceandsale_price,image_url,image_sizes,status,metadata;image_kindiskind. New:price_range,available,images[],variants[](options,availability,in_stock,available_quantityup 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_optionsisshipping_options(option_id,service_name,carrier_name,shipping_cents,delivery_days,provider_code,service_type,logo; the carrier-specific extras,rawandpriceare gone),selected_freight_option_idisselected_shipping_option_id, andcontact_draft.invalid_fieldslists the contact fields to fix (it replaces theinvalid_fieldsresponse). - Payment:
payment-methodsanswers{ data: [{method, provider_code}], card_public_key }; the payment request is{method, card_token, installments, payer}with nocart_idorcurrency;checkoutanswers{order_id, cart_id, order_number, total_cents, currency}, and 422payment_requireduntil 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 theAddress(201, 200, 204), not the profile; wishlistPUTandDELETEreturn the wholeWishlist.
Errors
- Every error is
{error, code, details}. Codes you can act on are specific:cart_not_found,variant_not_found,insufficient_stock(409,detailshasavailable,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_inand more. The full list, with what to do for each, is the error catalog. - Validation is 422
validation_failedwithdetails.fields.<field>as an array of messages anddetails.codes.<field>. The old string-valued fields and theinvalid_fieldsresponse 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, andGET /customers/me/addresses.- Storefront keys for the admin:
GET,POST /stores/{store_id}/storefront-keysandPATCH,DELETE /stores/{store_id}/storefront-keys/{key_id}(StorefrontKey:id,name,key,allowed_origins,created_at; tag Sales Channels;orders.readto list,orders.editto change). Every store gets aDefaultkey. - In Liquid themes,
routes.api_url(/v1/storefront) andshop.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.rolesispermission_sets(items arePermissionSetSummary:id,name,color,managed),StoreMember.rolesandServiceAccount.rolesarepermission_sets(items areAccessBadge, which also typesStoreMember.groups), andInvitePreview.role_namesispolicy_names. GET /stores/{store_id}/roles/auditisGET /stores/{store_id}/access/audit(listAccessAudit); entries areAccessAuditEntrywithpolicy_idin place ofrole_id.users.manage_permissionsreads "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_teamandaction.approvalrecipients: moderoles(names) ismemberswithgroup_idsandpolicy_ids. - Invites can put the person in groups:
POST /stores/{store_id}/invitestakesgroup_idsbesidespolicy_ids(at least one of the two; what the groups hold must be within the inviter's permissions wherever they reach);StoreInviteandInvitePreviewreturngroup_ids/group_names. NewGET /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-runand.../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}/rolesand the store-scoped/stores/{store_id}/policies*. Invites and service accounts takepolicy_ids(permission sets) instead ofrole_ids;StoreInvitereturnspolicy_idsandpolicy_names.StoreAccess.roles,StoreMember.rolesandServiceAccount.roleskeep their names and list the permission sets reaching the person;StoreMember.groupsis new. GET /stores/{store_id}/access/explainreasons areowner,grant:<policy>@<attachment>,policy:...,cedar:...,token_scopeorengine_error, named "Policy (via Group)".GET /stores/{store_id}/roles/auditkeeps its path and now listsgroup.*,policy.*andattachment.*changes too.
2026-10-23: store mailboxes
- Store mailboxes, see channels:
GETandPOST /stores/{store_id}/mailboxes,POST .../mailboxes/test(checks a login without saving it), andPATCHandDELETE .../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 answersmailbox_exists. Reading needsconversations.read, the restconversations.manage. - Messages from a mailbox carry
sender_verifiedin their e-mail payload (falsefor a sender that fails DKIM and DMARC).
2026-10-23: wishlists
- Wishlists, see wishlists:
GETandPATCH /storefront-api/{store_slug}/wishlist,GET .../wishlist/ids, andPUTandDELETE .../wishlist/items/{product_ref}. A visitor's list is found by thewishlist_idcookie or theX-Wishlist-Idheader (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,removeandsetAlerts, andcatalog.notifyMefor the existing "Avise-me" endpoint. - A signed-in customer's saves arm back-in-stock and price-drop alerts (
product_subscriptionswith sourcewishlist);PATCHwithalerts: falsestops the ones the list made. GET /stores/{store_id}/reports/wishlist(permissionreports.read), also aswishlistin.../reports/export/{report}and in report schedules.- Store routes:
/favoritosandroutes.wishlist_urlin themes; the page is served only by themes that ship awishlisttemplate.
2026-10-22: gift card sales
- Gift cards sold in the online store, see gift cards and credit:
GETandPUT /stores/{store_id}/products/{product_id}/gift-cardflag a product as a gift card (each variant a face value) andPOST /stores/{store_id}/credit/accounts/{account_id}/resendsends the e-mail again. - On the store cart,
POST /storefront-api/{store_slug}/api/cart/gift-cardsadds a card (one per line, with recipient, message, sender anddeliver_on) andDELETE .../api/cart/gift-cards/{item_id}takes the line out.items[].gift_cardcarries that data. In the SDK,cart.addGiftCardandcart.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}/creditreturnsgift_cards_sold, andCreditAccountgainsorder_id,sender_name,deliver_on,delivered_atanddelivery_error.- An order of gift cards is left out of sales reports, the income statement and invoices (
gift_card_orderwhen trying to issue one).
2026-10-21: reports
- Sales and BI reports, see reports:
GET /stores/{store_id}/reports/sales,.../reports/products,.../reports/customersand.../reports/inventory(permissionreports.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,customersorinventory;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 thereports.managepermission.
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,disableandenable),GETandPOST .../customers/{customer_id}/creditandGET .../orders/{order_id}/credit. - The customer side:
GET .../customers/me/credit, and on the cartGET .../api/cart/credit,POST .../api/cart/credit/gift-cards,DELETE .../api/cart/credit/gift-cards/{account_id}andPUT .../api/cart/credit/wallet. In the SDK,cart.creditandcustomer.credit(). - Gift card codes appear whole only when a card is issued and at
POST .../credit/accounts/{account_id}/code(permissioncredit.write); lists and details carry only the last four characters. POST .../returns/{return_id}/refundacceptsdestination(originalorstore_credit) andbonus_percent.- An order partly paid with credit gets a payment from the
store_creditprovider among itspayment_intents, andrefundOrderrefunds the provider first and the credit after it. - New
store_creditvalue inNfePaymentKind(now an extensible enum, likeNotificationKind) and new permissionscredit.readandcredit.write. New error codes:gift_card_not_found,gift_card_disabled,gift_card_expired,gift_card_empty,wallet_emptyandinsufficient_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}/returnableandPOST .../orders/{order_id}/returns. - The customer side, under
.../customers/me:GET orders/{number}/returnable,POST orders/{number}/returns,GET returns,GET returns/{number}andPOST returns/{number}/cancel. - New events
returns.requested,returns.approved,returns.rejected,returns.receivedandreturns.refunded. - New error codes include
return_window_closed,returns_disabled,order_not_paid,order_not_delivered,quantity_exceeds_returnableandinvalid_state.
2026-10-21: server-side ad tracking
PATCH .../marketing/configacceptstiktok_pixel_code,tiktok_access_token,tiktok_test_event_code,ga4_measurement_idandga4_api_secret;GETshowstiktok_*andga4_*as plain values or*_configuredflags (secrets stay write-only).GET .../marketing/conversionsrows gainplatforms: 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}/resendalso resends the TikTok and GA4 purchases.
2026-10-21: social fixes
POST .../social/ai/imagesalso needsfiles.write(the images are saved to the file library), checked before anything is generated, and answers503 images_unavailablewhen Gemini does not answer (worth retrying;422 images_failedstays 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/summarygainstotal, 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
confirmrun only after the customer writes again (see AI actions).
2026-10-21: AI actions
- Actions in the company's system the chat AI can take (see
AI actions):
GETandPUT /stores/{store_id}/ai-actions, andPOST .../ai-actions/{name}/testto call one with sample parameters. Each action is a signed POST (event: "ai.action") to the workspace's https endpoint.
2026-10-21: help center
- A public help center per workspace at
/ajudaon its addresses (see help center):GETandPUT /stores/{store_id}/help-center(enabled,title,intro; answersurlandpublic_articles). - Knowledge base articles gain
public(shown in the help center once published) andslug(its address there, set the first time it is public).
2026-10-21: service workspaces
- Stores gain
kind:store(the default) orservice, a workspace that only serves its customers (inbox, tickets, CRM) without catalog or storefront. Set it inPOST /storesor switch it withPATCH /stores/{store_id}; nothing is deleted either way.GET /me/accesscarries it per store. Aserviceworkspace's storefront hosts serve nothing. - The setup checklist of a
serviceworkspace has its own steps:knowledge,tickets,whatsapp,integration,teamandfirst_conversation.
2026-10-21: customer context
GET .../conversations/{conversation_id}/contextanswers who a conversation's customer is: the signed identity'scontext, what the workspace's context URL returned (cached 10 minutes,?refresh=trueasks again) and the ticket fields with their values. See customer context.- Workspace ticket fields (
text,number,select,date,checkbox):GETandPUT .../ticket-fields. A ticket gainscustom_fields, written byPATCH .../tickets/{conversation_id}(nullclears one;422 validation_failedfor an unknown key or a wrong kind). Tickets also gainorganization. - The inbox settings gain
context_url,context_secret_setandrotate_context_secret; the integration secret appears once, ascontext_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 .../ticketslists them by view (open,waiting_us,breached,mine,unassigned,waiting_customer,resolved), late first;GET .../tickets/summarycounts them and gives the month's first reply times and rating;GET/PATCH .../tickets/{conversation_id}reads and changes one;POST .../conversations/{conversation_id}/ticketturns 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/intentswithmethod: "card"takes nocard_tokenfor such a store and answersnext_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_requiredotherwise), as Pix does.
2026-10-19: AI error statuses
POST .../social/ai/imagesanswers429 images_quotawhen Gemini refuses on quota (the key's project needs billing; the free tier makes no images) and422 images_failedfor Gemini's other refusals, instead of502. Caption and plan failures (assistant_failed) are503instead of502.
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_admarks them;GET .../social/commentstakesis_ad=true|false.
2026-10-19: AI for social posts
GET .../social/aisays which helpers this server offers (text,images).POST .../social/ai/captionwrites 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/imagesmakes 1 to 4 images with Gemini (optionally keeping the product of a library photo), saved to the library;503 images_not_configuredwithout a Gemini key.POST .../social/ai/planplans 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 fieldnotes.
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, andflag: spending_without_sales.PATCH .../social/ads/campaigns/{campaign_id}pauses, resumes or changes the daily budget (409 budget_per_adsetwhen it is spread over ad sets).POST .../social/ads/boostsboosts a published post (engagement or traffic, budget, days, audience); it starts right away. Meta refusals answer502 meta_refusedand leave nothing running.
2026-10-19: social insights
GET .../social/insights(days7 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/refreshasks 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 itsreplies),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) andPOST .../suggest(an AI draft). Calls Meta refuses answer502meta_refusedwith 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/accountslists Instagram accounts and Facebook Pages withcan_publishandmissing_permissions;POST .../social/instagram/authorizeandPOST .../social/facebook/authorizereturn 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 atscheduled_at, now when omitted; retries failed accounts) andPOST .../return(back to draft with a note). A post that cannot go out answers422post_invalidwithdetails.problems; one being published answers409post_not_editable. - New permission
marketing.publish(approve, schedule and publish, connect accounts). Roles that hadmarketing.writewere given it.
2026-10-15: consent center
- Every message to a customer passes a consent check by purpose
(transactional, feedback, marketing). A WhatsApp template send in a
conversation answers
422marketing_consent_required(a MARKETING template to someone without a WhatsApp opt-in) orcontact_opted_out. POST .../customers/{customer_id}/consenttakes anote(how the customer agreed), required to record an opt-in (422consent_note_required).- New:
GET .../consent/overview,GET .../consent/ledger(format=csv),GET/POST/DELETE .../consent/suppressions,GET .../privacy-requests,PATCH .../privacy-requests/{request_id}andPOST .../conversations/{conversation_id}/consent-request. - Storefront: the cart contact takes
email_opt_inandwhatsapp_opt_in;PATCH .../customers/metakes them too; newGET .../customers/me/dataandGET/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,categoryorall, optionaluntil) andPOST .../me/notifications/unread. - One preference grid per member and store, kind by channel (
in_app,push,email,whatsapp):GETandPATCH .../me/notification-preferences.GET/PUT .../me/push-preferenceskeep 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-notificationsandGET/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-logslists 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(andcustomer_id), collapse keys are per subject (order-<id>: "paid" replaces "new"), the badge is the unread notification count, and a fourth Android channelgeneralexists. See push notifications.
2026-10-05: storefront SDK 0.3
@mobiari/storefront0.3:createClienttyped from this API's OpenAPI document, with cart methods (cart.get/add/set/remove/saveContact/ quoteFreight/selectFreight, keepingX-Cart-Idfor 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 ordata-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, orphoneby WhatsApp when the platform has it;purpose: resetfor a password reset) andPOST .../customers/code/verify. NewPOST .../customers/password/resetandPOST .../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.tokenin 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}/pdfandGET .../customers/me/products.- Themes:
/conta,/conta/pedidos,/conta/pedidos/{number},/conta/produtosand/conta/entrarare rendered by the platform inside the theme's layout;customeris set on every page for a signed-in visitor;routes.account_urlis/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}/submissionsandPATCH/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; 422validation_failedlistsdetails.fieldsanddetails.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,createClientand 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/contactstores valid values in canonical form and returnsinvalid_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 withfieldandcode.
2026-10-05: where goods leave from, and pickups
PUT /stores/{store_id}/fiscal/dispatch-placesets 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 asdispatch_place. The NF-e of shipped and picked-up orders then carries it asretirada(draft fieldpickup_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_aton a shipment and checkout quotes follow it. POST .../shipments/{shipment_id}/quotedeclares 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'scarrier_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/correctionslist 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}/refreshsettles one whose answer was lost (unknown);GET .../pdfprints it,GET .../xmldownloads the procEventoNFe.POST .../shipments/{shipment_id}/bookanswers 422nfe_freight_mismatchwhen the NF-e lacks what Central do Frete requires, withdetails.problemsanddetails.suggested_correction. A carta registered for the note counts ascce_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 withorder_id,status,boxes_state,freight_provider_codefilters; create takesorder_idin 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-itemsand/orders/{order_id}/nfestay. - A shipment owns its boxes:
boxes[](sizes in millimetres, weights in grams, what is inside each, withinsidefor 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 needreset_boxes),PUT .../boxes,POST .../boxes/recompute,POST .../pack,GET .../labels.pdf,GET .../packing-list.pdf. - Carrier flow on the saved boxes:
POST .../quoteno longer takesvolumesorinvoice_amount(optionaldestination_postal_code,declared_value_cents, recipient) and keeps the quote on the shipment;POST .../quote/selectchooses an option;POST .../book(was/generate) books it and freezes the boxes, answering 409quote_outdatedwhen the boxes changed since the quote. - Shipping profiles replace box assignment:
GET/PUT /stores/{store_id}/variants/{variant_id}/shipping-profileand/products/{product_id}/shipping-profile(modesown_boxes,from_parts,inside,loose,none);POST /stores/{store_id}/shipping/planpacks any lines without saving. The/variants/{variant_id}/shipping-boxesroutes are gone.listFreightPackagesrows carrymode,profile_level,needs_review,boxesandissues(PlanIssue) instead ofpackages. GET/PUT /stores/{store_id}/shipping/settings: origin address (wins over the carrier integration's config), cubing factor, default carton. Catalog cartons gainitem_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 becomesmade. A component whose own recipe reaches the item is refused (422bom_cycle). Variant recipe lines (setVariantRecipeLine) now accept decimalquantity/packsand items with no variant behind them; an item that mirrors a variant still counts whole units (422whole_units_required). - Breakdown:
GET .../variants/{variant_id}/breakdownandGET .../items/{item_id}/breakdownreturn 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_centsis what a combo's parts would cost bought separately, next to the combo's ownprice_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"),readyputs 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, andPOST .../items/{item_id}/stock/adjustworks 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
setKitBomLineandsetProductBaseLinefollow 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). listVariantRecipenow returns the effective recipe (base lines included) withkindandsourceper line;ItemDetailgainsused_in_itemsandrecipe_lines;MovementReferenceTypegainsproduction_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,shippedordelivered), or the order is markedfulfilledby any path, those units leaveon_handonce: finished units the line holds first, otherwise every part of the kit's recipe (its own holds, then the shelf).order_itemscarrystock_consumed_qty. Simple products are consumed too, which they never were. A shortage on the shelf is written into the movement'snoteinstead of leaving a phantom unit. - Production moves stock.
POST .../build-jobs/{job_id}/starttakes the parts (build_consumemovements,reference_type: "build_job"),status: "ready"puts the finished unit in stock held for its order (build_produce), going back toqueuedorin_progressreturns them, and cancelling a built job frees its unit for sale. New 409build_job_shippedonupdateBuildJobwhen the unit already left. The job'smetadata_json.stockrecords what it took and made. - A kit's finished units count.
available,buildableand 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, anduseStockForOrderItemaccepts such lines (stock_can_coverreports them); 409line_has_partsis gone. - Holds have rows. Every reservation, simple products included, is a row
in
GET .../reservationswith 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_readonlyonreceivePurchaseOrderfor a kit line too); the stock list'sbuildablefloors instead of rounding; the overview's out-of-stock counts leave kits out;required_openonGET .../componentsis the same figure asGET .../stock/parts(queued builds of paid orders beyond what they hold); items'availablefloors 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. UsePOST .../storefront/deployments/draftto start a theme,.../deployments/importto bring files in, and.../deployments/{id}/exportto 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 newdraftdeployment.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 422invalid_draft_filesand nothing is written.GET .../fileslists paths with sizes;GET .../file?path=reads one file's full content.POST .../deployments/{deployment_id}/ready: revalidates everything and flips the draft toready(422draft_not_readynames every problem), after which preview hosts and promote treat it like any build.StorefrontDeploymentStatusgainsdraft,StorefrontDeploymentTriggergainsai; 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 anchorededits(eachold_stringmust occur exactly once) so large files change without resending them whole. POST .../deployments/{deployment_id}/files/assetsuploads one binary image or font (multipartfile + 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}/exportdownloads a deployment as a zip (relative paths);POST .../deployments/importtakes such a zip back in as a newmanualdraft, 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:
ManualSaleFreightacceptspickup_location_idfor a store location with pickup enabled. A pickup sale needs nodestination_postal_code(now optional) andshipping_centsis the operator-typed fee. A hand-typedother_carrierprice 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 draftpickupshipment holding every unit, so marking it delivered fulfills the order like any delivery. ManualSaleResponseanswersfulfillment_methodandpickup_location_id. New 422invalid_pickup_locationfor 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_packageships 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
FreightIssueCodevalues:recipe_cyclewhen a recipe points back to itself, andfractional_package_countwhen a package quantity is not whole (freight rounds up rather than underquoting). PackageSourcepartis now a warehouse item;source_idis the item id.WeightOriginownis 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:
PurchaseOrderLineInputaccepts eitherquantity_orderedin base units, orpack_idwithpacks_ordered.unit_cost_centsis the cost of the chosen purchase unit. Pack lines snapshot the pack name, conversion and supplier SKU, whilequantity_orderedin responses remains the converted base-unit quantity used by incoming-stock projections.PurchaseReceiveLineaccepts eitherquantityin base units orpacks. 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 422pack_not_found; a pack conversion that is not a whole stock unit answers 422pack_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 itsbase_unit, its packs and its opening stock (initial_on_handatlocation_id, written to the ledger as anopening_balancecount) in one call. A SKU already in use answers 409sku_taken.PATCH /stores/{store_id}/items/{item_id}now also takesname,sku,cost_cents,reorder_point,reorder_quantity,allow_backorder,weight_gramsand thelength_cm,width_cm,height_cmsize.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 ofpack_id(delta_packs,set_to_packs: 2 boxes of 4 is +8 un). Exactly one of the four; the pack forms without apack_idanswer 422pack_required, and a count that is not a whole number of units answers 422pack_not_whole_units. Same ledger entry, webhooks and refusals asadjustVariantStock(409insufficient_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).PUTandDELETEon/stores/{store_id}/variants/{variant_id}/recipe/{item_id}: set a line in base units (quantity) or in whole packs (packsofpack_id); the line remembers the pack, and a later edit in units drops it. 422ambiguous_quantitywhen both are sent; 422bom_cyclewhen 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 beok; one that is not names what drifted, andPOST /stores/{store_id}/items/syncre-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}/itemsandGET /stores/{store_id}/items/{item_id}: purchased parts and made sub-assemblies with abase_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,descriptionandships_as_package.POST,PATCHandDELETEon/stores/{store_id}/items/{item_id}/packs: named conversions to the base unit ("Caixa c/ 4" = 4 un). A duplicate name answers 409pack_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 itssource:part,box,variantordefault; size in cm, weight in kg, thedefaultedfields and theweight_origin), astatus(complete,estimated,not_shipped) and theissuesbehind 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 ownlength_cm,width_cm,height_cmandweight_grams(nullclears 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 itsshipping_weighttext, before the 1 kg default. - A shipping box counts
quantityboxes 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 answersno 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 itspartswithquantity_required, shelf stock,demand(what the queued builds of paid orders still need),missingandincoming, and the variant'sbuildableandlimiting_part.statusfilters byin_stock,low,outormissing_parts;searchmatches 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 andused_in.GET /stores/{store_id}/stock:searchalso 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 astage(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 lastdone_daysdays (default 7);order_idfinds 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_unitson each row ofGET /stores/{store_id}/ordersanddelivered_quantityon each order line: units that a delivered shipment brought to the customer.fulfillment_statusalone cannot say this, since an order closed by hand isfulfilledwith nothing delivered. - Build jobs:
line_shipped, true once every unit of the job's order line has left in a shipment or the order isfulfilled.
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 getsstages(ordered,partsandproductionfor made-to-order lines,shipped,delivered), eachdone,current,blockedorupcoming, withat,expected_atandlate. 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_(wasbod_). Existingbod_tokens are accepted until they are rotated or revoked; rotating one returns amobi_st_value. - Refresh tokens now start with
mobi_rt_(wasbpr_). Abpr_token still trades atPOST /v1/auth/refresh, for amobi_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 assource-urlparts. 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_planwhen 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: aPageof 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 /tenantsaccepts an optionalplan_code(the plan to try). A new organization starts a 14-day trial and defaults toBRL,America/Sao_Pauloand the caller's language.- New error codes, status 402:
plan_limit_reached(withlimit,max,used,planindetails) fromPOST /storesandPOST /stores/{store_id}/invites;subscription_inactivefrom those and from the assistant chat when the subscription is suspended or canceled. GET /stores/{store_id}/assistant/usage:capis now the plan's monthly limit per store instead of a fixed 500.- Storefront themes: new
routes.products_url(prefix of product pages), andshop.currencyis the store's currency (BRL) so| moneyprintsR$ 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/v1and switch every moved path to its new one. - Branch on the error
code, not on theerrortext; expect 422validation_failedwhere you handled 400. - Treat any 2xx as success: many creates now answer 201 and many actions 204 with no body.
- Read lists from the
Pageenvelope (data,next_cursor) and passinclude_total=truewhere you show a total. - Send an
Idempotency-Keyon POSTs you retry, such as orders, refunds and messages. - If you sign in with a password, keep the
refresh_tokenand callPOST /v1/auth/refreshwhen 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,Sunsetheaders. See Deprecation. - An unknown path under
/v1returns 404route_not_found. - Two OpenAPI documents describe the documented surface:
admin.jsonandstorefront.json. The API reference is generated from them.
Errors have a code
- Every error response is now
{"error": "<message>", "code": "<stable_code>", "details"?: {...}}. codeis new and stable: branch on it.errorkeeps the message, so clients that readerrorkeep 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 underdetails. - Validation failures are 422
validation_failedwith per-field messages indetails.fields.
See Errors.
One list envelope: Page
- Lists return
{"data": [...], "has_more": bool, "next_cursor": string | null}, plustotalwhen you passinclude_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 opaquecursor;offsetremains for jumping to a page, in place ofpageparameters. totalis no longer computed by default.
See Pagination.
Idempotency keys
- New: send
Idempotency-Keyon a POST to make retries safe. Replays within 24 hours return the original response withIdempotent-Replayed: true. - New error codes: 409
idempotency_request_in_progress, 422idempotency_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-RemainingandRateLimit-Reset. - Over budget: 429
rate_limitedwithRetry-After.
See Rate limits.
Sessions with refresh tokens
- New:
POST /v1/auth/loginreturnstoken,refresh_token(bpr_…),expires_inandtoken_type, or a two-factor challenge, told apart bystatus. It supersedesPOST /login, whose token lasted 24 hours and could not be renewed. - New:
POST /v1/auth/refreshtrades a refresh token for a new pair. Refresh tokens rotate on every use; reusing one revokes the whole session (401refresh_token_reused). - New:
POST /v1/auth/logout,GET /v1/me/sessionsandDELETE /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/v1form and sends noDeprecationheader: switch to the new path. Pagemarks a list that now answers thePageenvelope; 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 addsrefresh_token,token_type,expires_in,refresh_token_expires_inandsession_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 (401invalid_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_codeandtoo_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, notrefresh_token_reused.
Me
GET /totp-setup→GET /me/2fa/totp/setup. Old path still answers.POST /enable-totp→POST /me/2fa/totp/enable. Old path still answers.- 204 with no body (was text or
{"status": ...}): enable TOTP, disable TOTP, confirm WhatsApp 2FA, disable WhatsApp 2FA, change password. - Enabling TOTP twice is 409
totp_already_enabled; a wrong current password is 400incorrect_password. PATCH /me:localeaccepts onlypt-BRoren-US; other values are rejected (were coerced).- Changing the password signs out every other session.
Tenants
GET /tenants:Page.POST /tenantsanswers 201; a duplicate name is 409slug_taken.- Security: reading and updating a tenant require the permission in that tenant, not in any store you belong to.
Stores
GET /stores:Page.POST /storesanswers 201; it checks the permission in the target tenant (403missing_permission) and a duplicate name is 409slug_taken.PATCH /stores/{store_id}/settings: invalid values are 422validation_failed(were 400).
Team
Page:GET /users, members, invites, roles, a user's roles, role audit.- Security:
GET /userslists 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
GET /stores/{store_id}/api-tokens:Page.- Security: rotating another
user's token is 403
not_token_owner(it returned that token's secret).
Webhooks
/webhook-events→GETandPOST /stores/{store_id}/webhooks/{webhook_id}/events,DELETE .../events/{event}. Old path still answers.Page: webhooks, deliveries, webhook events.POST /stores/{store_id}/webhooksanswers 201.- Security:
DELETEchecks that the webhook belongs to the store in the path.
Events
GET /stores/{store_id}/events:Page(was{events, total, limit, offset}).
Audit
GET /stores/{store_id}/audit:Pageof events (was{events, actions}). The action list moved toGET /stores/{store_id}/audit/actions.- The audit log was always empty (a query error); it now returns entries.
Places
GET /places/autocomplete:Page.
Products
/product-variants→/stores/{store_id}/products/{product_id}/variantsand/stores/{store_id}/variants/{variant_id}. Old path still answers./product-variants/{id}/optionsand/variant-options→/stores/{store_id}/variants/{variant_id}/options. Old paths still answer./option-groups→/stores/{store_id}/products/{product_id}/option-groupsand/stores/{store_id}/option-groups/{option_group_id}. Old path still answers./option-values→/stores/{store_id}/option-groups/{option_group_id}/valuesand/stores/{store_id}/option-values/{option_value_id}. Old path still answers.GET /stores/{store_id}/products:Page(was{products, total, page, limit});page,per_pageandsort_orderare gone.Page: variants, option groups (now with their values), option values, images, suggested products, slug redirects, spec suggestions (was{values}).- Product
statusis snake_case (draft,active,archived); capitalized input is still accepted. Optiongroup_typeis an enum. Webhook payloads keep their old casing. - Get, create and update return the full product; create answers 201 (was a 6-field summary). A clashing slug is made unique (was a 500).
- 201 on create for variants, option groups and option values. Assigning a variant option returns the variant with its options; setting suggestions answers 204.
- New error codes:
product_not_found,variant_not_found,sku_taken,slug_taken,invalid_color,image_not_found; 409product_has_orders,variant_has_orders,variant_has_stock,option_group_in_use,option_value_in_use. - Deleting a product removes its variants (was a 500); a product with orders is refused.
- Explicit
nullclears a variant's barcode, compare-at price, cost and lead time. - Product specs: a bad value
is 422
invalid_spec_value(was 400). - Updating a product no longer drops sale, shipping, custom label and custom number fields.
- Security: suggested products, variant reorder, image edits and variant option values are checked against the store and product in the path.
- Removed:
DELETE /dev/products, which wiped every store's catalogue for any signed-in user.
Categories
GET /stores/{store_id}/categories:Page, every category by default; filter withparent_idorroot_only.- Create answers 201 and needs
categories.write(wascategories.read); create and update no longer fail with a 500. - Adding a product to a category
answers 204 (was
{message}). - New error codes:
category_not_found,category_has_children. Explicitnullclearsdescriptionand the parent. GET /taxonomy/search:Page(was{categories}), no token needed.GET /taxonomy/by-idreturns one category or 404taxonomy_category_not_found.
Collections
GET /collection-products→GET /stores/{store_id}/collections/{collection_id}/products. Old path still answers.Page: collections, collection products ({product_id, title, position}rows, were ids), a product's collections (collection rows, were ids).- Create answers 201;
adding a product
answers 204 (was
{message}); unknown ids are 404collection_not_found. Explicitnullclearsdescription. - Security: updating can no longer touch another store's collection.
Product feeds
/product-feeds,/product-feeds/{id}and/product-feeds/{id}/generate→/stores/{store_id}/product-feeds/.... Old paths still answer./product-feed-overrides→/stores/{store_id}/product-feeds/{feed_id}/overrides. Old path still answers.Page: feeds, overrides. Creates answer 201.- The feed
channelis snake_case. New error codesfeed_not_found,override_not_found. - Security: overrides for another store's product are refused.
Files
GET /tenants/{tenant_id}/files:Page(was{files, total, limit, offset}).Page: folder files, search, connected products.- Delete answers 204 (was 200); creating a folder answers 201.
- New error codes:
file_not_found,folder_not_found,folder_exists,file_not_image,invalid_image, 413file_too_large. - Explicit
nullmoves a file out of its folder.
Inventory
- Store-owned routes moved from
?store_id=or a bodystore_idto/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/adjustand/stock/transfer→POST .../variants/{variant_id}/stock/adjustand.../transfer;/stock/reorder→PUT .../stock/reorder(now PUT). Old paths still answer./stock-items,/component-inventory,/inventory-eventsand/product-variants/{id}/set-stockstay at the root only, undocumented.Pagefor 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 plusitems. - 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_atis RFC 3339 (was epoch milliseconds). reason,kindandstatusare enums: an unknown reason is 422 (was stored ascorrection).- A negative adjustment beyond on-hand stock is 409
insufficient_stock(was clamped); the transfer codeinsufficient_availablebecameinsufficient_stock. - Stock writes are 409
logical_stock_readonlyon kits and 409inventory_managed_externallyon stores whose stock an ERP owns (unlessforce). - An inventory location's address is plain text (was JSON-encoded).
- Security:
/stock-itemsand/component-inventorylisted every store's stock; adjustments and counts accepted other stores' variants and locations. Both are scoped to the store now.
Purchasing
/suppliers,/purchase-ordersand/stock/reorder-draft→/stores/{store_id}/suppliers,/stores/{store_id}/purchase-orders,/stores/{store_id}/stock/reorder-draft. Old paths still answer.Pagefor lists; creates answer 201 with the resource.- A purchase order is
flattened:
{order, lines, receipts}→ the order's fields pluslinesandreceipts. - Security: purchase orders, receipts and reorder drafts refuse other stores' suppliers and variants.
Manufacturing
/componentsand/build-jobs→/stores/{store_id}/components,/stores/{store_id}/build-jobs. Old paths still answer./product-variants/{id}/components→/stores/{store_id}/kits/{variant_id}/bom. Old path still answers.Pagefor lists; creates answer 201 with the resource.- Security: component creation and bill-of-materials lines refuse other stores' variants.
Shipping boxes
/shipping-boxes→/stores/{store_id}/shipping-boxes. Old path still answers./product-variants/{id}/shipping-boxes→/stores/{store_id}/variants/{variant_id}/shipping-boxes. Old path still answers.- Box dimensions are numbers (were decimal strings).
- Security: a variant's boxes refuse another store's box.
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 isprovider_token_missing. - Security: creating or updating an ERP provider masks its secrets (they were echoed back).
Orders
GET /stores/{store_id}/orders: alwaysPage(was a bare array or{orders, total, limit, offset}).statusis an enum (unknown values 400).- List rows drop
freight_quote_id,freight_snapshot_json,freight_external_order_codeand 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 .../statusenforces the lifecycle: 409invalid_status_transition.shipped,delivered,confirmedandprocessingare no longer accepted (422); the codestatus_not_settableis gone.POST .../orders/manualanswers 201. Errors carry codes: 422invalid_manual_discount,invalid_shipping,invalid_postal_code,pix_intent_failed; 404variant_not_found; 409insufficient_stock,insufficient_component_stock(extra fields moved underdetails)./order-item-adjustments→/stores/{store_id}/orders/{order_id}/adjustments. The old path is removed (it always failed with a 500).- Removed:
/fulfillmentsand/fulfillments/{id}(always failed with a 500). - Security:
POST /ordersrefuses other stores' variants, customers and sales channels; a status change checks the store before releasing stock.
Carts
GET /stores/{store_id}/carts:Page;statusis an enum and rows gainkind.GET .../carts/{cart_id}returns the cart's fields withitems(was{cart, items}).
Quotes
GET /stores/{store_id}/quotes:Page(was{quotes}, capped at 200).- Quote
statusisopen,expiredorconverted(wasaberta,expirada,convertida). - Create answers 201. Errors carry
codes: 422
empty_quote,invalid_max_installments,invalid_discount; 409insufficient_stock; 404variant_not_found,customer_not_found,sales_channel_not_found. - Security: a quote refuses another store's customer and sales channel.
Shipments
Page: an order's shipments, unshipped items, freight cancel reasons.- Errors carry codes: 409
no_freight_order, 422nfe_required, andfreight_*codes (422, 404 or 502). - Quoting a shipment takes
invoice_amount_cents;invoice_amountis deprecated.
Payments
POST .../orders/{order_id}/refundanswers 201 with the refund (was{ok, intent_id, ..., provider_response}).- Refunds:
amount_centsbelow 1 is 422; above the refundable balance is 422refund_exceeds_refundable(was silently capped); no approved payment is 409no_refundable_payment. - Refunded orders are marked
refundedorpartially_refunded; the payment status gainspartially_refunded. - Your
Idempotency-Keyon 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(seeGET /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
- Freight providers:
Page; a duplicate is 409freight_provider_exists; cargo types errors carry codes. - Security: creating or updating a provider masks its secrets (carrier tokens were echoed).
- Delivery zones:
Page; create answers 201 with the zone (was{id}); update answers 200 with the zone (was 204).
Locations
GET /stores/{store_id}/locations:Page.- 409
location_slug_takenon a duplicate slug; 409location_in_useon delete.
Discounts
/discount-codes,/discount-codes/{id}and/discount-codes/validate→/stores/{store_id}/discount-codes/...;store_idleaves the body and query. Old paths still answer.- Discount codes:
Page; create answers 201;expires_atis a date-time (bad input 422, was a server error); 409discount_code_exists,discount_code_in_use. - Validate answers
discount_type: null(was"unknown") and areasonenum. - Automatic discounts:
Page;kindandcondition_payment_methodare enums. - Explicit
nullclears nullable fields on update, for codes and automatic discounts.
Sales channels
/sales-channelsand/sales-channels/{id}→/stores/{store_id}/sales-channels/.... Old paths still answer.Page; create answers 201;channel_typeis 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
GET /stores/{store_id}/reviews:Page(was{items, total, pending_count}).PATCH .../reviews/{review_id}requiresstatus(an enum; 422 otherwise).
Customers
GET /stores/{store_id}/customers:Page(was{customers, total, page, per_page, vip_threshold_cents});pageandper_pageare gone;lifecycleis an enum filter.- Customer search also matches full name, company, document and phone digits.
GET .../customers/{customer_id}dropsrecent_orders;ordersholds the 50 newest.- Create answers 201; a
duplicate e-mail is 409
customer_email_exists; unknown ids are 404customer_not_found. - Interactions:
Page; 404 for a customer of another store. /customer-addressesand/customer-addresses/{id}are removed (they failed on every call); useGET .../customers/{customer_id}/addresses(Page).Page: timeline (was{events}), duplicates (was{groups}).- Merge answers
{into, removed, tables}(nook); merging a customer into itself is 422same_customer. - Erase answers
{erased, skipped}(nook). - 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 toGET .../conversations/counts.- The list's
q→searchandchannel→channel_kind;status,priorityandsortare enums (allis no longer accepted); open conversations are no longer listed first. - Messages:
Page, newest first;beforetakes 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}(nook); an unknown action or value is 422. GET .../cartreturns the cart or 404no_cart(was{cart}); item endpoints return the cart (were{cart}or{cart, conversation}).PUT .../cart/customerreturns 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(wasdelivered). - Security:
PATCHrefuses another store's customer and assignees outside the store's team (422); typing events are limited to the store's conversations.
Conversation settings
Page: channels, canned replies. Creates answer 201.- Deleting an unknown channel or canned reply is 404 (was 204).
GETandPUT .../conversations-aiuse flat bot settings (was{settings, flags}).
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.
Page: templates, broadcasts, broadcast recipients.- Segments:
Page(was{segments, fields}); fields moved toGET .../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,modeandmatchare 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: 503assistant_unavailable, 502assistant_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
GET .../email-templates:Page(was a bare array).- Test and
settings test sends
answer 204 and fail with 502
email_send_failed(were 200{ok}, 422{ok: false}or 502{error: "send_failed"}). - Resetting an unknown event is 404.
Email deliverability
Page: domains (was{domains, region}), suppressions (was{suppressions}).- Adding a domain
answers 201; 409
email_domain_taken; 502ses_error. - Adding a suppression answers 201 with the row (was 204).
- Deleting an unknown domain or suppression is 404.
Ads
- Audiences:
Page(was{audiences, meta_configured}); the flag moved toGET .../ads/connection. - Create answers 201 with the
audience (was
{id, name, status}); sync returns the audience (was{ok, count}) and fails with 502meta_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}). kindand the settablestatusare enums (unknown values 422, were 400).- Publish with errors is 422
workflow_invalidwithdetails.problems(was{problems}). - New codes: 409
workflow_not_published(resume),run_not_active(cancel),run_active(retry),run_not_awaiting_approval(approval); 422run_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-startand/assistant/phones/verify-complete→/stores/{store_id}/assistant/.... Old paths still answer.store_idleaves the chat body.Page: conversations (?search=;?q=still accepted), actions (was the 100 newest), phones.- 429
assistant_cap_reached(was plain text); 503assistant_unavailable; 403not_a_memberormissing_permission. - Undo: 409
action_already_undone, 422undo_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 502whatsapp_send_failed(was 200{ok: false, message}). - Verify complete
returns the linked phone (was
{verified: true}); a wrong code is 422invalid_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 tomarketing.read); sending that value back keeps the stored secret.
Brand
- Errors carry codes (were plain text or bare statuses): 503
assistant_unavailable; 422brand_sources_missing,brand_system_missing,file_missing,invalid_package,invalid_asset; 404brand_job_not_found; 403missing_permission. - Export without a brand
system is 404
brand_system_missing. - Asset upload answers 201 (was 200).
- Job records:
kindandstatusare enums;started_atis a timestamp;already_runningis omitted when false. PUT .../brand-kitanswers{kit, font_presets}likeGET(was{kit}); import fails with 422brand_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.readorcms.write(any signed-in user could read and edit any store's pages). - Deployments:
Page(was the 20 newest as a bare array);statusandtriggered_byare enums. - Promote: 409
deployment_not_readyorstorefront_repo_not_connected(were plain text). POST /preview-auth/grant:expires_atis RFC 3339 (was a Unix timestamp).- Domains:
Page; add answers 201 and no longer fails with a 500; 422invalid_hostnameorreserved_suffix(were 400). - Setting a primary domain
that is not verified is 409
domain_not_verified. - GitHub repos:
Page.
Content
Page: CMS collections, CMS documents.
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 ofrevenue_centsandrevenue_change_pct. - Dashboard revenue counts paid orders only:
revenue_seriesno longer includes unpaid orders. - Dashboard days follow the store's time zone (returned as
timezone):7d,30dand90dare 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
PATCHno longer reports success when the write failed. Page: top pages, top referrers, top events (were bare arrays with?limitup to 200).- Recent events:
Pagewith 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_statusandgoogle_ads_statusare enums (sending,sent,failed,skipped), and the skip reason moved togoogle_ads_skip_reason. - Insights:
touchis an enum; unknown values are 400 (were read aslast_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, 502meta_catalog_error;resultisnullwhen nothing was pushed (was the text"no active variants").
Storefront API
- Shopper endpoints keep their paths, requests and responses; deployed
themes work unchanged.
/v1also answers on store domains. - Security:
POST /storefront/ordersaccepts 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.