# Gateway fees
curl"https://api.heydollr.app/v1/fees/gateway?payment_method=MTN_MOMO_LBR&operation_type=COLLECTION"\-H"Authorization: Bearer YOUR_ACCESS_TOKEN"# List all fee tiers
curl"https://api.heydollr.app/v1/fees/tiers"\-H"Authorization: Bearer YOUR_ACCESS_TOKEN"
importrequestsBASE_URL="https://api.heydollr.app"headers={"Authorization":"Bearer YOUR_ACCESS_TOKEN"}# Gateway feesresponse=requests.get(f"{BASE_URL}/v1/fees/gateway",headers=headers,params={"payment_method":"MTN_MOMO_LBR","operation_type":"COLLECTION"},)print(response.json())# List all fee tierstiers=requests.get(f"{BASE_URL}/v1/fees/tiers",headers=headers).json()fortierintiers:print(tier["name"],"— default:",tier["is_default"])
constBASE_URL="https://api.heydollr.app";constTOKEN="YOUR_ACCESS_TOKEN";// Gateway feesconstfees=awaitfetch(`${BASE_URL}/v1/fees/gateway?payment_method=MTN_MOMO_LBR&operation_type=COLLECTION`,{headers:{Authorization:`Bearer ${TOKEN}`}}).then(r=>r.json());console.log(fees);// List all tiersconsttiers=awaitfetch(`${BASE_URL}/v1/fees/tiers`,{headers:{Authorization:`Bearer ${TOKEN}`},}).then(r=>r.json());tiers.forEach(t=>console.log(t.name,"| default:",t.is_default));