Skip to main content

MintaOTP


Minta OTPโ€‹

Gunakan endpoint ini untuk melakukan Minta OTP.


๐Ÿงญ Endpointโ€‹

AtributNilai
URLhttps://api.hesda-store.com/v2/get_otp
MethodPOST
AuthBasic Auth (Authorization: email & password)
Content-Typeapplication/json

๐Ÿ“ฅ Bodyโ€‹

NamaTipeWajibKeterangan
hesdastorestringโœ…API Key
no_hpnumberโœ…Nomor XL
metodestringโœ…Jenis metode (OTP)

๐Ÿงช Response JSON

Beberapa contoh response berdasarkan status transaksi:

{
"statusCode": 200,
"status": true,
"message": "Berhasil mengirim kode OTP, silakan cek SMS di nomor XL kamu!",
"data": {
"auth_id": "28b028f7-69bd-417e-8510-691d23df7d25",
"can_resend_in": 60
}
}