> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post Apple Pay Transaction

> Post an Apple Pay transaction to the PSP.



## OpenAPI

````yaml /mintlify-docs/openapi/spec-psp-wallet.yaml post /apple-pay/v1/{account_id}/payments/{payment_id}/transactions
openapi: 3.0.0
info:
  title: PSP Wallet API
  contact:
    name: API Integration Support
    email: integration@dintero.com
  version: LATEST
  license:
    name: UNLICENSED
    url: https://dintero.com
  x-logo:
    url: https://docs.dintero.com/img/dintero-dark-padded.svg
    altText: Dintero Logo
  description: >
    # Changelog


    All notable changes to the API.


    ## 2025-11-25


    > Add API spec for PSP API


    > - [POST
    /apple-pay/v1/{account_id}/payments/{payment_id}/transactions](#operation/applePayPost_Apple_Pay_Transaction)


    ## 2025-09-10


    > Add API spec for PSP API


    > - [POST
    /google-pay/v1/{account_id}/payments/{payment_id}/transactions](/psp-api/google-pay/googlePayPost_Google_Pay_Transaction)
servers:
  - url: https://payments.psp-test.dintero.com
    description: test server
  - url: https://payments.psp.dintero.com
    description: production server
security: []
paths:
  /apple-pay/v1/{account_id}/payments/{payment_id}/transactions:
    post:
      tags:
        - Apple Pay
      summary: applepayPost_Apple_Pay_Transaction
      description: Post an Apple Pay transaction to the PSP.
      operationId: applepayPost_Apple_Pay_Transaction
      parameters:
        - $ref: '#/components/parameters/AccountIdParam'
        - $ref: '#/components/parameters/PaymentIdParam'
        - $ref: '#/components/parameters/AccessTokenAuth'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - payment_data
                - reference
              additionalProperties: false
              properties:
                reference:
                  type: string
                  description: Unique reference for this transaction
                  minLength: 8
                  maxLength: 40
                payment_data:
                  type: string
                  maxLength: 10000
                  description: >-
                    Should be JSON stringified object of the event from the
                    `onpaymentauthorized` callback from apple pay. See
                    https://developer.apple.com/documentation/applepayontheweb/applepaysession/onpaymentauthorized
      responses:
        '200':
          description: Created transaction
          content:
            application/json:
              schema:
                type: object
                description: Created transaction
                required:
                  - payment_id
                  - transaction_id
                  - type
                additionalProperties: false
                properties:
                  payment_id:
                    type: string
                  transaction_id:
                    type: string
                  type:
                    type: string
                    enum:
                      - APPLE_PAY_AUTHENTICATION
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    AccountIdParam:
      name: account_id
      in: path
      required: true
      schema:
        type: string
        description: The Dintero merchant account id
        example: P12345678
        pattern: ^[PT]\d{8}
    PaymentIdParam:
      name: payment_id
      in: path
      required: true
      schema:
        type: string
    AccessTokenAuth:
      name: authorization
      in: header
      required: true
      schema:
        type: string
        description: Access token you received when creating the payment
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      description: An error occurred
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string

````