Exchange the code for a customer token
Five wrong codes end the session; start a new one. The token is returned only here and lasts 15 minutes. Keep it on your server and do not log it.
Authorizations
Authorization: Bearer <secret key>. Secret keys belong to your organisation, are shown
once when created in the dashboard, and are scoped (see x-required-scope on each
operation). Keep them on your server. Live keys are issued after your business is
verified. Publishable keys (pk_) are only for @ketapay/checkout and don't work here.
Headers
Unique key for this operation. Retries with the same key return the first result.
255"7f3e2a10-6c4d-4b8e-9a1f-2d5c8e7b6a40"
Path Parameters
Body
^\d{6}$"482913"
Response
Verified
"customer_token"Send as KetaPay-Customer-Token. Shown only here.
"ctk_test_4f9a2c7e1b8d6a3f5e0c9b2d7a1e4f8c"
The customer's email on KetaPay, if known
254"ada@example.com"
The customer's phone on KetaPay, if known
^\+234[789][01]\d{8}$"+2348012345678"