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

# Send interactive order details message

> Sends an interactive order details message for review and payment. Requires that the recipient has messaged the business in the last 24 hours.



## OpenAPI

````yaml POST /messages/interactive/order_details
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /messages/interactive/order_details:
    post:
      tags:
        - Messages
      summary: Send interactive order details message
      description: >-
        Sends an interactive order details message for review and payment.
        Requires that the recipient has messaged the business in the last 24
        hours.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                from:
                  type: string
                to:
                  type: string
                interactive:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - order_details
                      default: order_details
                    header:
                      type: object
                      nullable: true
                      properties:
                        type:
                          type: string
                          enum:
                            - image
                    body:
                      type: object
                      properties:
                        text:
                          type: string
                          maxLength: 1024
                    footer:
                      type: object
                      nullable: true
                      properties:
                        text:
                          type: string
                    action:
                      type: object
                      properties:
                        name:
                          type: string
                          enum:
                            - review_and_pay
                          default: review_and_pay
                        parameters:
                          type: object
                          properties:
                            reference_id:
                              type: string
                              maxLength: 35
                            type:
                              type: string
                              enum:
                                - digital-goods
                                - physical-goods
                            payment_type:
                              type: string
                              enum:
                                - br
                              default: br
                            payment_settings:
                              type: array
                              items:
                                type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - pix_dynamic_code
                                      - payment_link
                                      - boleto
                                  pix_dynamic_code:
                                    type: object
                                    nullable: true
                                    properties:
                                      code:
                                        type: string
                                      merchant_name:
                                        type: string
                                      key:
                                        type: string
                                      key_type:
                                        type: string
                                        enum:
                                          - CPF
                                          - CNPJ
                                          - EMAIL
                                          - PHONE
                                          - EVP
                                  payment_link:
                                    type: object
                                    nullable: true
                                    properties:
                                      uri:
                                        type: string
                                        format: uri
                                  boleto:
                                    type: object
                                    nullable: true
                                    properties:
                                      digitable_line:
                                        type: string
                            currency:
                              type: string
                              enum:
                                - BRL
                              default: BRL
                            total_amount:
                              type: object
                              properties:
                                value:
                                  type: integer
                                offset:
                                  type: integer
                                  minimum: 100
                                  maximum: 100
                                  default: 100
                                description:
                                  type: string
                                  maxLength: 60
                                  nullable: true
                            order:
                              type: object
                              properties:
                                status:
                                  type: string
                                  enum:
                                    - pending
                                  default: pending
                                catalog_id:
                                  type: string
                                  nullable: true
                                expiration:
                                  type: object
                                  nullable: true
                                  properties:
                                    timestamp:
                                      type: string
                                    description:
                                      type: string
                                      maxLength: 300
                                items:
                                  type: array
                                  minItems: 1
                                  items:
                                    type: object
                                    properties:
                                      retailer_id:
                                        type: string
                                      name:
                                        type: string
                                      amount:
                                        type: object
                                        properties:
                                          value:
                                            type: integer
                                          offset:
                                            type: integer
                                            minimum: 100
                                            maximum: 100
                                            default: 100
                                          description:
                                            type: string
                                            maxLength: 60
                                            nullable: true
                                      quantity:
                                        type: integer
                                      sale_amount:
                                        type: object
                                        nullable: true
                                        properties:
                                          value:
                                            type: integer
                                          offset:
                                            type: integer
                                            minimum: 100
                                            maximum: 100
                                            default: 100
                                          description:
                                            type: string
                                            maxLength: 60
                                            nullable: true
                                subtotal:
                                  type: object
                                  properties:
                                    value:
                                      type: integer
                                    offset:
                                      type: integer
                                      minimum: 100
                                      maximum: 100
                                      default: 100
                                    description:
                                      type: string
                                      maxLength: 60
                                      nullable: true
                                tax:
                                  type: object
                                  properties:
                                    value:
                                      type: integer
                                    offset:
                                      type: integer
                                      minimum: 100
                                      maximum: 100
                                      default: 100
                                    description:
                                      type: string
                                      maxLength: 60
                                      nullable: true
                                shipping:
                                  type: object
                                  nullable: true
                                  properties:
                                    value:
                                      type: integer
                                    offset:
                                      type: integer
                                      minimum: 100
                                      maximum: 100
                                      default: 100
                                    description:
                                      type: string
                                      maxLength: 60
                                      nullable: true
                                discount:
                                  type: object
                                  nullable: true
                                  properties:
                                    value:
                                      type: integer
                                    offset:
                                      type: integer
                                      minimum: 100
                                      maximum: 100
                                      default: 100
                                    description:
                                      type: string
                                      maxLength: 60
                                      nullable: true
                                    discount_program_name:
                                      type: string
                                      maxLength: 60
                                      nullable: true
      responses:
        '200':
          description: Interactive order details message sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````