---
title: "Create Apple Pay Session"
method: POST
path: "/api/v2_1/applepay/session"
tags: ["ApplePay"]
---

# Create Apple Pay Session

`POST /api/v2_1/applepay/session`

## Request

- Base URL: `https://secure.payu.com`
- URL: `https://secure.payu.com/api/v2_1/applepay/session`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/docs/api/v2_1/applepay/session/post.ts> (a function with typed inputs; its response is checked against the schema)

Create an Apple Pay session for the specified domain.

## Headers

- `Content-Type` string, required
- `Authorization` string, required

## Request body

- object
  - `domain` string, required: Domain name.
  - `displayName` string, required: Domain display name.

## Response `200`

- object: An object from the Apple Pay API. Its structure depends on Apple Pay. It should be treated as is and used for further integration with Apple Pay.

## Other responses

- `400`
- `401`
- `422`: Ex. response for unverified domain.

---

[API](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api.md) - [All operations](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payu-com/apis/payu-gpo-europe-rest-api/revisions/185e74d5e007?raw)
