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

# Release a cross

> Release a funded ScripX cross: the gated terminal step that completes delivery versus payment, pays the seller and closes the deal.

<Note>
  Cross desk endpoints require the cross desk to be active on your key. Write to [amin@eximfiles.io](mailto:amin@eximfiles.io) to have it enabled.
</Note>

The terminal step. Releasing a **funded** cross completes delivery versus payment: credit to the buyer, proceeds to the seller, deal closed. Requires the `orders:write` scope.

Release only after your off-platform checks are done; this is the point of no return, and the gate exists so it is always a human-authorised decision, never a side effect.

### Request example

```bash theme={"dark"}
curl -X POST "https://api.scripxhq.com/v1/cross/crs_01HZY…/confirm" \
  -H "X-ScripX-Key: <YOUR_API_KEY>"
```

### Response example

```json theme={"dark"}
{
  "deal": {
    "cross_id": "crs_01HZY…",
    "status": "settled",
    "amount_paise": 500000000
  }
}
```

`settlement.settled` and `payout.sent` [webhooks](/annexure/webhook-events) follow.

### Errors

* `409 conflict`, the cross is not funded, or is already terminal.
* `404 not_found`, no such cross on your desk.

**Terms used here:** [paise](/annexure/terminology#paise), [cross](/annexure/terminology#cross-block-deal), [DvP](/annexure/terminology#delivery-versus-payment), [API key](/annexure/terminology#api-key), [scope](/annexure/terminology#scope), [webhook](/annexure/terminology#webhook). Full list in the [terminology annexure](/annexure/terminology).

### Next steps

* [Earnings](/api-reference/account/earnings), your desk's take lands in `payable_paise`.


## OpenAPI

````yaml POST /v1/cross/{cross_id}/confirm
openapi: 3.1.0
info:
  title: ScripX Partner API
  version: 1.2.0
  description: >-
    Automate duty-credit-scrip trading: quote, order, positions, market,
    webhooks. Auth: `X-ScripX-Key: scripx_live_…`. Money = integer paise; price
    = bps of face.
  contact:
    name: ScripX API Support
    email: amin@eximfiles.io
    url: https://scripxhq.com
servers:
  - url: https://api.scripxhq.com
    description: >-
      Production and sandbox share one host; a scripx_test_ key selects the
      sandbox.
security:
  - ApiKeyAuth: []
tags:
  - name: Firms
    description: >-
      client-firm lifecycle: register, verify, authorize, credits, update,
      offboard
  - name: Trading
    description: quote, orders, positions, market
  - name: Group
    description: intra-group netting + positions (enterprise/broker)
  - name: Cross
    description: 'broker cross-desk: block deals + intra-group transfers'
  - name: Webhooks
    description: event subscriptions + delivery
  - name: Account
    description: usage + metering
  - name: Keys
    description: self-serve scoped child keys (sub-accounts)
paths:
  /v1/cross/{cross_id}/confirm:
    post:
      tags:
        - Cross
      summary: Release a funded cross (gated terminal step)
      parameters:
        - name: cross_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrossDeal'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CrossDeal:
      type: object
      properties:
        deal:
          type: object
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: stable machine code
          enum:
            - bad_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - unprocessable
            - rate_limited
            - internal
        message:
          type: string
        detail:
          type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-ScripX-Key
      description: >-
        Your API key, e.g. `scripx_live_…`. Bound to one firm; tenant isolation
        is enforced.

````