Sandbox.payex-checkout-v1.Introduction.Payer - Addressee 
Page of - pēdējo reizi mainījis Asbjørn Ulsberg laiks 2018/07/05 12:48 
Addressee 

Asbjørn Ulsberg

2018/07/05 12:48
Satura rādītājs
Retrieve Addressee resource
Example
Request
Response

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