Skip to main content
GET
/
transaksi
Get Transaksi List
curl --request GET \
  --url https://blessed-toad-definitely.ngrok-free.app/api/transaksi
[
  {
    "id": 1,
    "pelanggan": {
      "id": 123
    },
    "cabang": {
      "id": 123
    },
    "voucher": {
      "id": 123
    },
    "berat": 5,
    "nominal": 50000,
    "totalNominal": 45000,
    "statusCucian": "Pending",
    "dibayar": true,
    "sisaNominal": 5000,
    "metodePembayaran": "Cash",
    "statusPembayaran": "Paid",
    "kodePembayaran": "123456",
    "tanggal": "2022-01-01T10:00:00Z",
    "urlPaymentGateway": "https://payment-gateway.com"
  }
]

Response

200 - application/json

Successful response

id
integer

Unique identifier for the transaksi

Example:

1

pelanggan
object
cabang
object
voucher
object
berat
number

Weight of the laundry

Example:

5

nominal
number

Nominal of the laundry

Example:

50000

totalNominal
number

Total nominal of the laundry

Example:

45000

statusCucian
enum<string>

Status of the laundry

Available options:
Pending,
Process,
Done
dibayar
boolean

Payment status of the laundry (auto generate)

Example:

true

sisaNominal
number

Remaining nominal of the laundry (auto generate)

Example:

5000

metodePembayaran
enum<string>

Payment method of the laundry

Available options:
Cash,
Bank Transfer
Example:

"Cash"

statusPembayaran
enum<string>

Payment status of the laundry

Available options:
Pending,
Paid
Example:

"Paid"

kodePembayaran
string

Payment code of the laundry (auto generate)

Example:

"123456"

tanggal
string<date-time>

Date of the laundry

Example:

"2022-01-01T10:00:00Z"

urlPaymentGateway
string

URL of the payment gateway (auto generate)

Example:

"https://payment-gateway.com"