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

# Get a purchase's payment and allocation breakdown

> Return the payment for one purchase with its per-merchant allocations, refunds, transfers and disputes; all amounts are integer minor units with their currency. Requires the `finance:read` scope. Returns `404` when the purchase has no payment in this workspace.



## OpenAPI

````yaml /api-reference.json get /v1/finance/purchases/{purchase_id}
openapi: 3.1.0
info:
  description: >-
    Multi-merchant checkout infrastructure (808labs). UAE/AED first on Stripe;
    Saudi/SAR follows separate certification. OpenAPI is canonical; customers
    can integrate without an SDK. Customer dashboard authentication uses
    verified OIDC; workspace access requires an invitation or explicitly enabled
    Sandbox self-registration; machine integrations use scoped API keys. Plans
    and usage are defined in the developer guide. Internal operator and provider
    callback contracts are excluded.
  title: Ignyt Platform API
  version: 0.1.0
servers:
  - url: https://sandbox.ignite-checkout.ai
    description: 'Planned Sandbox host: use assigned deployment URL until activated'
  - url: https://api.ignite-checkout.ai
    description: 'Planned Production host: separate approval and Live credentials required'
security: []
tags:
  - name: Integration
    description: Identity, usage and the public schema for the calling integration.
  - name: Merchants
    description: Discover merchants, manage enrollments and invite stores.
  - name: Catalog
    description: Products, variants, categories and synchronization.
  - name: Carts and checkout
    description: >-
      Build carts, freeze quotes, submit purchases and manage optional Sandbox
      buyer sharing.
  - name: Webhooks and events
    description: Endpoints, deliveries, retries and the event feed.
  - name: Refunds
    description: Request and follow refunds on merchant orders.
  - name: Purchases and orders
    description: Purchases, merchant orders, cancellations and returns.
  - name: Payments and finance
    description: Payment breakdowns, statements and disputes.
  - name: Custom fields
    description: Approved custom field schemas and order extensions.
