The Payer resource contains information about the person that performed the PayEx Checkout user flow and eventually paid for the goods or service.

Retrieve Addressee resource

To retrieve the Addressee resource, you first have to have created a Payment Session resource and have the payer complete the PayEx Checkout user flow. Then, within the Payment Session resource, you will find a Addressee property containing the URL of the Addressee resource. When you have discovered that URL, just perform an HTTP GET request on it.

Example

Request

GET https://api.payex.com/psp/checkout/payment-sessions/123-456-789/addressee HTTP/1.1
Accept: application/json
Authorization: Bearer merchantToken==

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
   "id": "https://api.payex.com/psp/checkout/payment-sessions/123-456-789/addressee",
   "email": "payer@example.com",
   "mobilePhoneNumber": "+4712345678",
   "fullName": "Bill Payson",
   "address": {
       "streetAddress": "Street 13",
       "zipCode": "93837",
       "city": "Billington",
       "coAddress": "Cash Payson, Some Avenue 13",
       "countryCode": "NO"
    }
}
Created by Asbjørn Ulsberg on 2018/07/05 12:48
    

Tips

You can click on the arrows next to the breadcrumb elements to quickly navigate to sibling and children pages.

Need help?

If you need help with XWiki you can contact: