Callback Transaction
Callback Transaction
Section titled “Callback Transaction”Callback Transaction merupakan API dengan URL yang telah mitra input pada kolom callback di Mitra Bisatopup yang nantinya akan di hit pada saat transaksi telah berstatus PAID dengan mengirimkan data yang dapat dilihat dari Body Request API.
Endpoint
Section titled “Endpoint”POST Url Callback yang telah mitra input pada kolom callback di Mitra Bisatopup
Request
Section titled “Request”Headers
Section titled “Headers”Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Authorization | string | Bearer <token> |
Body Parameters (WIP)
Section titled “Body Parameters (WIP)”Name | Type | Required | Description |
---|---|---|---|
username | string | Yes | Username untuk login |
password | string | Yes | Password untuk login |
Example Request
Section titled “Example Request”{ "id": 1, "transaction_id": "4", "transaction_total": "10000", "signature": "testing", "payment_id": 33, "payment": "QRIS", "status_id": 4, "status": "Completed", "expired_date": "2022-07-24 12:10:10"}
Response
Section titled “Response”Success Response (200 OK)
Section titled “Success Response (200 OK)”{}
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.