---
# System prepended metadata

title: Flight Payment

---

---
title : Flight Payment
description : untuk melakukan pembayaran
---

Flight Payment
===

[TOC]

#### Endpoint
> https://api-dev.fastravel.co.id/flight/payment


#### Request
```
   {
        "airline" : "TPJT",
        "transactionId" : 1869458652,
        "bookingCode" : "XYALDP",
        "paymentCode" : "",
        "token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjhkNzNtbmc4OWVkIn0.eyJpc3MiOiJodHRwOlwvXC9hcGkuZmFzdHJhdmVsLmNvLmlkIiwiYXVkIjoiRmFzdHJhdmVsQjJCIENsaWVudCIsImp0aSI6IjhkNzNtbmc4OWVkIiwiaWF0IjoxNTAwNDQyOTAwLCJuYmYiOjE1MDA0NDI5NTksImV4cCI6MTUwMDQ0NjQ5OSwib3V0bGV0SWQiOiJGQTg0Mjc1IiwicGluIjoiOTMwMjcxIiwia2V5IjoiNzQzOTU3In0.z3svmbpvB2uU99ixRwk9vcPtHeMVO8RF8MatP9qSxMg"
    }
```

#### Response
##### Normal Response 
```
{
    "data": {
        "transaction_id": 1869458652,
        "url_etiket": "http://api.fastravel.co.id/app/generate_etiket?id_transaksi=1869458652",
        "url_image": "http://api.fastravel.co.id/app/generate_image_etiket?id_transaksi=1869458652",
        "url_struk": "http://api.fastravel.co.id/app/generate_struk?id_transaksi=1869458652",
        "komisi": 0,
        "nominal": "558600"
    },
    "rc": "00",
    "rd": "Simulate Success",
    "mid": null,
    "invoking": "Payment Flight",
    "processingTime": "0.15943789482117 Second"
}    
```


##### Negative Response
```
{
    "rc": "99",
    "rd": "The JWT string must have two dots",
    "mid": null,
    "invoking": "Payment Flight",
    "processingTime": "0.00044798851013184 Second"
}
```
