Logout Account
Logout Account
Section titled “Logout Account”Logout Account merupakan API yang digunakan untuk keluar dari akun yang terautentikasi dengan mengirimkan autentikasi berupa token.
Endpoint
Section titled “Endpoint”POST https://h2h.amdigipay.com/api/logout
Request
Section titled “Request”Headers
Section titled “Headers”Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
Authorization | string | Bearer <token> |
Body Parameters
Section titled “Body Parameters”Name | Type | Required | Description |
---|
Example Request
Section titled “Example Request”{}
Response
Section titled “Response”Success Response (200 OK)
Section titled “Success Response (200 OK)”{ "error": true, "message": "Logout success", "data": null}
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.