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

Replace agent discount policy

PUT
/store/discounts/agents/{uuid}
Requires store:discounts plus the corresponding current financial permission of the token creator. Discount API fields use camelCase. Feature must be enabled. Versions enforce optimistic concurrency. No hard deletion; archive campaigns instead.

Requisição

Parâmetros de Caminho

Parâmetros Bodyapplication/jsonNecessário

Examples

Respostas

🟢200OK
application/json
Success
Bodyapplication/json

🟠401Não Autorizado
🟠403Proibido
🟠422Erro de Parâmetro
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/store/discounts/agents/' \
--header 'Content-Type: application/json' \
--data '{
    "version": 0,
    "enabled": true,
    "allowCoupons": true,
    "minimumValue": 1,
    "rules": {
        "kind": "percent",
        "value": 1,
        "maxDiscountCents": 1,
        "minimumCents": 0,
        "productUuids": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ],
        "categoryUuids": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ]
    }
}'
Response Response Example
200 - Exemplo 1
{
    "property1": "string",
    "property2": "string"
}
Modificado em 2026-10-22 18:13:52
Página anterior
Read agent discount policy
Próxima página
List shipping options
Built with