Appearance
Get customer's information
https://api.magmasend.com/v2/customer/:referenceThat allows you to consult the current information of a customer.
Request Information
HEADERS
| Authorization | Bearer TOKEN |
|---|
Query Params
Path Variables
reference : 00F7831X00
Response Information
Here are the parameters you will receive in your response:
| Parameter Name | Type | Description |
|---|---|---|
| type | Enum (sender, receiver) | Type of customer. profile. |
| first_name | String | Customer’s first name. |
| last_name | String | Customer’s last name. |
| phone_number | String (E.164) | Customer’s phone number in international format. |
| birth_country | ISO2 country code | Two-letter country code of the customer's birth country. |
| birth_city | String | Name of the city where the customer was born. |
| birth_date | String (YYYY-MM-DD) | Customer’s date of birth in ISO format. |
| poi_type | String | Type of proof of identity |
| poi_id | String | Identification number shown on the provided proof of identity. |
| nationality | String | Customer’s origin country. |
| country | ISO2 country code | Two-letter country code of the customer's country of residence. |
| city | String | City 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"
}