Skip to content

Get customer's information

https://api.magmasend.com/v2/customer/:reference

That allows you to consult the current information of a customer.

Request Information

HEADERS

AuthorizationBearer TOKEN

Query Params

Path Variables

reference : 00F7831X00

Response Information

Here are the parameters you will receive in your response:

Parameter NameTypeDescription
typeEnum (sender, receiver)Type of customer. profile.
first_nameStringCustomer’s first name.
last_nameStringCustomer’s last name.
phone_numberString (E.164)Customer’s phone number in international format.
birth_countryISO2 country codeTwo-letter country code of the customer's birth country.
birth_cityStringName of the city where the customer was born.
birth_dateString (YYYY-MM-DD)Customer’s date of birth in ISO format.
poi_typeStringType of proof of identity
poi_idStringIdentification number shown on the provided proof of identity.
nationalityStringCustomer’s origin country.
countryISO2 country codeTwo-letter country code of the customer's country of residence.
cityStringCity of residence.

Example Request

Curl

curl --location --globoff 'https://api.magmasend.com/v2/customer/00F7831X00' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer token'

Example Response

json
{
    "code": 200,
    "status": "OK",
    "customer": {
        "type": "sender",
        "first_name": "John",
        "last_name": "Doe",
        "phone_number": "+22507010203",
        "birth_country": "GB",
        "birth_city": "London",
        "birth_date": "1990-01-01",
        "poi_type": "NationalID",
        "poi_id": "123456789",
        "nationality": "CI",
        "country": "GB",
        "city": "London"
    }
}

Example success Response
{
    "code": 200,
    "status": "OK",
    "customer": {
        "type": "sender",
        "first_name": "John",
        "last_name": "Doe",
        "phone_number": "+22507010203",
        "birth_country": "GB",
        "birth_city": "London",
        "birth_date": "1990-01-01",
        "poi_type": "NationalID",
        "poi_id": "123456789",
        "nationality": "CI",
        "country": "GB",
        "city": "London"
    }
}

Example failed Response
{
    "code": 404,
    "status": "NOT_FOUND",
    "comment": "reference you requested does not exist"
}