- Getting Started
- Version
- Auth
- User
- Kereta
- Pelanggan
- Gerbong
- Kursi
- Jadwal
- Pembelian Tiket
Find Many Pemasukan Pembelian Tiket
Developing
POST
/pembelian-tiket/pemasukan
Maintainer:Muhammad Fadhil Kholaf
Request
Cookie Params
token
string
required
Body Params application/json
startDate
string
optional
endDate
string
optional
Example
{
"startDate": "string",
"endDate": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://kereta.api.fadhilkholaf.my.id/pembelian-tiket/pemasukan' \
--header 'Cookie: token=' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
message
string
required
data
array [object {7}]
required
id
string
required
pelangganId
string
required
jadwalId
string
required
createdAt
string
required
updatedAt
string
required
jadwal
object (Jadwal)
required
detailPembelianTiket
array[object (Detail Pembelian Tiket) {7}]
required
Example
{
"message": "string",
"data": [
{
"id": "string",
"pelangganId": "string",
"jadwalId": "string",
"createdAt": "string",
"updatedAt": "string",
"jadwal": {
"id": "string",
"asalKeberangkatan": "string",
"tujuanKeberangkatan": "string",
"tanggalKeberangkatan": "string",
"tanggalKedatangan": "string",
"harga": 0,
"keretaId": "string",
"createdAt": "string",
"updatedAt": "string"
},
"detailPembelianTiket": [
{
"id": "string",
"nik": "string",
"namaPenumpang": "string",
"pembelianTiketId": "string",
"kursiId": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}
]
}
🔴500Server Error
🟠401Unauthorized
🟠400Bad Request
Modified at 2025-03-17 14:50:49