{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-get-payment-details-output-schema.json",
  "title": "GetPaymentDetailsOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-p2ps-api-openapi.yml#/components/schemas/GetPaymentDetailsOutput",
  "type": "object",
  "properties": {
    "transactions": {
      "$ref": "#/$defs/Transactions_TransactionP2P"
    },
    "_links": {
      "$ref": "#/$defs/Links"
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "LemonWayCommission": {
      "type": "object",
      "properties": {
        "idp2p": {
          "type": "string"
        },
        "amount": {
          "format": "int32",
          "description": "Amounts are represented as integer in cents (Euro)\nRepresented as an integer in cents (Euro)",
          "type": "integer"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "templated": {
          "type": "boolean",
          "readOnly": true
        },
        "method": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "deprecation": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "profile": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "hreflang": {
          "type": "string"
        }
      }
    },
    "Links": {
      "type": "object",
      "properties": {
        "first": {
          "$ref": "#/$defs/Link"
        },
        "last": {
          "$ref": "#/$defs/Link"
        },
        "previous": {
          "$ref": "#/$defs/Link"
        },
        "next": {
          "$ref": "#/$defs/Link"
        },
        "self": {
          "$ref": "#/$defs/Link"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    },
    "PrivateData": {
      "description": "Data with multiple fields that you can associate to a payment and that you can search with GetPaymentDetails.",
      "type": "object",
      "properties": {
        "value": {
          "description": "Up to 20 fields of 256 maximum length",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "TransactionP2P": {
      "type": "object",
      "properties": {
        "senderAccountId": {
          "description": "Debited Account",
          "type": "string"
        },
        "receiverAccountId": {
          "description": "Credited Account",
          "type": "string"
        },
        "debitAmount": {
          "format": "int32",
          "description": "Debited Amount\nAmounts are represented in cents (Euro)",
          "type": "integer"
        },
        "creditAmount": {
          "format": "int32",
          "description": "Credited Amount\nAmounts are represented in cents (Euro)",
          "type": "integer"
        },
        "privateData": {
          "$ref": "#/$defs/PrivateData"
        },
        "scheduledDate": {
          "description": "Request date for a payment or payment date. UTC unix timestamp",
          "type": "string"
        },
        "isFee": {
          "description": "Returned 1 for a P2P commission transaction",
          "type": "boolean"
        },
        "feeReference": {
          "format": "int32",
          "description": "Original transaction ID",
          "type": "integer"
        },
        "id": {
          "format": "int64",
          "description": "Transaction ID",
          "type": "integer"
        },
        "method": {
          "format": "int32",
          "description": "Payment Method  \n0 Card    \n1 Bank transfer (MoneyIn)     \n3 Bank transfer (MoneyOut)     \n4 P2P    \n13 iDEAL    \n14 SEPA DirectDebit    \n15 Cheque    \n19 Multibanco    \n21 MBWAY    \n30 BNPL  \n35 PayPal\n\n ---\n **Important:** The following services have been discontinued. \n \n16 Neosurf  \n17 Sofort  \n18 PFS Physical Card  \n20 Payshop  \n22 Polish Instant Transfer  \n23 Pagare  \n24 MobilePay\n25 Paytrail\n26 WeChat  \n27 P24  \n28 MoneyIn by TPE  \n29 Trustly",
          "type": "integer"
        },
        "methodDetails": {
          "format": "int32",
          "description": "Payment Method Details\n0 Standard\n1 Pay By Bank<br/>0 = STANDARD.<br/>1 = PAY_BY_BANK.<br/>",
          "enum": [
            0,
            1
          ],
          "type": "integer"
        },
        "date": {
          "format": "int32",
          "description": "Transaction initialization date, UTC Unix timestamp",
          "type": "integer"
        },
        "commissionAmount": {
          "format": "int32",
          "description": "Your fee\nAmounts are given as integer numbers in cents",
          "type": "integer"
        },
        "comment": {
          "description": "Comment",
          "type": "string"
        },
        "status": {
          "format": "int32",
          "description": "**For the following endpoints uses the below status code**   \n  \n/v2/accounts/{accountId}/transactions\n/v2/moneyins\n/v2/moneyins/card/direct\n/v2/moneyins/card/{cardid}/rebill\n/v2/moneyins/card/{cardid}/subscription\n/v2/moneyins/{transactionid}/validate\n/v2/moneyins/sdd/init\n/v2/moneyins/sdd\n/v2/moneyins/{transactionid}/cancel\n/v2/refund/{transactionid}\n/v2/refundcreate/{transactionId}\n            \n0: Success  \n3: Lemonway Error  \n4: Pending  \n6: PSP error  \n7: Cancelled  \n16: Validation pending  \n\n**For the following endpoints uses the below status code**  \n\n/v2/disputes\n/v2/moneyins/bankwire\n/v2/moneyins/card/direct/3dinit\n/v2/moneyouts\n/v2/p2p\n/v2/p2p/{transactionid?}\n            \n0: Waiting for finalization    \n3: Success    \n4: Lemonway Error",
          "type": "integer"
        },
        "executionDate": {
          "format": "int32",
          "description": "Transaction execution date",
          "type": "integer"
        },
        "lemonWayCommission": {
          "$ref": "#/$defs/LemonWayCommission"
        },
        "reference": {
          "description": "Unique ID generated by your server",
          "type": "string"
        }
      }
    },
    "Transactions_TransactionP2P": {
      "type": "object",
      "properties": {
        "value": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TransactionP2P"
          }
        }
      }
    }
  }
}