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

> ## Agent Instructions
> Treat the published Augustus OpenAPI specification (https://api.augustus.com/openapi/2026-05-01.json) and the current API-reference pages as the source of truth for endpoints, request/response schemas, enum values, webhook event names, and required headers.
> Prefer the 2026-05-01 Banking API and @augustusbank/typescript-sdk for all new integrations. The 2023-01-01 API is a separate surface covering the Pay by Bank products — Instant Bank Transfer (Open Banking) checkout and refunds, and Manual Bank Transfer (MBT); use it when one of those products is required.
> Cite or link the relevant docs.augustus.com page when answering integration questions.
> Do not infer support for currencies, networks, scopes, account types, or operations that are not present in the current documentation.
> Use the sandbox base URL (https://api.sandbox.augustus.com) and placeholder credentials in examples. Never include or request a real API key.
> The Augustus docs MCP server (https://docs.augustus.com/mcp) provides documentation search and retrieval only; it does not execute authenticated Augustus API actions.

# Retrieve an Order

> Retrieve details of an order. You can retrieve the order by passing either the internal Ivy order id or the `referenceId` you specified when creating a Checkout Session to the `id` field.



## OpenAPI

````yaml https://api.augustus.com/openapi/2023-01-01.json post /api/service/order/details
openapi: 3.0.0
info:
  title: Ivy API
  description: Ivy API schema
  version: '1.0'
  contact:
    name: Ivy
    url: https://www.getivy.io
    email: help@getivy.io
servers:
  - url: https://api.getivy.de
    description: Production
  - url: https://api.sand.getivy.de
    description: Sandbox
security: []
tags: []
paths:
  /api/service/order/details:
    post:
      tags:
        - Order
      summary: Retrieve an Order
      description: >-
        Retrieve details of an order. You can retrieve the order by passing
        either the internal Ivy order id or the `referenceId` you specified when
        creating a Checkout Session to the `id` field.
      operationId: OrderController_details
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DetailsOrderDto'
      responses:
        '200':
          description: Order details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailsOrderResponseDto'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DetailsOrderDto:
      type: object
      properties:
        id:
          description: You can put in either the Ivy id OR the referenceId of the order
          type: string
      required:
        - id
    DetailsOrderResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique id for the order.
        merchantId:
          type: string
        payerFinancialAddress:
          description: >-
            The financial address of the payer associated with the order. Only
            available after successful PIS flow.
          type: object
          properties:
            type:
              type: string
              enum:
                - iban
                - sort_code
                - bank_code
                - bban
                - wallet
                - aba
                - bic
            aba:
              type: object
              properties:
                accountHolderName:
                  type: string
                routingNumber:
                  type: string
                  minLength: 9
                  maxLength: 9
                  pattern: ^[0-9]+$
                accountNumber:
                  type: string
                  pattern: ^[0-9]+$
              required:
                - routingNumber
                - accountNumber
            bic:
              type: object
              properties:
                accountHolderName:
                  type: string
                accountNumber:
                  type: string
                bic:
                  type: string
                localBankCode:
                  type: string
              required:
                - accountNumber
                - bic
            iban:
              type: object
              properties:
                accountHolderName:
                  type: string
                iban:
                  type: string
                bic:
                  type: string
              required:
                - iban
            sortCode:
              type: object
              properties:
                accountHolderName:
                  type: string
                sortCode:
                  type: string
                accountNumber:
                  type: string
              required:
                - sortCode
                - accountNumber
            bankCode:
              type: object
              properties:
                accountHolderName:
                  type: string
                code:
                  type: string
                accountNumber:
                  type: string
              required:
                - code
                - accountNumber
            bban:
              type: object
              properties:
                accountHolderName:
                  type: string
                bban:
                  type: string
                bic:
                  type: string
              required:
                - bban
            wallet:
              type: object
              properties:
                address:
                  type: string
                  description: The blockchain wallet address
                blockchain:
                  type: string
                  enum:
                    - BTC
                    - BTC-TESTNET4
                    - ETH
                    - ETH-SEPOLIA
                    - SOL
                    - SOL-DEVNET
                    - MATIC
                    - MATIC-AMOY
                  description: The blockchain network
              required:
                - address
                - blockchain
          required:
            - type
        appId:
          type: string
          description: The unique id for the merchantApp which initiated the order.
        merchantAppId:
          type: string
          description: Same as appId
        shopName:
          type: string
          description: The legal name of the merchant which initiated the order.
        referenceId:
          type: string
          description: >-
            A unique id for the order which can be set when creating the
            checkoutSession.
        displayId:
          description: The customer-facing id of the order.
          type: string
        offsetProject:
          description: The project related to the order.
          type: string
        metadata:
          description: >-
            Set of key-value pairs that you can attach to an object. This can be
            useful for storing additional information about the object in a
            structured format.
          type: object
          additionalProperties: {}
        category:
          description: >-
            The merchant category code for the account. MCCs are used to
            classify businesses based on the goods or services they provide.
          type: string
        co2Grams:
          type: number
          minimum: 0
        applicationFeeAmount:
          type: number
          minimum: 0
          description: The amount of application fee collected with the order.
        price:
          type: object
          properties:
            total:
              type: number
              minimum: 0.01
            currency:
              type: string
              enum:
                - EUR
                - USD
                - GBP
                - PLN
                - SEK
                - DKK
            subTotal:
              type: number
            shipping:
              type: number
            totalNet:
              type: number
            vat:
              type: number
          required:
            - total
            - currency
          description: The price object. All values in decimals, e.g. 0.13 for 13 cents.
        lineItems:
          description: The list of line items sold with the order.
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: Customer-facing name of the line item.
              referenceId:
                description: An internal unique id stored to this line item.
                type: string
              singleNet:
                type: number
              singleVat:
                type: number
              amount:
                type: number
                description: >-
                  Accumulated cost in decimals. For example, for a lineItem with
                  total price 3.00 and quantity 4, amount would be equal to
                  12.00.
              quantity:
                default: 1
                description: Quantity of this lineItem.
                type: number
              image:
                description: An image of the line item. Valid URLs are accepted only.
                type: string
              category:
                type: string
                enum:
                  - '5045'
                  - '5065'
                  - '5094'
                  - '5192'
                  - '5193'
                  - '5499'
                  - '5655'
                  - '5691'
                  - '5712'
                  - '5722'
                  - '5812'
                  - '5814'
                  - '5912'
                  - '5977'
                  - '5999'
                  - '7629'
              EAN:
                type: string
              co2Grams:
                type: number
                minimum: 0
            required:
              - name
              - singleNet
              - singleVat
              - amount
        shopLogo:
          type: string
        guest:
          default: false
          type: boolean
        climateActionMode:
          type: object
          properties:
            type:
              type: string
              enum:
                - transaction
                - amount
            amount:
              type: number
          required:
            - type
            - amount
        impactOffsetProjects:
          type: array
          items: {}
        billingAddress:
          type: object
          properties:
            firstName:
              type: string
            lastName:
              type: string
            line1:
              type: string
              minLength: 1
            line2:
              type: string
            region:
              type: string
            city:
              type: string
              minLength: 1
            zipCode:
              type: string
              minLength: 1
            country:
              $ref: '#/components/schemas/Alpha2Code'
          required:
            - line1
            - city
            - zipCode
            - country
        shippingAddress:
          type: object
          properties:
            firstName:
              type: string
            lastName:
              type: string
            line1:
              type: string
              minLength: 1
            line2:
              type: string
            region:
              type: string
            city:
              type: string
              minLength: 1
            zipCode:
              type: string
              minLength: 1
            country:
              $ref: '#/components/schemas/Alpha2Code'
          required:
            - line1
            - city
            - zipCode
            - country
        paymentStatus:
          description: Deprecated. The status of the payment.
          type: string
          enum:
            - not_settled
            - failed
            - canceled
            - processing
            - requires_action
            - succeeded
            - in_refund
            - refunded
            - refund_failed
            - partially_refunded
            - disputed
        status:
          type: string
          enum:
            - failed
            - canceled
            - processing
            - waiting_for_payment
            - waiting_for_bank_confirmation
            - paid
            - in_refund
            - refunded
            - refund_failed
            - partially_refunded
            - in_dispute
            - disputed
            - refused
            - finalizing
          description: >-
            The status of the order. As soon as this value is 'paid', you can
            ship the order.
        refunds:
          description: All partial and total refunds of this order.
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: The unique id of this refund request.
              description:
                description: The description of the refund.
                type: string
              referenceId:
                type: string
                description: >-
                  The unique id of this refund request. This can be set when
                  requesting the refund.
              transactionId:
                description: The unique id of the transaction.
                type: string
              amount:
                type: number
                exclusiveMinimum: true
                description: The amount of the refund in decimals.
                minimum: 0
              status:
                type: string
                enum:
                  - pending
                  - succeeded
                  - failed
                  - requires_action
                  - partially_refunded
                description: The current status of this refund.
              createdAt:
                type: string
                format: date-time
              updatedAt:
                type: string
                format: date-time
            required:
              - id
              - referenceId
              - amount
              - status
              - createdAt
              - updatedAt
        refundAmount:
          description: >-
            The total amount in the currency of all successful refunds for this
            order
          type: number
          minimum: 0
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        shopperEmail:
          description: Deprecated. The email of the customer who completed the order.
          type: string
        shopper:
          description: Information about the customer who finished the order.
          type: object
          properties:
            email:
              type: string
            phoneNumber:
              type: string
        trees:
          type: number
        merchantFinancialAddress:
          description: >-
            The financial address of the merchant associated with the order.
            Only available when requested via order/details and therefore
            requires authentication.
          type: object
          properties:
            type:
              type: string
              enum:
                - iban
                - sort_code
                - bank_code
                - bban
                - wallet
                - aba
                - bic
            iban:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                iban:
                  type: string
                bic:
                  type: string
              required:
                - accountHolderName
                - iban
            aba:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                routingNumber:
                  type: string
                  minLength: 9
                  maxLength: 9
                  pattern: ^[0-9]+$
                accountNumber:
                  type: string
                  pattern: ^[0-9]+$
              required:
                - accountHolderName
                - routingNumber
                - accountNumber
            bic:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                accountNumber:
                  type: string
                bic:
                  type: string
                localBankCode:
                  type: string
              required:
                - accountHolderName
                - accountNumber
                - bic
            sortCode:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                sortCode:
                  type: string
                  minLength: 6
                  maxLength: 6
                  pattern: ^[0-9]+$
                accountNumber:
                  type: string
                  maxLength: 8
                  pattern: ^[0-9]+$
              required:
                - accountHolderName
                - sortCode
                - accountNumber
            bankCode:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                code:
                  type: string
                accountNumber:
                  type: string
              required:
                - accountHolderName
                - code
                - accountNumber
            bban:
              type: object
              properties:
                accountHolderName:
                  type: string
                  minLength: 1
                bban:
                  type: string
                bic:
                  type: string
              required:
                - accountHolderName
                - bban
            wallet:
              type: object
              properties:
                address:
                  type: string
                  description: The blockchain wallet address
                blockchain:
                  type: string
                  enum:
                    - BTC
                    - BTC-TESTNET4
                    - ETH
                    - ETH-SEPOLIA
                    - SOL
                    - SOL-DEVNET
                    - MATIC
                    - MATIC-AMOY
                  description: The blockchain network
              required:
                - address
                - blockchain
            paymentReference:
              type: string
          required:
            - type
        bankStatementReference:
          description: >-
            The reference that will be shown on the bank statement of the
            customer. Only available after a successful DirectDebit initiation.
          type: string
        destination:
          description: The destination bank account and statement reference for the order.
          type: object
          properties:
            bankAccount:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - iban
                    - sort_code
                    - bank_code
                    - bban
                    - wallet
                    - aba
                    - bic
                iban:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    iban:
                      type: string
                    bic:
                      type: string
                  required:
                    - accountHolderName
                    - iban
                aba:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    routingNumber:
                      type: string
                      minLength: 9
                      maxLength: 9
                      pattern: ^[0-9]+$
                    accountNumber:
                      type: string
                      pattern: ^[0-9]+$
                  required:
                    - accountHolderName
                    - routingNumber
                    - accountNumber
                bic:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    accountNumber:
                      type: string
                    bic:
                      type: string
                    localBankCode:
                      type: string
                  required:
                    - accountHolderName
                    - accountNumber
                    - bic
                sortCode:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    sortCode:
                      type: string
                      minLength: 6
                      maxLength: 6
                      pattern: ^[0-9]+$
                    accountNumber:
                      type: string
                      maxLength: 8
                      pattern: ^[0-9]+$
                  required:
                    - accountHolderName
                    - sortCode
                    - accountNumber
                bankCode:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    code:
                      type: string
                    accountNumber:
                      type: string
                  required:
                    - accountHolderName
                    - code
                    - accountNumber
                bban:
                  type: object
                  properties:
                    accountHolderName:
                      type: string
                      minLength: 1
                    bban:
                      type: string
                    bic:
                      type: string
                  required:
                    - accountHolderName
                    - bban
                wallet:
                  type: object
                  properties:
                    address:
                      type: string
                      description: The blockchain wallet address
                    blockchain:
                      type: string
                      enum:
                        - BTC
                        - BTC-TESTNET4
                        - ETH
                        - ETH-SEPOLIA
                        - SOL
                        - SOL-DEVNET
                        - MATIC
                        - MATIC-AMOY
                      description: The blockchain network
                  required:
                    - address
                    - blockchain
                paymentReference:
                  type: string
              required:
                - type
            bankStatementReference:
              type: string
              description: >-
                The bank statement reference of the payment for the order. This
                is the reference that will be visible on the bank statement.
          required:
            - bankAccount
            - bankStatementReference
        paymentMethodType:
          type: string
          enum:
            - customer_balance
            - manual_bank_transfer
        statusHistoryList:
          type: array
          items:
            type: object
            properties:
              previousStatus:
                type: string
                enum:
                  - failed
                  - canceled
                  - processing
                  - waiting_for_payment
                  - waiting_for_bank_confirmation
                  - paid
                  - in_refund
                  - refunded
                  - refund_failed
                  - partially_refunded
                  - in_dispute
                  - disputed
                  - refused
                  - finalizing
                  - null
                nullable: true
              currentStatus:
                type: string
                enum:
                  - failed
                  - canceled
                  - processing
                  - waiting_for_payment
                  - waiting_for_bank_confirmation
                  - paid
                  - in_refund
                  - refunded
                  - refund_failed
                  - partially_refunded
                  - in_dispute
                  - disputed
                  - refused
                  - finalizing
              reason:
                type: string
                enum:
                  - ORDER_CREATED
                  - CHECKOUT_SESSION_ABORTED
                  - PAYMENT_SUCCEEDED
                  - PAYMENT_INITIATED
                  - ORDER_CANCELED
                  - ORDER_EXPIRED_BY_MERCHANT
                  - ORDER_REFUND_INITIATED
                  - ORDER_REFUNDED
                  - REFUND_CHARGE_SUCCEEDED
                  - REFUND_UPDATED
                  - CHECKOUT_COMPLETED
                  - USER_CONFIRMED
                  - PIS_PAYMENT_INITIATED
                  - PIS_PAYMENT_UPDATED
                  - PIS_PAYMENT_SUCCEEDED
                  - PAYMENT_NOT_SETTLED
                  - PAYMENT_INITIATION_FAILED
                  - PAYMENT_CANCELED
                  - PAYMENT_FAILED
                  - CHECKOUT_SESSION_CREATED
                  - EXPIRED_CHECKOUT_SESSION_ABORTED
                  - DISPUTE
                  - PENDING_PAYMENT_ATTEMPTS_FOUND
                  - AML_FREEZE
                  - AML_APPROVE
                  - AML_REJECT
                  - AML_SEIZE
                  - MANUAL_FREEZE
                  - MANUAL_UNFREEZE
                  - ORDER_MANUALLY_REOPENED
                  - ORDER_FINALIZATION_STARTED
              createdAt:
                type: string
                format: date-time
              updatedAt:
                type: string
                format: date-time
            required:
              - currentStatus
              - reason
              - createdAt
              - updatedAt
        subaccountId:
          description: The subaccount id of the merchant.
          type: string
        subaccountLegalName:
          type: string
        instantPaymentScheme:
          type: boolean
        statusClassification:
          type: object
          properties:
            primary:
              type: string
              enum:
                - payment_authorisation_failed
                - payment_execution_failed
                - payment_abandoned
            secondary:
              type: string
              enum:
                - timeout
                - wrong_credentials
                - incorrect_2fa_response
                - payment_rejected
                - insufficient_funds
                - cancelled
                - connection_to_bank_failed
                - international_transfer_blocked
                - international_transfer_limit_exceeded
                - user_blocked
                - bank_error
                - instant_transfers_not_enabled
                - no_active_tan_methods_available
                - account_limit_exceeded
                - bank_under_maintenance
                - pin_blocked
                - payment_not_settled
                - unsupported_bank_account
                - online_banking_login_required
                - deutsche_bank_psu_migration
                - out_of_operational_hours
          required:
            - primary
        paymentMode:
          description: The payment mode of the order. Can be either settlement or direct.
          type: string
          enum:
            - direct
            - settlement
        customerId:
          description: The unique identifier of the customer who placed the order.
          type: string
        bankId:
          description: The unique identifier of the customer's bank.
          type: string
        transactionId:
          description: The unique id of the transaction.
          type: string
      required:
        - id
        - merchantId
        - appId
        - merchantAppId
        - shopName
        - referenceId
        - applicationFeeAmount
        - price
        - status
        - createdAt
        - updatedAt
        - instantPaymentScheme
    Alpha2Code:
      type: string
      enum:
        - AF
        - AL
        - DZ
        - AS
        - AD
        - AO
        - AI
        - AQ
        - AG
        - AR
        - AM
        - AW
        - AU
        - AT
        - AZ
        - BS
        - BH
        - BD
        - BB
        - BY
        - BE
        - BZ
        - BJ
        - BM
        - BT
        - BO
        - BA
        - BW
        - BV
        - BR
        - IO
        - BN
        - BG
        - BF
        - BI
        - KH
        - CM
        - CA
        - CV
        - KY
        - CF
        - TD
        - CL
        - CN
        - CX
        - CC
        - CO
        - KM
        - CG
        - CD
        - CK
        - CR
        - CI
        - HR
        - CU
        - CY
        - CZ
        - DK
        - DJ
        - DM
        - DO
        - EC
        - EG
        - SV
        - GQ
        - ER
        - EE
        - ET
        - FK
        - FO
        - FJ
        - FI
        - FR
        - GF
        - PF
        - TF
        - GA
        - GM
        - GE
        - DE
        - GH
        - GI
        - GR
        - GL
        - GD
        - GP
        - GU
        - GT
        - GN
        - GW
        - GY
        - HT
        - HM
        - VA
        - HN
        - HK
        - HU
        - IS
        - IN
        - ID
        - IR
        - IQ
        - IE
        - IL
        - IT
        - JM
        - JP
        - JO
        - KZ
        - KE
        - KI
        - KP
        - KR
        - KW
        - KG
        - LA
        - LV
        - LB
        - LS
        - LR
        - LY
        - LI
        - LT
        - LU
        - MO
        - MG
        - MW
        - MY
        - MV
        - ML
        - MT
        - MH
        - MQ
        - MR
        - MU
        - YT
        - MX
        - FM
        - MD
        - MC
        - MN
        - MS
        - MA
        - MZ
        - MM
        - NA
        - NR
        - NP
        - NL
        - NC
        - NZ
        - NI
        - NE
        - NG
        - NU
        - NF
        - MP
        - MK
        - 'NO'
        - OM
        - PK
        - PW
        - PS
        - PA
        - PG
        - PY
        - PE
        - PH
        - PN
        - PL
        - PT
        - PR
        - QA
        - RE
        - RO
        - RU
        - RW
        - SH
        - KN
        - LC
        - PM
        - VC
        - WS
        - SM
        - ST
        - SA
        - SN
        - SC
        - SL
        - SG
        - SK
        - SI
        - SB
        - SO
        - ZA
        - GS
        - ES
        - LK
        - SD
        - SR
        - SJ
        - SZ
        - SE
        - CH
        - SY
        - TW
        - TJ
        - TZ
        - TH
        - TL
        - TG
        - TK
        - TO
        - TT
        - TN
        - TR
        - TM
        - TC
        - TV
        - UG
        - UA
        - AE
        - GB
        - US
        - UM
        - UY
        - UZ
        - VU
        - VE
        - VN
        - VG
        - VI
        - WF
        - EH
        - YE
        - ZM
        - ZW
        - AX
        - BQ
        - CW
        - GG
        - IM
        - JE
        - ME
        - BL
        - MF
        - RS
        - SX
        - SS
        - XK
      example: DE
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Ivy-Api-Key
      description: API key for authentication

````

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