1. Store
Wazapi
  • Raiz
    • Channels
      • List messaging channels
      • List channel events
      • Retire or un-retire a channel
    • Contacts
      • List contacts
      • Create a contact
      • Get a contact
      • Update a contact
      • Block a contact
      • Unblock a contact
      • Create or update a contact by external ID
      • List custom field definitions
      • Create a custom field definition
      • Update a custom field definition
      • Read conversation panel configuration
      • Update conversation panel configuration
      • Read unanswered conversation mode
      • Set unanswered conversation mode
      • Read ownerless conversation fallback
      • Configure ownerless conversation fallback
      • Preview or apply fallback to current ownerless stock
    • Flows
      • List flows
      • Get a flow
      • Start a flow execution
    • Templates
      • List WhatsApp templates
      • Get a WhatsApp template by name
      • Create an authentication template
    • Messages
      • Send a WhatsApp message
      • List messages in a conversation
      • React to a conversation message
    • Operations
      • Get an asynchronous operation
    • Conversations
      • List conversations
      • Get a conversation
      • Read a conversation select list
      • Replace a conversation select list
      • Patch conversation custom field values
    • Webhooks
      • Receive an event from Wazapi
      • List the integration webhooks
      • Register a webhook
      • Replace a webhook URL and events
      • Delete a webhook
      • Rotate a webhook signing secret
      • Send a test event
    • Store
      • Get the store summary
        GET
      • List store products
        GET
      • Create a store product
        POST
      • Create or update store products in batch
        POST
      • Get a store product
        GET
      • Update a store product
        PATCH
      • Delete a store product
        DELETE
      • List store categories
        GET
      • Create a store category
        POST
      • Update a store category
        PATCH
      • Delete a store category
        DELETE
      • List store orders
        GET
      • Create a store order
        POST
      • Get a store order
        GET
      • Transition an order status
        POST
      • List coupons
        GET
      • Create coupon
        POST
      • Replace coupon using current version
        PUT
      • Read agent discount policy
        GET
      • Replace agent discount policy
        PUT
      • List shipping options
        GET
    • CRM
      • List CRM stages
      • Create a CRM stage
      • Update a CRM stage
      • Delete a CRM stage
      • Reorder the stages of a board
      • List CRM opportunities
      • Create a CRM opportunity
      • Get a CRM opportunity
      • Update or move a CRM opportunity
      • Archive a CRM opportunity
      • Upsert a CRM opportunity by external ID
      • Upsert up to 100 CRM opportunities
    • Groups
      • List support groups
      • Get a support group
      • Update group waiting and distribution options
      • Read daily group distribution report
    • Entries
      • Read company entry settings
      • Update company entry settings
      • Read flows entries
      • Update flows entries
      • Read keywords entries
      • Update keywords entries
      • Read ai-agents entries
      • Update ai-agents entries
    • Automation settings
      • Read the stalled bot watchdog settings
      • Configure the stalled bot watchdog
    • Settings
      • Preview or recalculate team waiting markers
    • Knowledge
      • List knowledge sources without secrets
      • Create authenticated URL knowledge source
      • Update URL source configuration
      • Queue forced URL reread (may spend embeddings)
    • AI summaries
      • getAiSummarySettings
      • updateAiSummarySettings
      • getAiSummaryCosts
      • Preview a paid AI summary without operational writes
    • AI agents
      • Read AI usage and estimated cost by agent and day
      • List live company queries without credentials
      • Create a fixed HTTPS company query
      • Update a live company query
      • Delete query and remove it from company agents
      • Test GET without AI; also accepts inactive queries
      • Read agent configuration including allowed queries
      • Set agent query allowlist; empty list removes permissions
      • List reply guard rules
      • Create an ensaio reply guard rule
      • Patch reply guard rule
      • List reply guard hits
    • AI duty
      • Read AI duty settings
      • Replace AI duty settings
      • Preview or dismiss open AI seller tasks in bulk
  • Esquemas
    • PaginationMeta
    • KnowledgeUrlCreate
    • KnowledgeUrlPatch
    • Contact
    • KnowledgeSource
    • KnowledgeSourceResult
    • KnowledgeSourceList
    • Conversation
    • Channel
    • Flow
    • Template
    • Recipient
    • Message
    • ContactWrite
    • Operation
    • WebhookEventType
    • Error
    • WebhookEvent
    • WebhookTracking
    • MessageReceivedData
    • MessageStatusUpdatedData
    • MessageRequest
    • message.transcribed
    • MessageTranscribedData
    • message.updated
    • MessageUpdatedData
    • message.deleted
    • MessageDeletedData
    • MessageDeliveryError
    • ConversationCreatedData
    • ConversationUpdatedData
    • FlowExecutionUpdatedData
    • WebhookTestData
    • message.received
    • message.status.updated
    • conversation.created
    • conversation.updated
    • flow.execution.updated
    • webhook.test
    • ConversationDetail
    • StoreProductVariant
    • StoreOrderItem
    • StoreSummary
    • StoreProduct
    • StoreProductBatchResult
    • StoreProductWrite
    • order.created
    • StoreOrder
    • StoreCategory
    • StoreOrderPayment
    • StoreCategoryWrite
    • StoreOrderAgent
    • StoreCategoryPatch
    • OrderCreatedData
    • DiscountRules
    • StoreCouponInput
    • StoreProductPatch
    • StoreCoupon
    • AgentDiscountPolicyInput
    • OrderStatusUpdatedData
    • TemplateSendComponents
    • order.status.updated
    • StoreShippingOption
    • StoreOrderCreate
    • ContactTracking
    • CrmStage
    • CrmStageWrite
    • CrmStagePatch
    • CrmOpportunity
    • CrmOpportunityWrite
    • CrmOpportunityPatch
    • CrmOpportunityEventData
    • crm.opportunity.created
    • crm.opportunity.updated
    • crm.opportunity.stage_changed
    • crm.opportunity.archived
    • ConversationWebhookSnapshot
    • ConversationAssignedData
    • ConversationStatusChangedData
    • conversation.assigned
    • conversation.status_changed
    • ConversationWebhookActor
    • ConversationPanel
    • FieldOption
    • SupportGroup
    • FieldOptions
    • SupportGroupWaitPatch
    • FieldOptionsPatch
    • CustomFieldDefinition
    • CustomFieldCreate
    • CustomFieldPatch
    • ConversationFieldSnapshot
    • ConversationSelectSnapshot
    • ConversationFieldChange
    • conversation.fields_changed
    • ConversationFieldOptions
    • ConversationPanelPatch
    • ConversationFieldActor
    • EntryKind
    • EntrySettings
    • ConversationFieldsChangedData
    • CrmOpportunityUpsert
    • GroupDistributionReport
    • CrmOpportunityUpsertItem
    • CrmOpportunityUpsertResult
    • CrmOpportunityUpsertBatchResult
    • FlowEntries
    • StaleSessionSettings
    • StaleSessionSettingsPatch
    • MessageQuoteContext
    • TeamReplyRecalculation
    • InboxResponseSettings
    • OwnerlessFallbackPatch
    • OwnerlessFallbackSettings
    • OwnerlessFallbackApplication
    • AiSummarySettings
    • AiSummarySettingsPatch
    • AiSummaryUsage
    • AiSummaryCostReport
    • conversation.status_changed
    • AiAgentUsageDay
    • AiAgentUsage
    • ChannelActor
    • ChannelEvent
    • ChannelEventPage
    • ChannelAccountRejection
    • channel.status_changed
    • channel.account_status_changed
    • FlowMonitoringRule
    • EffectiveFlowMonitoringRule
    • MessageReactionResult
    • CompanyQueryParameter
    • CompanyQueryCreate
    • CompanyQueryPatch
    • CompanyQueryResult
    • CompanyQuery
    • CompanyQueryList
    • CompanyQueryTestResult
    • CompanyQueryTestInput
    • AiAgentQueryPatch
    • AiAgentQueryResult
    • CompanyQueryDeleteResult
    • ReplyGuardRuleCreate
    • ReplyGuardRulePatch
    • ReplyGuardRule
    • ReplyGuardRules
    • ReplyGuardSaved
    • ReplyGuardHit
    • ReplyGuardHits
    • ChannelRetirement
    • ChannelRetirementResult
    • AiDutySettingsResponse
    • AiDutySettings
    • WebhookEndpointWrite
    • WebhookEndpoint
    • WebhookEndpointWithSecret
    • MessageSendFailedData
    • message.send.failed
    • AiDutyPlantao
    • conversation.fields.updated
    • FieldMirror
    • ConversationFieldsUpdatedData
    • AiDutyDailyTriggerCounters
    • RateLimitError
    • AiDutySettingsRead
    • TemplateCreateRequest
    • QueuePolicy
    • QueuePolicyPatch
    • DismissAiSuggestionsInput
    • DismissAiSuggestionsResult
  1. Store

