Add a mobile money source to the customer account
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X POST "https://api.leapa.co/v2/customers/cus_3d8e51fa20/sources/mobile" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"brand": "ecocash",
"currency": "BIF",
"number": "string",
"country_code": "BI",
"default": false
}'Response
Created
{
"id": "obj_5f21c8a40b",
"object": "string",
"type": "bank",
"status": "created",
"currency": "BIF",
"address": {
"object": "string",
"city": "string",
"type": "personal",
"status": "invalid",
"state": "string",
"zip": "string",
"line1": "string",
"line2": "string"
},
"duplicateMobile": false,
"brand": "ecocash",
"language": "en",
"number": "string",
"holder_type": "individual",
"default": false,
"holder_name": "Jeanne Ndayishimiye"
}Path parameters
Values that go into the URL itself.
customer_idstringrequiredExample:cus_3d8e51fa20
Request body
Required. Send it as JSON.
brandstringrequiredCustomer mobile money brand)
Allowed values:ecocashenotiibb+pesaflashbrbbcbbancobubbciand 78 morecurrencystringrequiredCurrency code
Allowed values:BIFUSDKESXAFnumberstringrequiredCustomer mobile money number)
country_codestringrequiredCustomer mobile money country code)
Allowed values:BIdefaultbooleanrequiredIndicating whether this payment method is the default sources of payment. Constraints: Not null
Response
idstringAccount Id
objectstringCard Object Name
typestringAccount Type
Allowed values:bankbalancecardfeesmobilewalletcashipsstatusstringStatus of the card account
Allowed values:createdvalidatedverifiedverification_failederroreddeletedcurrencystringThe 3 letter representing the Currency.
Allowed values:BIFUSDKESXAFaddressAddressResponseobjectstringObject name
citystringCity
typestringThe type of address. Can be Business location address or Bank Address
Allowed values:personalbusinessstatusstringAddress status - invalid, line1_fail, line1_pass, line1_zip_pass, unchecked, verified, zip_fail, zip_pass
Allowed values:invalidline1_passline1_name_passline1_zip_passname_passname_zip_passuncheckedverifiedand 1 morestatestringState
zipstringZip
line1stringLine 1
line2stringLine 2
duplicateMobilebooleanbrandstringThe brand name.
Allowed values:ecocashenotiibb+pesaflashbrbbcbbancobubbciand 78 morelanguagestringThe Customer Prefered Language.
Allowed values:enfrkrnumberstringMobile Money Account
holder_typestringSource Holder Type.
Allowed values:individualcompanydefaultbooleanThis flag indicate if this is the default source or not.
holder_namestringHolder name. Name of the owner as written on the mobile mobile account.
Status codes
201Created400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error