UKK Kereta API 2025
  1. Pembelian Tiket
UKK Kereta API 2025
  • Getting Started
  • Version
    • Version
      GET
  • Auth
    • Sign Up
      POST
    • Sign In
      POST
    • Sign Out
      POST
  • User
    • Create User
      POST
    • Find User
      GET
    • Find Many User
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
  • Kereta
    • Create Kereta
      POST
    • Find Kereta
      GET
    • Find Many Kereta
      GET
    • Find Many Kereta Filter
      GET
    • Update Kereta
      PATCH
    • Delete Kereta
      DELETE
  • Pelanggan
    • Create Pelanggan
      POST
    • Find Pelanggan
      GET
    • Find Many Pelanggan
      GET
    • Update Pelanggan
      PATCH
    • Delete Pelanggan
      DELETE
  • Gerbong
    • Create Gerbong
    • Find Gerbong
    • Find Many Gerbong
    • Update Gerbong
    • Untitled Endpoint
  • Kursi
    • Create Kursi
    • Find Kursi
    • Find Many Kursi
    • Update Kursi
    • Delete Kursi
  • Jadwal
    • Create Jadwal
    • Find Jadwal
    • Find Many Jadwal
    • Update Jadwal
    • Delete Jadwal
  • Pembelian Tiket
    • Create Pembelian Tiket
      POST
    • Find Many Pembelian Tiket History
      POST
    • Find Many Pemasukan Pembelian Tiket
      POST
    • Find Pembelian Tiket Nota
      GET
  1. Pembelian Tiket

Find Many Pembelian Tiket History

Developing
POST
/pembelian-tiket/history
Maintainer:Muhammad Fadhil Kholaf
Find filtered pembelian tiket history.
Auto detect login session.
If you are a pelanggan it only find your history, if you are a petugas it gets all user history.

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/history' \
--header 'Cookie: token=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "startDate": "string",
    "endDate": "string"
}'

Responses

🟢200Success
application/json
Body
message
string 
required
data
array[object (Pembelian Tiket) {5}] 
required
id
string 
required
pelangganId
string 
required
jadwalId
string 
required
createdAt
string 
required
updatedAt
string 
required
Example
{
    "message": "string",
    "data": [
        {
            "id": "string",
            "pelangganId": "string",
            "jadwalId": "string",
            "createdAt": "string",
            "updatedAt": "string"
        }
    ]
}
🔴500Server Error
🟠401Unauthorized
Previous
Create Pembelian Tiket
Next
Find Many Pemasukan Pembelian Tiket
Built with