POST Authorize Wallet Payment

​

Authorizes a wallet session for a payment that has already been initialized.

Call this only when the Payment Initialization response contained an action of type auth, and call it at the url that action gave you — it carries the application and payment processor identifiers as query parameters.

Apple Pay is the case you will meet in practice. When the payment sheet asks you to validate the merchant, post the validation URL it hands you as auth_info.verification_url, together with the domain the sheet is running on as auth_info.initiative_context. The response carries a base64-encoded merchant session in additional_info.session_object, which you pass to completeMerchantValidation().

Headers

  • Accept
    Type: string
    required

    Type of content accepted by the API (application/json in most cases)

  • Application
    Type: string
    required

    Application key for specific client app

  • Content-Type
    Type: string
    required

    Content-Type header

  • API-VERSION
    Type: string
    required

    Version of the API to be used

  • Authorization
    Type: string

    Authorization header

  • X-Request-ID
    Type: string
    required

    Unique request identifier

Body

required
application/json
  • payment_init_hash
    Type: string
    required

    The payment_init_hash of the payment being authorized. It must still be pending.

  • auth_info
    Type: object{ initiative_context, verification_url }

    Data the payment processor needs to authorize the wallet session.

    Properties: 2

Responses

  • application/json
  • 400

    Bad Request - the payment initialization hash is unknown or no longer pending, or the payment processor rejected the authorization

  • 401

    Unauthorized

  • 403

    Forbidden

Request Example for post/payment-processors/auth-payment
curl https://api-public-demo.menu.app/api/payment-processors/auth-payment \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --data '{
  "payment_init_hash": "032878b199f90e13e1bdce036e00f157",
  "auth_info": {
    "verification_url": "https://apple-pay-gateway.apple.com/paymentservices/startSession",
    "initiative_context": "shop.example.com"
  }
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "payment_processor_type_id": 32,
    "payment_processor_id": "3c07ddd3-925e-4549-b6a3-ec5cec38a0dd",
    "payment_init_hash": "032878b199f90e13e1bdce036e00f157",
    "additional_info": {
      "session_object": "eyJlcG9jaFRpbWVzdGFtcCI6MTcyMDAwMDAwMDAwMCwiZXhwaXJlc0F0IjoxNzIwMDAwMzAwMDAwfQ=="
    }
  }
}

Wallet session authorized

Previous
POST Generate Token Payment Processor
Next
GET Customer Stored Payment Method by UUID
Copyright © 2026 PAR Technology Corporation. All rights reserved.
PAR Technology Corporation 8383 Seneca Turnpike, Suite 3 New Hartford, New York 13413 (315) 738-0600 legal@partech.com. PAR Tech is a leading global provider of software, systems, and service solutions to the restaurant and retail industries. You may learn about its product offerings here.
Before using this application, please read the PAR Tech Terms of Use. In addition, the sample applications of PAR Technology are licensed under the terms of the O'Saasy License.
  • Guides
    • References
    • APIs
    • Tools/Platforms
      • Knowledge Base
      • System Status
logo
HomeHome