Skip to main content
POST
/
api
/
flight
/
book
Book Flight
curl --request POST \
  --url https://api.mysubwallet.ng/api/flight/book \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flight_id": "offer_123",
  "passengers": [
    {
      "first_name": "<string>",
      "last_name": "<string>",
      "dob": "2023-12-25",
      "email": "<string>",
      "phone_number": "<string>"
    }
  ]
}
'
{
  "status": "success",
  "data": {
    "reference": "MSW123",
    "pnr": "ABC123",
    "status": "issued",
    "amount": 85000
  }
}

Authorizations

Authorization
string
header
required

Your API key as Token <your_api_key>.

Body

application/json
flight_id
string
required

Offer id from Search Flights.

Example:

"offer_123"

passengers
object[]
required

Response

200 - application/json

Booking