> ## 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 `order.succeeded`:

1. Find the merchant account using `data.object.customerEmail`.
2. Create a missing account and return `account.created`, or return `account.reloaded` after confirming the successful-payment notification for an existing account.
3. Map `data.object.amountTotal` to `data.amount` and `data.object.paymentCurrency` to `data.currency`.

Handle retries idempotently using the event `id` or `orderId`, and return the original result for duplicate events. Other order events may return an empty HTTP 200 response.



## 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)

````