Authentication
Curl
curl -X 'POST' \
'https://openapimcp.matahari.co.id:9001/Auth/Login' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"email": "email@domain.com",
"password": "putPasswordHere"
}'

  • email yang terdaftar dan aktif di MCP.
  • password yang terdaftar dan aktif di MCP.

Curl
curl -X 'POST' \
'https://openapimcp.matahari.co.id:9001/Auth/ChangePassword' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"email": "email@domain.com",
"currentPassword": "putPasswordHere",
"newPassword": "putNewPasswordHere",
"confirmNewPassword": "putNewPasswordHere"
}'

  • email yang terdaftar dan aktif di MCP.
  • currentPassword string random / password sebelumnya.
  • newPassword password yang baru.
  • confirmNewPassword konfirmasi / ketik ulang password yang baru.

Curl
curl -X 'POST' \
'https://openapimcp.matahari.co.id:9001/Auth/Logout' \
-H 'accept: */*' \
-H 'Authorization: Bearer putAccessTokenHere' \
-d ''