Skip to main content

Fund Wallet

POST /v1/api/betting/{providerSlug}/payment

This endpoint is used to fund the betting wallet

Parameters

FieldMandatoryParameter TypeData TypeDescription
api-keyYesHeaderStringThe client’s API key
secretYesHeaderStringThe client's secret key for the environment to which the request is being made
providerSlugYesPathStringThe slug of the betting provider
amountYesBodyStringThe amount (in Kobo)
clientIdYesBodyStringThe client id of the wallet
usernameYesBodyStringThe username of the wallet
referenceYesBodyStringThe unique identifier of the transaction

Sample Request

curl --location '{BASE_URL}/v1/api/betting/{providerSlug}/payment' \--header 'secret: {SECRET_KEY}' \--header 'api-key: {API_KEY}' \--header 'Content-Type: application/json' \--data '{ "amount": "10000", "clientId": "26691", "username": "dbuttazzo", "reference": "f71cd0160faf250f0e3d0e7d712a5c05"}'

Sample Response (200 - OK)

{
"status": "SUCCESS",
"message": "Successfully funded betting wallet",
"statusCode": "00"
}

Sample Response (400 - Bad Request)

{
"status": "FAILED",
"message": "The minimum amount is ₦100.00",
"statusCode": "09"
}