paths:
  /v1/finance/purchases/{purchase_id}:
    get:
      tags:
        - Payments and finance
      summary: Get a purchase's payment and allocation breakdown
      description: >-
        Return the payment for one purchase with its per-merchant allocations,
        refunds, transfers and disputes; all amounts are integer minor units
        with their currency. Requires the `finance:read` scope. Returns `404`
        when the purchase has no payment in this workspace.
      operationId: finance_v1_finance_purchases__purchase_id__get
      parameters:
        - in: path
          name: purchase_id
          required: true
          schema:
            title: Purchase Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ignite-app-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ignite-App-Id
      responses:
        '200':
          content:
            application/json:
              example:
                allocations:
                  - child_order_id: mord_example
                    fee_legs:
                      - agreement_id: agr_example_platform
                        amount_minor: 996
                        beneficiary: ignite
                        beneficiary_role: ignite
                        clawback: proportional
                        funded_by: merchant_gross
                        gross_amount_minor: 1245
                        key: platform_fee
                        maturity_days: 14
                        payer: merchant
                        version: 1
                      - agreement_id: agr_example_client
                        amount_minor: 249
                        beneficiary: tenant:ten_example
                        beneficiary_role: tenant
                        clawback: proportional
                        funded_by: platform_fee
                        gross_amount_minor: 249
                        key: client_share
                        maturity_days: 30
                        payer: ignite
                        version: 1
                    gross_minor: 27720
                    id: alc_example
                    merchant_id: mer_example
                    net_merchant_minor: 24087
                    processor_fee_finalized: false
                    processor_fee_minor: 0
                    refunded_minor: 2500
                    settlement_policy:
                      hold_days: 0
                      id: null
                      merchant_share_bps: 0
                      revision: 0
                    status: held
                disputes: []
                payment:
                  amount_minor: 27720
                  attempt_id: pur_example
                  captured: true
                  client_secret: null
                  currency: AED
                  failure_reason: null
                  id: pay_example
                  provider: sandbox
                  provider_ref: pi_sbx_example
                  references:
                    app_id: app_example
                    environment: sandbox
                    ignite_payment_id: pay_example
                    provider: sandbox
                    provider_payment_id: pi_sbx_example
                    purchase_id: pur_example
                    tenant_id: ten_example
                  status: succeeded
                recovery_obligations: []
                refunds:
                  - amount_minor: 2500
                    child_order_id: mord_example
                    components:
                      - amount_minor: 90
                        beneficiary: ignite
                        key: platform_fee
                      - amount_minor: 22
                        beneficiary: tenant:ten_example
                        key: client_share
                      - amount_minor: 2388
                        beneficiary: merchant
                        key: merchant_net
                    currency: AED
                    external_ref: return-8841
                    id: rfd_example
                    provider_ref: re_sbx_example
                    reason: Shopper returned item
                    requires_recovery: false
                    source: client
                    status: succeeded
                settlement_instructions: []
                tenant_recoveries: []
                tenant_recoveries_truncated: false
                tenant_transfers: []
                transfers: []
              schema:
                $ref: '#/components/schemas/PurchaseFinanceView'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: Missing, expired or invalid credentials (`unauthorized`).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The credential is valid but lacks the required scope, role,
            environment or ownership for this resource (`forbidden` or a more
            specific code).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The resource does not exist or is not visible to this credential
            (`not_found`).
        '422':
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                      details:
                        anyOf:
                          - items:
                              properties:
                                loc:
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: integer
                                  type: array
                                msg:
                                  type: string
                                type:
                                  type: string
                              required:
                                - type
                                - loc
                                - msg
                              type: object
                            type: array
                          - type: object
                      message:
                        type: string
                      request_id:
                        type: string
                    required:
                      - code
                      - message
                      - details
                      - request_id
                    type: object
                required:
                  - error
                type: object
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            A plan allowance, rate limit or resource limit was reached. For
            `rate_limited` (a per-second ceiling) or the monthly API allowance
            (`plan_quota_exceeded`), wait for the `Retry-After` interval before
            retrying. A specific `*_rate_limited` code, such as
            `invitation_email_rate_limited`, is an hourly limit sent without
            `Retry-After`: retry later with bounded backoff. A resource limit
            described by the operation, such as active merchant requests or
            uploads, does not clear by waiting: complete or withdraw existing
            items first. Monthly allowance and cost limits never block servicing
            of accepted orders; per-second ceilings still apply to servicing
            routes.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying, sent only when the monthly API
                allowance is exhausted (`plan_quota_exceeded`) or a per-second
                rate limit (`rate_limited`) is reached; specific
                `*_rate_limited` codes omit it.
              schema:
                type: integer
      security:
        - MachineKey: []
        - CustomerOIDC: []
