Skip to main content
PUT
/
payment-links
/
otp
Verify OTP
curl --request PUT \
  --url https://prod-api.pcxpay.com/v1/payment-links/otp \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "email": "jsmith@example.com",
  "otp": "<string>"
}
'
{
  "token": "<string>",
  "type": "payment_link"
}

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Body

application/json
email
string<email>
required
otp
string
required

Response

OTP verified — JWT returned

token
string
type
string
Example:

"payment_link"