POST/v2/order/issue

Issue the ticket

Ticket an owned order. Full payment only — no due, no override, no partial.

Bearer tokenAuthority: B2C_ORDER_ISSUEhttps://booking.aerolink.dev

The purchase body is built server-side from the owned order. Settlement always uses the order’s payable amount, never a figure sent by the client. On success the order status is ISSUED and passengers receive ticket numbers.

cURL

bash
curl -X POST https://booking.aerolink.dev/v2/order/issue \
  -H "Authorization: Bearer eyJ..." \
  -H "Content-Type: application/json" \
  -d '{"orderId":"66f0..."}'

Request

JSON
{
  "orderId": "66f0..."
}

Body fields

orderIdstring
required

Must be non-blank

Response

200
{
  "message": "Success",
  "data": {
    "id": "66f0...",
    "refNo": "TRP-000123",
    "pnr": "ABC123",
    "status": "ISSUED",
    "price": { "currencyCode": "BDT", "total": 46300 },
    "issuedTime": 1788357800,
    "passengers": [
      {
        "givenName": "RAHIM",
        "surname": "UDDIN",
        "ticketNumber": "176-1234567890",
        "status": "TICKETED"
      }
    ]
  }
}

Business rules

  • isPartialPayment, isFullDue, dueOverride, sharePnr and manualIssue are all forced false.

Errors

404Entity Not Found

Order missing, blank, or owned by another customer

409This order is being processed by another request. Please try again shortly.

The order lock is already held

400Wallet Update Failure

Agency wallet debit failed, including insufficient balance

400Upstream Server Failure

The provider refused or failed to ticket

400Validation Failed / Order status is not booked or issued

The order is not in a state that can be issued

401 / 403UNAUTHORIZED

Missing token or missing B2C_ORDER_ISSUE