Validate

View latest verison »

This method is used to validate API credentials and get basic information about API account. The response body of a successful call will contain the JSON-representation of a account-resource.

HTTP-message

RequestResponse
Header
  • Content-Type: application/json;
Body
Account-resource

The test URI is https://test-api.payson.se/2.0/Accounts/

 

Response codes

CodeStatusInfo
200OkThe call was successful. The requested resource will be returned in the response body.
401UnauthorizedThe authorization failed. Check the authorization field in the header.

Request

GET https://api.payson.se/2.0/Accounts/ HTTP/1.1
Host: api.payson.se
Accept: application/json
Authorization: Basic MTIzNDpkYzE1NzE4Mi1lMjVhLTQwMDgtYmQwOS05MDNkZjM0MjhkYjQ=

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 1435

{

“accountEmail”:”testagent@payson.se”,

“status”:”Approved”,

“merchantId”:1,

“enabledForInvoice”:true,

“enabledForpaymentPlan”:false

}