---
title: "Get an Apple Pay session"
method: POST
path: "/applePay/sessions"
tags: ["Utility"]
---

# Get an Apple Pay session

`POST /applePay/sessions`

You need to use this endpoint if you have an API-only integration with Apple Pay which uses Adyen's Apple Pay certificate.

The endpoint returns the Apple Pay session data which you need to complete the [Apple Pay session validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).

## Headers

- `Idempotency-Key` string

## Request body

- ApplePaySessionRequest
  - `displayName` string, required — This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.
  - `domainName` string, required — The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop.
  - `merchantIdentifier` string, required — Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.

## Response `200`

OK - the request has succeeded.

- ApplePaySessionResponse
  - `data` string, required — Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).

---

[API](https://skmtc.net/adyen/apis/adyen-checkout-api.md) · [All operations](https://skmtc.net/adyen/apis/adyen-checkout-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/adyen/adyen-checkout-api/versions/a2d1f411288c/schema)