components:
  schemas:
    PurchaseFinanceView:
      description: >-
        Money movement for one purchase: charge, per-merchant allocations,
        transfers, refunds and recovery.
      properties:
        allocations:
          items:
            $ref: '#/components/schemas/FinanceAllocationView'
          title: Allocations
          type: array
        disputes:
          items:
            $ref: '#/components/schemas/FinanceDisputeSummary'
          title: Disputes
          type: array
        payment:
          $ref: '#/components/schemas/FinancePaymentView'
        recovery_obligations:
          items:
            $ref: '#/components/schemas/FinanceRecoveryObligationView'
          title: Recovery Obligations
          type: array
        refunds:
          items:
            $ref: '#/components/schemas/FinanceRefundView'
          title: Refunds
          type: array
        settlement_instructions:
          items:
            $ref: '#/components/schemas/FinanceSettlementInstructionView'
          title: Settlement Instructions
          type: array
        tenant_recoveries:
          items:
            $ref: '#/components/schemas/FinanceTenantRecoveryView'
          title: Tenant Recoveries
          type: array
        tenant_recoveries_truncated:
          title: Tenant Recoveries Truncated
          type: boolean
        tenant_transfers:
          items:
            $ref: '#/components/schemas/FinanceTenantTransferView'
          title: Tenant Transfers
          type: array
        transfers:
          items:
            $ref: '#/components/schemas/FinanceTransferView'
          title: Transfers
          type: array
      required:
        - tenant_transfers
        - tenant_recoveries
        - tenant_recoveries_truncated
        - payment
        - allocations
        - transfers
        - settlement_instructions
        - recovery_obligations
        - refunds
        - disputes
      title: PurchaseFinanceView
      type: object
    IgniteErrorEnvelope:
      description: Document the existing error handler without changing its serialization.
      properties:
        error:
          $ref: '#/components/schemas/IgniteErrorDetail'
      required:
        - error
      title: IgniteErrorEnvelope
      type: object
    FinanceAllocationView:
      properties:
        child_order_id:
          title: Child Order Id
          type: string
        fee_legs:
          description: Frozen fee legs (Ignyt, tenant, affiliate, PSP).
          items:
            additionalProperties: true
            type: object
          title: Fee Legs
          type: array
        gross_minor:
          title: Gross Minor
          type: integer
        id:
          title: Id
          type: string
        merchant_id:
          title: Merchant Id
          type: string
        net_merchant_minor:
          title: Net Merchant Minor
          type: integer
        processor_fee_finalized:
          title: Processor Fee Finalized
          type: boolean
        processor_fee_minor:
          title: Processor Fee Minor
          type: integer
        refunded_minor:
          title: Refunded Minor
          type: integer
        settlement_policy:
          $ref: '#/components/schemas/FinanceSettlementPolicyRef'
        status:
          title: Status
          type: string
      required:
        - id
        - child_order_id
        - merchant_id
        - gross_minor
        - net_merchant_minor
        - refunded_minor
        - status
        - fee_legs
        - processor_fee_minor
        - processor_fee_finalized
        - settlement_policy
      title: FinanceAllocationView
      type: object
    FinanceDisputeSummary:
      properties:
        amount_minor:
          title: Amount Minor
          type: integer
        evidence_due_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Evidence Due At
        id:
          title: Id
          type: string
        loss_booked:
          title: Loss Booked
          type: boolean
        reason:
          title: Reason
          type: string
        status:
          title: Status
          type: string
      required:
        - id
        - status
        - amount_minor
        - reason
        - loss_booked
        - evidence_due_at
      title: FinanceDisputeSummary
      type: object
    FinancePaymentView:
      properties:
        amount_minor:
          title: Amount Minor
          type: integer
        attempt_id:
          title: Attempt Id
          type: string
        captured:
          title: Captured
          type: boolean
        client_secret:
          description: Always null; confirmation material is checkout-scoped.
          title: Client Secret
          type: 'null'
        currency:
          title: Currency
          type: string
        failure_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Reason
        id:
          title: Id
          type: string
        provider:
          title: Provider
          type: string
        provider_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Ref
        references:
          $ref: '#/components/schemas/FinancePaymentReferences'
        status:
          title: Status
          type: string
      required:
        - id
        - attempt_id
        - provider
        - provider_ref
        - references
        - status
        - amount_minor
        - currency
        - client_secret
        - failure_reason
        - captured
      title: FinancePaymentView
      type: object
    FinanceRecoveryObligationView:
      properties:
        allocation_id:
          title: Allocation Id
          type: string
        amount_minor:
          title: Amount Minor
          type: integer
        currency:
          title: Currency
          type: string
        dispute_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Dispute Id
        id:
          title: Id
          type: string
        kind:
          title: Kind
          type: string
        merchant_id:
          title: Merchant Id
          type: string
        provider_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Ref
        refund_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Refund Id
        settlement_fee_receipt_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Settlement Fee Receipt Id
        status:
          title: Status
          type: string
      required:
        - id
        - allocation_id
        - merchant_id
        - refund_id
        - dispute_id
        - settlement_fee_receipt_id
        - kind
        - amount_minor
        - currency
        - status
        - provider_ref
      title: FinanceRecoveryObligationView
      type: object
    FinanceRefundView:
      properties:
        amount_minor:
          title: Amount Minor
          type: integer
        child_order_id:
          title: Child Order Id
          type: string
        components:
          items:
            additionalProperties: true
            type: object
          title: Components
          type: array
        currency:
          title: Currency
          type: string
        external_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: External Ref
        id:
          title: Id
          type: string
        provider_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Ref
        reason:
          title: Reason
          type: string
        requires_recovery:
          title: Requires Recovery
          type: boolean
        source:
          title: Source
          type: string
        status:
          title: Status
          type: string
      required:
        - id
        - child_order_id
        - amount_minor
        - currency
        - reason
        - source
        - external_ref
        - provider_ref
        - status
        - components
        - requires_recovery
      title: FinanceRefundView
      type: object
    FinanceSettlementInstructionView:
      properties:
        allocation_id:
          title: Allocation Id
          type: string
        amount_minor:
          title: Amount Minor
          type: integer
        id:
          title: Id
          type: string
        merchant_id:
          title: Merchant Id
          type: string
        psp:
          title: Psp
          type: string
        status:
          title: Status
          type: string
      required:
        - id
        - allocation_id
        - merchant_id
        - psp
        - amount_minor
        - status
      title: FinanceSettlementInstructionView
      type: object
    FinanceTenantRecoveryView:
      properties:
        amount_minor:
          title: Amount Minor
          type: integer
        currency:
          title: Currency
          type: string
        dispute_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Dispute Id
        id:
          title: Id
          type: string
        refund_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Refund Id
        status:
          title: Status
          type: string
        transfer_id:
          title: Transfer Id
          type: string
      required:
        - id
        - transfer_id
        - refund_id
        - dispute_id
        - amount_minor
        - currency
        - status
      title: FinanceTenantRecoveryView
      type: object
    FinanceTenantTransferView:
      properties:
        allocation_id:
          title: Allocation Id
          type: string
        amount_minor:
          title: Amount Minor
          type: integer
        created_at:
          title: Created At
          type: string
        currency:
          title: Currency
          type: string
        id:
          title: Id
          type: string
        provider_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Ref
        status:
          title: Status
          type: string
        tenant_id:
          title: Tenant Id
          type: string
      required:
        - id
        - allocation_id
        - tenant_id
        - amount_minor
        - currency
        - status
        - provider_ref
        - created_at
      title: FinanceTenantTransferView
      type: object
    FinanceTransferView:
      properties:
        allocation_id:
          title: Allocation Id
          type: string
        amount_minor:
          title: Amount Minor
          type: integer
        id:
          title: Id
          type: string
        provider_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Ref
        status:
          title: Status
          type: string
      required:
        - id
        - allocation_id
        - amount_minor
        - status
        - provider_ref
      title: FinanceTransferView
      type: object
    IgniteErrorDetail:
      description: Stable error fields; details remain open to each domain's JSON evidence.
      properties:
        code:
          title: Code
          type: string
        details:
          title: Details
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
        - details
        - request_id
      title: IgniteErrorDetail
      type: object
    FinanceSettlementPolicyRef:
      properties:
        hold_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Hold Days
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        merchant_share_bps:
          anyOf:
            - type: integer
            - type: 'null'
          title: Merchant Share Bps
        revision:
          anyOf:
            - type: integer
            - type: 'null'
          title: Revision
      title: FinanceSettlementPolicyRef
      type: object
    FinancePaymentReferences:
      properties:
        app_id:
          title: App Id
          type: string
        environment:
          title: Environment
          type: string
        ignite_payment_id:
          title: Ignite Payment Id
          type: string
        provider:
          title: Provider
          type: string
        provider_payment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider Payment Id
        purchase_id:
          title: Purchase Id
          type: string
        tenant_id:
          title: Tenant Id
          type: string
      required:
        - ignite_payment_id
        - purchase_id
        - tenant_id
        - app_id
        - environment
        - provider
        - provider_payment_id
      title: FinancePaymentReferences
      type: object
  securitySchemes:
    MachineKey:
      description: Server-side scoped Ignyt API key.
      scheme: bearer
      type: http
    CustomerOIDC:
      bearerFormat: JWT
      description: >-
        Customer access token; current membership, role and app selection are
        enforced. Protected actions use recent email-code verification in the
        configured Sandbox or recent authenticator verification in legacy
        password mode. Available when customer authentication is enabled.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.