Skip to main content
POST
Validate an Apple Pay merchant session

Path Parameters

cart_token
string
required

Opaque cart token returned by the create-cart response. It scopes the request to a single cart and is the credential for these endpoints — cart-token authentication carried in the path, with no bearer token or API key.

Body

application/json
company_id
integer
required
country_id
integer
required
apple_session_url
string<uri>
required

Apple Pay startSession endpoint URL provided by the Apple Pay JS onvalidatemerchant event.

Response

Merchant session

Success body for Apple Pay merchant validation. apple_pay is Apple's raw startSession response body as a JSON-encoded string.

apple_pay
string
required

Apple's raw startSession response body, passed through as a JSON-encoded string for the browser to hand to the Apple Pay session.

meta
object
required

Standard response metadata included on every response.