Developer Center

REST APIs Overview

Last Updated: Oct 04, 2018 08:43AM CEST

Being RESTful

Mambu API follow the Representational state transfer (REST) standard allowing resources (accounts, client, etc) to be standard with a standard set of GET, POST, PUT, DELETE, PATCH HTTP requests.
Communication with Mambu follows the REST architecture constraints including being stateless & cacheable.
All responses are returned as JSON objects .

Endpoints

Mambu is a multi-tenanted environment with all tenants having access at their own sub-domain. To make a request to a tenant use the pattern of ?<tenanId>.mambu.com/api/

Posting Data

API requests which post data can either use url-encoding or json to enter data. The content-type header must be set to "application/json" for the json request. The following two example shows the two methods for posting data. Note that for some requests, much more information can be posted using the json input that is available with url-encoding but all url-encoded requests are supported with their json equivalents.
//using just url encoding
    curl -d "type=APPROVAL" https://user:pword@test.mambu.com/api/loans/4028329c3ad6c515013ad6d0f6e40006/transactions

    //using json
    curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{ "type": "APPROVAL"}' https://user:pword@test.mambu.com/api/loans/4028329c3ad6c515013ad6d0f6e40006/transactions

Example

The follow example makes a request using the username 'user', the password 'pword' to the tenant 'demo' to retrieve all repayments for loan account 'abc'

https://user:pword@demo.mambu.com/api/loans/abc/repayments

And returns a response such as:
"
[
    {
    "encodedKey":"402832b4380a2d8801380a9cac860010",
    "parentAccountKey":"402832b4380a2d8801380a9cac41000f",
    "dueDate":"2012-07-28T00:00:00+0200",
    "principalDue":"190",
    "principalPaid":"0",
    "interestDue":"25.45",
    "interestPaid":"0",
    "state":"PENDING"
    },
    {
    "encodedKey":"402832b4380a2d8801380a9cac870011",
    "parentAccountKey":"402832b4380a2d8801380a9cac41000f",
    "dueDate":"2012-08-28T00:00:00+0200",
    "principalDue":"190",
    "principalPaid":"0",
    "interestDue":"26.29",
    "interestPaid":"0",
    "state":"PENDING"
    }
    ]
support@mambu.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete