cURL
curl --request GET \ --url https://soleaspay.com/api/agent/link/new \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'
{ "success": true, "data": { "apikey": "XLkynIRt7StyFdxnYQLxTyDxhk-WEjWQ1DEY-cwHMN8", "matricule": "SP20231M" }, "message": "link success" }
Link a user in your app to a Sopay wallet.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your API key
User's email address
User's phone number
Country phone code (e.g., +237)
Wallet linked or created successfully
true
Show child attributes
"XLkynIRt7StyFdxnYQLxTyDxhk-WEjWQ1DEY-cwHMN8"
"SP20231M"
"link success"