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

# order

> Handles order lifecycle events.

For orders created through Universal Commerce Protocol (UCP), `data.object.metadata.checkoutId` identifies the originating Checkout throughout the order lifecycle. When OMS creates a third-party order through a connected merchant order channel and the merchant returns its order ID, `data.object.merchantReferenceId` contains that merchant-side order ID, not an OMS internal order ID. If no third-party merchant order was created, `merchantReferenceId` is omitted from the UCP terminal event.



## OpenAPI

````yaml WEBHOOK order
openapi: 3.1.0
info:
  title: Clink API
  description: >-
    Official API documentation for Clink's payment processing platform. This API
    enables merchants to create and manage payment sessions, handle
    subscriptions, and process transactions.
  version: 1.0.0
servers:
  - url: https://uat-api.clinkbill.com/api/
security:
  - ApiKeyAuth: []
paths: {}
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Your secret API key obtained from the Clink dashboard (Developers
        section)

````

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