Create a store order

POST
/store/orders
Records a sale closed outside the storefront, with source: api. Prices come from the catalog, stock is reserved, free shipping applies, and the store does not need to be published. The order runs the store automation: inbox card, the store_order default flow, payment reminder, CRM opportunity and the order.created webhook — so the buyer may receive WhatsApp messages. Requires the store:orders scope, which store:write does not grant.
Idempotency-Key is required. Repeating the key with the same body returns the same order (201, Idempotent-Replayed: true) with no side effect, except that a mark_paid request whose order is still novo or confirmado (the first attempt failed after creating it) finishes the payment; a different body, mark_paid included, answers 409 idempotency_conflict.
Errors (422 unless noted): product_unavailable (with details.product_uuid), variant_required, variant_unavailable, out_of_stock, shipping_unavailable, invalid_items, invalid_quantity, invalid_total, store_disabled (the store was never opened in the dashboard), idempotency_key_required (400), idempotency_conflict (409), storefront_not_allowed (403). (API 1.19)

Requisição

Parâmetros Header

Parâmetros Bodyapplication/jsonNecessário

Examples

Respostas

🟢201Criado
application/json
Order created, or the same order on an idempotent replay
Headers

Bodyapplication/json

🟠400Requisição Inválida
🟠401Não Autorizado
🟠403Proibido
🟠409
🟠422Erro de Parâmetro
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/store/orders' \
--header 'Idempotency-Key;' \
--header 'Content-Type: application/json' \
--data '{
    "customer_name": "string",
    "customer_phone": "stringst",
    "items": [
        {
            "product_uuid": "ef6d6af2-aef1-49f6-a502-cfed9e6fd1a9",
            "variant_uuid": "0770eee5-321d-4bad-a2b7-4254a295d56a",
            "quantity": 1
        }
    ],
    "shipping_option_uuid": "7692cfb2-6e50-4aad-906c-7c527357fcc9",
    "payment_method": "pix",
    "notes": "string",
    "mark_paid": true
}'
Response Response Example
201 - Exemplo 1
{
    "data": {
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
        "ref": "string",
        "status": "novo",
        "customer_name": "string",
        "customer_phone": "string",
        "customer_email": "user@example.com",
        "customer_document": "string",
        "contact_uuid": "ef88867c-78a0-4c23-93c5-269f718bc3e8",
        "conversation_uuid": "f81f7689-2025-4406-9d8e-9f897908652d",
        "items": [
            {
                "product_uuid": "ef6d6af2-aef1-49f6-a502-cfed9e6fd1a9",
                "product_external_id": "string",
                "name": "string",
                "variant_label": "string",
                "quantity": 0,
                "unit_price_cents": 0,
                "total_cents": 0,
                "discount_cents": 0,
                "net_cents": 0
            }
        ],
        "subtotal_cents": 0,
        "shipping_name": "string",
        "shipping_cents": 0,
        "total_cents": 0,
        "payment_method": "pix",
        "payment_status": "string",
        "payment_provider": "string",
        "paid_at": "2019-08-24T14:15:22.123Z",
        "payment": {
            "method": "pix",
            "provider_bill_id": "string",
            "installments": 1
        },
        "notes": "string",
        "created_at": "2019-08-24T14:15:22.123Z",
        "updated_at": "2019-08-24T14:15:22.123Z",
        "source": "storefront",
        "agent": {
            "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
            "name": "string"
        },
        "provider_order_id": "string",
        "tracking": {
            "property1": "string",
            "property2": "string"
        },
        "discount_cents": 0,
        "discount": {
            "property1": "string",
            "property2": "string"
        },
        "currency": "str",
        "allowed_transitions": [
            "confirmado"
        ]
    }
}
Modificado em 2026-10-22 18:13:52
Página anterior
List store orders
Próxima página
Get a store order
Built with