API responses
View an API Response
Overview
User management
- Users
- User regulatory status
- User e-money
User verification
- User data format
- KYC documents
- UBO declarations
Wallets
- User wallets
- Client wallets
Cards
- Card registrations
- Cards
- Metadata
- Card validations
Card pay-ins
- Direct card pay-ins
- Recurring card pay-ins
- Preauthorizations
- Deposit preauthorizations
- Web card pay-ins
Banking pay-ins
- Bank wires
- Virtual IBAN
- Direct debits
- Web direct debits
APM pay-ins
- Apple Pay
- Bancontact
- BLIK
- Giropay
- Google Pay
- iDEAL
- Klarna
- MB WAY
- Multibanco
- Payconiq
- PayPal
- Satispay
- Swish
- TWINT
Transfers
- Transfers
Refunds
- Refunds
Disputes
- Disputes
- Dispute documents
- Repudiations
- Dispute settlement
Payouts
- Bank accounts
- Payouts
FX conversions
- Conversion rates
- Quotes
- Conversions
Transactions
- Transactions
Helpers
- API responses
- Country authorizations
- Webhooks
- Events
- Reports
Platform account
- Client
- Dashboard permissions
API responses
View an API Response
GET
/
v2.01
/
{ClientId}
/
responses
/
{IdempotencyKey}
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'your-temporary-folder-path';
try {
$idempotencyKey = "fk7urhkW45kpTHf445608d";
$response = $api->Responses->Get($idempotencyKey);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
{
"StatusCode": "200",
"ContentLength": "591",
"ContentType": "application/json; charset=utf-8",
"Date": "Tue, 19 Jul 2022 08:47:59 GMT",
"RequestURL": "https://api.mangopay.com/V2.01/clientId/users/natural",
"Resource": {
"Address": {
"AddressLine1": "Rue des plantes",
"AddressLine2": "The Oasis",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"FirstName": "Jane",
"LastName": "Doe",
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Occupation": null,
"IncomeRange": null,
"ProofOfIdentity": null,
"ProofOfAddress": null,
"Capacity": "NORMAL",
"Id": "146476890",
"Tag": "test doc july 2022",
"CreationDate": 1658220479,
"PersonType": "NATURAL",
"Email": "jdoe@mail.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1658220479,
"UserCategory": "PAYER"
}
}
This call returns an API response based on the corresponding idempotency key, within 24 hours of the initial call.
Path parameters
Min. length: 16 characters; max. length: 36 characters; only alphanumeric and dashes
A unique string generated by the platform.
Responses
The HTTP response code indicating the success or the failure of the request.
The size of the message body in bytes.
The media type (two-part identifier for file formats and format contents) of the resource.
The date and time when the response was sent.
The URL of the API request.
The body of the request’s response.
{
"StatusCode": "200",
"ContentLength": "591",
"ContentType": "application/json; charset=utf-8",
"Date": "Tue, 19 Jul 2022 08:47:59 GMT",
"RequestURL": "https://api.mangopay.com/V2.01/clientId/users/natural",
"Resource": {
"Address": {
"AddressLine1": "Rue des plantes",
"AddressLine2": "The Oasis",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"FirstName": "Jane",
"LastName": "Doe",
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Occupation": null,
"IncomeRange": null,
"ProofOfIdentity": null,
"ProofOfAddress": null,
"Capacity": "NORMAL",
"Id": "146476890",
"Tag": "test doc july 2022",
"CreationDate": 1658220479,
"PersonType": "NATURAL",
"Email": "jdoe@mail.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1658220479,
"UserCategory": "PAYER"
}
}
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'your-temporary-folder-path';
try {
$idempotencyKey = "fk7urhkW45kpTHf445608d";
$response = $api->Responses->Get($idempotencyKey);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
Was this page helpful?
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'your-temporary-folder-path';
try {
$idempotencyKey = "fk7urhkW45kpTHf445608d";
$response = $api->Responses->Get($idempotencyKey);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
{
"StatusCode": "200",
"ContentLength": "591",
"ContentType": "application/json; charset=utf-8",
"Date": "Tue, 19 Jul 2022 08:47:59 GMT",
"RequestURL": "https://api.mangopay.com/V2.01/clientId/users/natural",
"Resource": {
"Address": {
"AddressLine1": "Rue des plantes",
"AddressLine2": "The Oasis",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"FirstName": "Jane",
"LastName": "Doe",
"Birthday": null,
"Nationality": null,
"CountryOfResidence": null,
"Occupation": null,
"IncomeRange": null,
"ProofOfIdentity": null,
"ProofOfAddress": null,
"Capacity": "NORMAL",
"Id": "146476890",
"Tag": "test doc july 2022",
"CreationDate": 1658220479,
"PersonType": "NATURAL",
"Email": "jdoe@mail.com",
"KYCLevel": "LIGHT",
"TermsAndConditionsAccepted": true,
"TermsAndConditionsAcceptedDate": 1658220479,
"UserCategory": "PAYER"
}
}