POST
Create a seller verification link

Authorizations

Authorization
string
header
default:sk_test_docs_246e232c64ccc7a001bf61ec0f2e6ab0
required

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.

KetaPay-Customer-Token
string
header
required

Proof that your customer approved this call, from POST /customer_sessions/{id}/verify. Sent together with your secret key. Valid for 15 minutes, for that customer's escrows only.

Headers

Idempotency-Key
string
required

Unique key for this operation. Retries with the same key return the first result.

Maximum string length: 255
Example:

"7f3e2a10-6c4d-4b8e-9a1f-2d5c8e7b6a40"

Body

application/json
return_url
string<uri>
required

Where the page's button sends the seller once they're verified: your app or site. https (http://localhost works with a test key).

Maximum string length: 2048
refresh_url
string<uri>

Where an expired link sends the seller, so you can make them a new one. https (http://localhost works with a test key). Without it, an expired link points back to return_url.

Maximum string length: 2048

Response

The link to send the seller to

object
string
required
Allowed value: "verification_link"
livemode
boolean
required
url
string<uri>
required

The page to send the seller to. In test mode, starting it verifies them at once.

Example:

"https://checkout.ketapay.com/verify/ls_9f1c...?return_url=https%3A%2F%2Fmarket.example.com%2Fseller%2Fpayouts"

return_url
string<uri>
required
refresh_url
string<uri> | null
required
expires_at
string<date-time>
required

24 hours after it was made