Skip to main content
curl --request POST 'https://api.mayar.id/hl/v2/customers/portal-login' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data-raw '{
    "email": "budi.santoso@example.com"
}
'
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "url": "Sudah kami kirim ke email anda"
    }
}
Endpoint:
https://api.mayar.id/hl/v2/customers/portal-login

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Request Body

email
string
required
Customer email. The magic link is sent to this address.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code form API.
messages
string
Status message that describes the status code.
data
object
The magic-link request result.

data Structure (Object)

url
string
Information about the magic link request that was made.

Errors

400 Validation Error
object
Returned with messages: "Validation Error." when the request body fails validation (e.g. missing email).
404 Email Not Registered
object
Returned with messages: "Email tidak terdaftar" when no customer matches the email.