The API Response object

Parameters

StatusCode
string

string:

Maximum length is 255 characters

The status code of the API response

ContentLength
string

string:

Maximum length is 255 characters

The content length of the API response

ContentType
string

string:

Maximum length is 255 characters

The content type of the API response

Date
LongDate

LongDate

The long format date when the API request was received

Resource
Resource

Resource:

An API resource object

View Sub-parameters

An API resource

RequestURL
string

string:

Maximum length is 255 characters

The URL of the API request

{
"StatusCode": "200",
"ContentLength": "471",
"ContentType": "application/json; charset=utf-8",
"Date": "Wed, 13 Jan 2016 22:25:56 GMT",
"Resource": {
},
"RequestURL": "http://api.mangopay.com/v2.01/yourclientid/users/natural/"
}

View an API Response

GET .../v2.01/ClientId

The ID of your client account

/responses/IdempotencyKey

A key generated on the client side

/
  • View
  • Code
  • Run
  • View
  • Code
  • Run
GET .../responses/:IdempotencyKey/ HTTP/1.1
require_once("mangopay.php");

try {

$IdempotencyKey = "0a0f29fe-fcc6-4731-b042-4a367c123e20";

$Response = $Api->Responses->Get($IdempotencyKey);

} catch(MangoPay\Libraries\ResponseException $e) {
// handle/log the response exception with code $e->GetCode(), message $e->GetMessage() and error(s) $e->GetErrorDetails()

} catch(MangoPay\Libraries\Exception $e) {
// handle/log the exception $e->GetMessage()

}
GET .../responses// HTTP/1.1