> ## Documentation Index
> Fetch the complete documentation index at: https://docsapi.wiseapp360.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update the order of a UazAPI payment request

> Sends the customer an order/payment update for a UazAPI payment request
(interactive `type: payment_request`) already sent in this conversation,
through UazAPI's `POST /message/payment/status`. The last update is kept in
the message `content_attributes.payment_status` and shown in its bubble.

The inbox must be a UazAPI inbox with interactive messages turned on
(server or `UAZAPI_INTERACTIVE_MESSAGES`, and the account feature
`uazapi_interactive_messages`), and the message must have its WhatsApp id
(it was sent).




## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/payment_status
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/payment_status:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - $ref: '#/components/parameters/conversation_id'
        schema:
          type: string
        example: sample
      - $ref: '#/components/parameters/message_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Messages
      summary: Update the order of a UazAPI payment request
      description: >
        Sends the customer an order/payment update for a UazAPI payment request

        (interactive `type: payment_request`) already sent in this conversation,

        through UazAPI's `POST /message/payment/status`. The last update is kept
        in

        the message `content_attributes.payment_status` and shown in its bubble.


        The inbox must be a UazAPI inbox with interactive messages turned on

        (server or `UAZAPI_INTERACTIVE_MESSAGES`, and the account feature

        `uazapi_interactive_messages`), and the message must have its WhatsApp
        id

        (it was sent).
      operationId: update-message-payment-status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - payment_requested
                    - preparing_to_ship
                    - shipped
                    - delivered
                    - completed
                    - canceled
                  example: shipped
                paid:
                  type: boolean
                  description: >-
                    `true` confirms the payment, `false` marks it pending. Omit
                    it to leave the payment as it is.
                  example: true
                note:
                  type: string
                  maxLength: 500
                  description: Shown in the order update.
                  example: Seu pedido saiu para entrega.
            examples:
              shipped_and_paid:
                summary: Paid and shipped
                value:
                  status: shipped
                  paid: true
                  note: Seu pedido saiu para entrega.
              canceled:
                summary: Order canceled
                value:
                  status: canceled
                  note: Pedido cancelado a pedido do cliente.
      responses:
        '200':
          description: Update sent to the customer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  payment_status:
                    type: object
                    properties:
                      status:
                        type: string
                        example: shipped
                      paid:
                        type: boolean
                        example: true
                      note:
                        type: string
                      updated_at:
                        type: string
                        format: date-time
              example:
                payment_status:
                  status: shipped
                  paid: true
                  note: Sample text
                  updated_at: '2026-05-20T12:00:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '404':
          description: Message not found in this conversation
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Resource not found
        '422':
          description: >
            `code` tells why: `payment_status_not_supported` (not a UazAPI
            payment

            request), `interactive_not_enabled`, `not_sent` (no WhatsApp id
            yet),

            `invalid_status`, `invalid_note` or `provider_error` (UazAPI refused
            it;

            `error` carries its message).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
        - agentBotApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
    conversation_id:
      in: path
      name: conversation_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the conversation
    message_id:
      in: path
      name: message_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the message
  schemas:
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.
    agentBotApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token do bot de agente, fornecido pelo administrador. Acessa apenas um
        subconjunto limitado de endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.