---
# System prepended metadata

title: ELOFUN MBF SERVICES APIS

---

 

# ELOFUN MBF SERVICES APIS

**Service endpoint from (VIP): http://10.54.27.26:8001**

**1. Reset password**

    POST /resetpass/:msisdn

**Params:**

    :msisdn – phone number
**Response:**
    
    { "success": true, "errorCode": 0, data: “newpass”}


        <newpass> is new password for the user
        
        errorCode:
            0 mean success
            404 msisdn invalid or not found
            401 unauthorized request source.
 

**2. Add bought package**

    POST /buypack/:msisdn	
    
    Content-type: application/json
**Body:**

```
{
    "packageName": "E1",
    "price": 5000
} 
```
**Params:**
    
    :msisdn – phone number (ex: 84936972565)

**Response:**
    
    { "success": true, "errorCode": 0 }


**3. Cancel package**

    POST /cancel-pack/:msisdn	
    
    Content-type: application/json
**Body:**

```
{
    "packageName": "E1"
} 
```
**Params:**
    
    :msisdn – phone number (ex: 84936972565)

**Response:**
    
    { "success": true, "errorCode": 0 }
        
        errorCode:
            0 mean success
            400 Package not found or user don't have that package


