cURL
curl --request POST \ --url https://soleaspay.com/api/agent/link/fiat-distribution \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "data": { "payer": "SP202116A", "currency": "XAF", "amount": 10000, "distribution": [ { "matricule": "SP20231M", "rate": 15 } ] } } '
{ "success": true, "message": "fiat distribution success" }
Redistribute a fiat payment received outside SoPay by specifying payer details and distribution breakdown.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your authentication API key
"Your-Apikey-Here"
Show child attributes
The SoPay ID of the user making the payment.
"SP202116A"
The currency of the received fiat payment.
"XAF"
The total amount received in fiat.
10000
Array of users who will receive a share of the payment.
The SoPay ID of the beneficiary.
"SP20231M"
Percentage of the total amount allocated to the user.
15
Fiat distribution completed successfully
true
"fiat distribution success"