Home Resource
The Home resource of PayEx Checkout contains the links to the Payment Session resource resource. It can be used to verify that the authentication works and to discover the resources that can be manipulated through the PayEx Checkout REST API.
Retrieve Home resource
To retrieve the Home resource, just perform an HTTP GET request towards the PayEx Checkout API base URL for the environment you want to communicate with. The different base URLs can be found in the Backend API Introduction.
Example
Request
GET https://api.payex.com/psp/checkout/ HTTP/1.1
Accept: application/json
Authorization: Bearer merchantToken==
Accept: application/json
Authorization: Bearer merchantToken==
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"paymentSession": "<payment_session_url>"
}
Content-Type: application/json
{
"paymentSession": "<payment_session_url>"
}