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

# Pay order

> Mark an order as Paid.



## OpenAPI

````yaml POST /contacts/{contact_id}/pay/{order_id}
openapi: 3.0.0
info:
  title: Fliqr AI API
  version: '1.1'
  description: >-
    REST API for Fliqr AI. Authenticate every request with the `X-ACCESS-TOKEN`
    header.
servers:
  - url: https://app.fliqr.ai/api
    description: Production
security:
  - APIKeyHeader: []
tags:
  - name: Accounts
  - name: Contacts
  - name: AI Agents
  - name: Pipelines
  - name: Ecommerce
  - name: Appointment Management
  - name: Templates
paths:
  /contacts/{contact_id}/pay/{order_id}:
    post:
      tags:
        - Ecommerce
      summary: Pay Order
      description: Mark an order as Paid.
      operationId: payOrder
      parameters:
        - name: contact_id
          in: path
          required: true
          schema:
            type: integer
        - name: order_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                amount_received:
                  description: Total value the contact paid in cents.
                  type: integer
              required:
                - amount_received
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                example:
                  success: true
        '400':
          description: The amount received is less than the total value of the order.
        '402':
          description: The contact received a message on Messenger why the checkout failed.
        '404':
          description: The order ID doesn't existe
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-ACCESS-TOKEN
      description: >-
        API access token from your Fliqr AI dashboard (**Settings → API**). Send
        it in the `X-ACCESS-TOKEN` header on every request.

````