Merge · Schema

PaymentRequest

# The Payment Object ### Description The `Payment` object represents general payments made towards a specific transaction. ### Usage Example Fetch from the `GET Payment` endpoint and view an invoice's payment.

IntegrationsPlatformUnified APIAgent HandlerLLM Gateway

Properties

Name Type Description
transaction_date stringnull The payment's transaction date.
contact stringnull The supplier, or customer involved in the payment.
account stringnull The supplier’s or customer’s account in which the payment is made.
payment_method stringnull The method which this payment was made by.
currency object The payment's currency. The currency code in ISO 4217 format.
exchange_rate stringnull The payment's exchange rate.
company stringnull The company the payment belongs to.
total_amount numbernull The total amount of money being paid to the supplier, or customer, after taxes.
type object The type of the invoice.
tracking_categories array
accounting_period stringnull The accounting period that the Payment was generated in.
applied_to_lines array A list of “Payment Applied to Lines” objects.
integration_params objectnull
linked_account_params objectnull
remote_fields array
View JSON Schema on GitHub

JSON Schema

merge-paymentrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PaymentRequest",
  "title": "PaymentRequest",
  "type": "object",
  "properties": {
    "transaction_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The payment's transaction date."
    },
    "contact": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The supplier, or customer involved in the payment."
    },
    "account": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The supplier\u2019s or customer\u2019s account in which the payment is made."
    },
    "payment_method": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The method which this payment was made by."
    },
    "currency": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/TransactionCurrencyEnum"
        },
        {
          "type": "null"
        }
      ],
      "description": "The payment's currency. The currency code in ISO 4217 format."
    },
    "exchange_rate": {
      "type": [
        "string",
        "null"
      ],
      "format": "decimal",
      "description": "The payment's exchange rate."
    },
    "company": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The company the payment belongs to."
    },
    "total_amount": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "The total amount of money being paid to the supplier, or customer, after taxes."
    },
    "type": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/PaymentTypeEnum"
        },
        {
          "type": "null"
        }
      ],
      "description": "The type of the invoice."
    },
    "tracking_categories": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "accounting_period": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The accounting period that the Payment was generated in."
    },
    "applied_to_lines": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PaymentLineItemRequest"
      },
      "description": "A list of \u201cPayment Applied to Lines\u201d objects."
    },
    "integration_params": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "description": "Any type"
      }
    },
    "linked_account_params": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "description": "Any type"
      }
    },
    "remote_fields": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RemoteFieldRequest"
      }
    }
  },
  "description": "# The Payment Object\n### Description\nThe `Payment` object represents general payments made towards a specific transaction.\n\n### Usage Example\nFetch from the `GET Payment` endpoint and view an invoice's payment."
}