# Wiki source code of Home Resource

Last modified by Asbjørn Ulsberg on 2018/07/05 12:48

#### Export

#### Office Formats

Export as PDF Export as ODT Export as RTF

#### Other Formats

Select the pages to export:

select all / none

Export as HTML
Show last authors

1 | The Home resource of PayEx Checkout contains the links to the [[Payment Session resource>>Sandbox.payex-checkout-v1.Introduction.Payment-session.WebHome]] 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.
2 |
3 | = Retrieve Home resource =
4 |
5 | To retrieve the Home resource, just perform an HTTP {{code}}GET{{/code}} 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>>doc:Sandbox.payex-checkout-v1.Introduction.WebHome]].
6 |
7 | == Example ==
8 |
9 | === Request ===
10 |
11 | {{code language="JavaScript"}}
12 | GET https://api.payex.com/psp/checkout/ HTTP/1.1
13 | Accept: application/json
14 | Authorization: Bearer merchantToken==
15 | {{/code}}
16 |
17 | === Response ===
18 |
19 | {{code language="JavaScript"}}
20 | HTTP/1.1 200 OK
21 | Content-Type: application/json
22 |
23 | {
24 | "paymentSession": "<payment_session_url>"
25 | }
26 | {{/code}}

# Applications

# Tips

Did you know that you can improve XWiki? Take 5 minutes to fill this survey and help this open source project!

# Need help?

If you need help with XWiki you can contact:

- Community Support
- Professional Support