Addressee
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==
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"
}
}
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"
}
}