List Transaction
List Transaction
Section titled “List Transaction”List Transaction merupakan API yang digunakan untuk melihat Daftar Transaksi yang sudah dibuat pada AM Digital Payment.
Endpoint
Section titled “Endpoint”https://h2h.amdigipay.com/api/payment/list-transaction
Request
Section titled “Request”Headers
Section titled “Headers”Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Accept | string | application/json |
Authorization | string | Bearer <token> |
Params
Section titled “Params”Name | Type | Example |
---|---|---|
status | int | 3 |
limit | int | 1 |
current_page | int | 1 |
Response
Section titled “Response”Success Response (200 OK)
Section titled “Success Response (200 OK)”{ "pagination": { "total_found": 4, "limit": 10, "current_page": 1, "total_page": 1 }, "status": null, "error": false, "message": "success", "data": [ { "id": 6, "payment_id": 37, "payment_name": "GOPAY", "status_id": 2, "status": "On processing", "transaction_id": "0030c97b-5ccc-4482-b4af-9ffdb4a039bc", "transaction_total": "13000", "expired_date": "2023-03-23 18:23:10", "transaction_name": "testing", "transaction_desc": "testing", "customer_number": "085925065195", "customer_name": "testing", "payment_links": "https://app.midtrans.com/snap/v3/redirection/1ca52d24-1574-4f82-9f84-d4314a817348", "payment_code": null, "qr_code": null, "item_details": [ { "item_id": "testing", "item_price": "10000", "item_quantity": "1", "item_total_price": "10000", "item_name": "testing" }, { "item_id": "fee", "item_price": "3000", "item_quantity": "1", "item_total_price": "3000", "item_name": "fee" } ] }, { "id": 5, "payment_id": 33, "payment_name": "QRIS", "status_id": 3, "status": "Terbayar", "transaction_id": "EV-INV-1-3096", "transaction_total": "100805", "expired_date": "2022-07-27 22:54:19", "transaction_name": "Event - INV-1-3096", "transaction_desc": "Event dengan nomor invoice INV-1-3096", "customer_number": "08567462363", "customer_name": "delvi", "payment_links": null, "payment_code": null, "qr_code": "00020101021226670016COM.NOBUBANK.WWW01189360050300000842770214080500006791870303UKE51440014ID.CO.QRIS.WWW0215ID20210844664510303UKE52045499530336054061008055802ID5909BISATOPUP6015Jakarta Selatan61051254062550114072700131229570513EV-INV-1-30960609PAYMENT-50703A016304838E", "item_details": [ { "item_id": "67c4426b-90ce-4d41-b4f2-3d81397481cc", "item_price": "100104", "item_quantity": "1", "item_total_price": "100104", "item_name": "lihat kambing" }, { "item_id": "fee", "item_price": "701", "item_quantity": "1", "item_total_price": "701", "item_name": "fee" } ] }, { "id": 4, "payment_id": 33, "payment_name": "QRIS", "status_id": 3, "status": "Terbayar", "transaction_id": "TEST12345", "transaction_total": "10250", "expired_date": "2022-07-27 18:10:10", "transaction_name": "testing", "transaction_desc": "testing", "customer_number": "tseting", "customer_name": "testing", "payment_links": null, "payment_code": null, "qr_code": "00020101021226670016COM.NOBUBANK.WWW01189360050300000842770214080500006791870303UKE51440014ID.CO.QRIS.WWW0215ID20210844664510303UKE5204549953033605405102505802ID5909BISATOPUP6015Jakarta Selatan61051254062510114072700131129900509TEST123450609PAYMENT-40703A016304320B", "item_details": [ { "item_id": "testing", "item_price": "10000", "item_quantity": "1", "item_total_price": "10000", "item_name": "testing" }, { "item_id": "fee", "item_price": "250", "item_quantity": "1", "item_total_price": "250", "item_name": "fee" } ] }, { "id": 1, "payment_id": 33, "payment_name": "QRIS", "status_id": 3, "status": "Terbayar", "transaction_id": "7", "transaction_total": "10000", "expired_date": "2022-07-24 12:10:10", "transaction_name": "testing", "transaction_desc": "testing", "customer_number": "tseting", "customer_name": "testing", "payment_links": null, "payment_code": null, "qr_code": "00020101021226670016COM.NOBUBANK.WWW01189360050300000842770214080500006791870303UKE51440014ID.CO.QRIS.WWW0215ID20210844664510303UKE5204549953033605405100605802ID5909BISATOPUP6015Jakarta Selatan6105125406243011407250012923911050170609PAYMENT-10703A0163048D10", "item_details": [ { "item_id": "testing", "item_price": "10000", "item_quantity": "1", "item_total_price": "10000", "item_name": "testing" } ] } ]}
Error Response (401 Unauthorized) (WIP)
Section titled “Error Response (401 Unauthorized) (WIP)”{ "status": "error", "message": "Invalid username or password", "data": null}
Error Response (500 Internal Server Error) (WIP)
Section titled “Error Response (500 Internal Server Error) (WIP)”{ "status": "error", "message": "Internal server error", "data": null}
Notes (WIP)
Section titled “Notes (WIP)”- Token yang diterima harus disimpan dan digunakan untuk autentikasi pada API lainnya.
- Token memiliki masa aktif tertentu, biasanya 24 jam.
- Setelah token kadaluarsa, pengguna harus melakukan login kembali.