Create link.
- Register new client on Whitebird and create link
- Create link for existing Whitebird client
POST
https://exchange-core.whitebird.io/api/v1/merchant/client
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
| x-api-key | String | Yes | Merchant security key |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| String | Yes | Client email |
Response
{
"linkId": "string",
"status": "NOT_VERIFIED"
}
{
"message": "validation errors",
"code":"400"
"status": "INVALID_EMAIL | LINK_ALREADY_EXISTS | BAD_REQUEST"
}
{
"message": "invalid x-api-key",
"code":"401"
"status": "UNAUTHORIZED"
}
Example request
{
"email": "[email protected]"
}
curl -X POST 'https://exchange-core.whitebird.io/api/v1/merchant/client' \
-H 'Content-Type: application/json' \
-d '{
"email": "[email protected]"
}'