Skip to main content
PUT
/
payment-links
/
otp
Verify OTP and obtain access token
curl --request PUT \
  --url https://prod-api.pcxpay.com/v1/payment-links/otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "customer@example.com",
  "otp": "482910"
}
'
{
  "token": "eyJraWQiOiIxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0..."
}

Body

application/json
email
string<email>
required
Example:

"customer@example.com"

otp
string
required

The OTP code received by email.

Example:

"482910"

Response

OTP verified. Returns a short-lived JWT.

token
string

JWT access token (24 h expiry, type: "payment_link"). Include as Authorization: Bearer <token> on subsequent requests.

Example:

"eyJraWQiOiIxMjM0NTY3ODkwIiwidHlwIjoiSldUIn0..."