Merge subpackage_purchaseOrders API

The subpackage_purchaseOrders API from Merge — 5 operation(s) for subpackage_purchaseorders.

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/hris-api-employee-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/hris-api-employee-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ats-api-candidate-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ats-api-application-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/ats-api-candidate-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/accounting-api-invoice-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/accounting-api-invoice-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/ticketing-api-ticket-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/ticketing-api-ticket-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/crm-api-opportunity-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/crm-api-opportunity-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/file-storage-api-file-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/file-storage-api-file-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/knowledge-base-api-article-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/knowledge-base-api-article-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/chat-api-message-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/chat-api-message-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/agent-handler-tool-pack-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/agent-handler-tool-pack-structure.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/gateway-response-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-structure/gateway-response-structure.json

Other Resources

🔗
Website
https://www.merge.dev/categories/hr-payroll-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-hris-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/hris-api-employee-example.json
🔗
Website
https://www.merge.dev/categories/ats-recruiting-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-ats-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ats-api-candidate-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ats-api-application-example.json
🔗
Website
https://www.merge.dev/categories/accounting-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-accounting-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/accounting-api-invoice-example.json
🔗
Website
https://www.merge.dev/categories/ticketing-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-ticketing-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/ticketing-api-ticket-example.json
🔗
Website
https://www.merge.dev/categories/crm-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-crm-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/crm-api-opportunity-example.json
🔗
Website
https://www.merge.dev/categories/file-storage-api
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-file-storage-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/file-storage-api-file-example.json
🔗
Website
https://www.merge.dev/categories/knowledge-base
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-knowledge-base-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/knowledge-base-api-article-example.json
🔗
Website
https://www.merge.dev/categories/chat
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-chat-api-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/chat-api-message-example.json
🔗
Website
https://www.merge.dev/merge-agent-handler
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-agent-handler-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/agent-handler-tool-pack-example.json
🔗
Support
https://help.ah.merge.dev/
🔗
Website
https://www.merge.dev/gateway
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-ld/merge-gateway-context.jsonld
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/examples/gateway-response-example.json

OpenAPI Specification

merge-subpackage-purchaseorders-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Accounting subpackage_purchaseOrders API
  version: 1.0.0
servers:
- url: https://api.merge.dev/api
- url: https://api-eu.merge.dev/api
- url: https://api-ap.merge.dev/api
tags:
- name: subpackage_purchaseOrders
paths:
  /accounting/v1/purchase-orders:
    get:
      operationId: list
      summary: List
      description: Returns a list of `PurchaseOrder` objects.{/* BEGIN_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+2YbW/aOhTHvwrySwRkLYOqSFdXFOhGdQldS6dVU2UdnENwSezUD5Qy7btfJYSnjYeOItRWe5c4x/8TH/vnv5MfhIFBX6onUiHAmLTCcOGTHAmlhwGpkEurWB80tpWHiuQIRNyFEJfC6fCY5Ii2USSVQe+cY+Dpzwp7pEKcEJWPeSt4j6PnzDs5XBj0FRguhXZmnfO9pDfJkYCLAXrVSYftcpPwfNryy612Aq4NyZEItDZ9Ja3fv8IHi/oZyvG7BRiiMBDkPTDgLKjk1URmVVs8Cg8DNOjVwUAdDbJ4uGnGvjGRrjhOH4OokGQveDh0UDigDGcBaqdUPD0+OS3lU5Uk+7/UD/45yt4/dGX3JEt9FlCw2VaHjdxO89G99z+6tY8jd3xTcseDsXs/+JClPmRbnVap3bkttuvVo/aKAHpd/nb69ax+duFm2bhRdO9vH90OO2p12KA7bhYvPrHHi89fRu749rhVvym6nUbp4pM8ateudKt2JVvVQoHkyOKsksr3H4sN6cJpcaaklj2TqT8JCDnTmWK5lDmzmgvUOlNDYRQEy2LNEHxcKNpktiDi+ch2A84KuliAEMZSwKMuMBk6IXocnFkyOk1Gi+USnSajaTJak4FU9HTUOC+XTwpRwkBSdS7FbOJIhTTcz1W31qgvr6XqEHgA3QBJxSiLv8FAKt+XSfqPC2waDAvpOiO5Nc891EzxKMm+LoYbDNc+jNJWKlOCV4c9WBCGm6e1AQpDaZByb22EgRGFcONojDQQ0IAL3BqpgA3ivSXdoDjqtbFWcEMjxRmSHGEyjEDE42BWKRQsvvQw4ENUTxQ8T6GOpbjWFqkHJu6UvFFcxvjJcsWosGE3KVxaAaYQDHoUzLwt5nL5jkZg+vOmpGzptY28uYA2YGycdVKaWVVWj3+IwpOK3MVaD5Yr9C5BQYgGVbzG7n7mngncORcgGGZAeJl2hFNg94LcZQCmJ1W4Ar00LaXznAdkbb40dmdtzzilC2drzHQ5vQo2d+Jt1pQixwULrOZDpLJHDYxeguTz8JuhthtFLppry9N3fzEkLhodq1H9YEHhBgrcaqf5tXEov9nGyMIkrw7AEeuD8JGqyTzuYFnJ2ZNau2E9v2MMYbS5dAfw0IWjfYSKS28d579O9iqoxVBylmRez3eIoUxW+FN8zKYGVfgejbitgAWYObeaS5GpBdJ6mcbV5X52lIk4nYjTRJw2ri5pnl5v22IObbRbN5HXdup9pzb9G75vEdDdUPxiORucSTnQmbaIh7ofCOey+Ymx05vecfns5OjVGPyL0Tq8O28C5gAflJvs7q+3TYG6Bh8zTWGAMbMflmJFmiqmHkaHQ+7qE3hLXvb3QPzG/xmlfvje4N/NN7+hkvvBO1ZKTfL9mOPr+tv6Cj4l2Z8A9Qd/hKZg7ePH0F6pufv5PwDWzQZVGwAA" /></Footer>{/* END_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: company_id
        in: query
        description: If provided, will only return purchase orders for this company.
        required: false
        schema:
          type: string
      - name: created_after
        in: query
        description: If provided, will only return objects created after this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: created_before
        in: query
        description: If provided, will only return objects created before this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: expand
        in: query
        description: Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/PurchaseOrdersGetParametersExpandSchemaItems'
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_remote_fields
        in: query
        description: Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: issue_date_after
        in: query
        description: If provided, will only return objects created after this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: issue_date_before
        in: query
        description: If provided, will only return objects created before this datetime.
        required: false
        schema:
          type: string
          format: date-time
      - name: modified_after
        in: query
        description: If provided, only objects synced by Merge after this date time will be returned.
        required: false
        schema:
          type: string
          format: date-time
      - name: modified_before
        in: query
        description: If provided, only objects synced by Merge before this date time will be returned.
        required: false
        schema:
          type: string
          format: date-time
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: remote_fields
        in: query
        description: Deprecated. Use show_enum_origins.
        required: false
        schema:
          $ref: '#/components/schemas/PurchaseOrdersGetParametersRemoteFields'
      - name: remote_id
        in: query
        description: The API provider's ID for the given object.
        required: false
        schema:
          type: string
      - name: show_enum_origins
        in: query
        description: A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
        required: false
        schema:
          $ref: '#/components/schemas/PurchaseOrdersGetParametersShowEnumOrigins'
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedPurchaseOrderList'
    post:
      operationId: create
      summary: Create
      description: Creates a `PurchaseOrder` object with the given values.{/* BEGIN_ACCOUNTING_PURCHASEORDER_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="POST" data="H4sIAAAA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UPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: is_debug_mode
        in: query
        description: Whether to include debug fields (such as log file links) in the response.
        required: false
        schema:
          type: boolean
      - name: run_async
        in: query
        description: Whether or not third-party updates should be run asynchronously.
        required: false
        schema:
          type: boolean
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchaseOrderResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PurchaseOrderEndpointRequest'
  /accounting/v1/purchase-orders/{id}:
    get:
      operationId: retrieve
      summary: Retrieve
      description: Returns a `PurchaseOrder` object with the given `id`.{/* BEGIN_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+2YbW/aOhTHvwrySwRkLYOqSFdXFOhGdQldS6dVU2UdnENwSezUD5Qy7btfJYSnjYeOItRWe5c4x/8TH/vnv5MfhIFBX6onUiHAmLTCcOGTHAmlhwGpkEurWB80tpWHiuQIRNyFEJfC6fCY5Ii2USSVQe+cY+Dpzwp7pEKcEJWPeSt4j6PnzDs5XBj0FRguhXZmnfO9pDfJkYCLAXrVSYftcpPwfNryy612Aq4NyZEItDZ9Ja3fv8IHi/oZyvG7BRiiMBDkPTDgLKjk1URmVVs8Cg8DNOjVwUAdDbJ4uGnGvjGRrjhOH4OokGQveDh0UDigDGcBaqdUPD0+OS3lU5Uk+7/UD/45yt4/dGX3JEt9FlCw2VaHjdxO89G99z+6tY8jd3xTcseDsXs/+JClPmRbnVap3bkttuvVo/aKAHpd/nb69ax+duFm2bhRdO9vH90OO2p12KA7bhYvPrHHi89fRu749rhVvym6nUbp4pM8ateudKt2JVvVQoHkyOKsksr3H4sN6cJpcaaklj2TqT8JCDnTmWK5lDmzmgvUOlNDYRQEy2LNEHxcKNpktiDi+ch2A84KuliAEMZSwKMuMBk6IXocnFkyOk1Gi+USnSajaTJak4FU9HTUOC+XTwpRwkBSdS7FbOJIhTTcz1W31qgvr6XqEHgA3QBJxSiLv8FAKt+XSfqPC2waDAvpOiO5Nc891EzxKMm+LoYbDNc+jNJWKlOCV4c9WBCGm6e1AQpDaZByb22EgRGFcONojDQQ0IAL3BqpgA3ivSXdoDjqtbFWcEMjxRmSHGEyjEDE42BWKRQsvvQw4ENUTxQ8T6GOpbjWFqkHJu6UvFFcxvjJcsWosGE3KVxaAaYQDHoUzLwt5nL5jkZg+vOmpGzptY28uYA2YGycdVKaWVVWj3+IwpOK3MVaD5Yr9C5BQYgGVbzG7n7mngncORcgGGZAeJl2hFNg94LcZQCmJ1W4Ar00LaXznAdkbb40dmdtzzilC2drzHQ5vQo2d+Jt1pQixwULrOZDpLJHDYxeguTz8JuhthtFLppry9N3fzEkLhodq1H9YEHhBgrcaqf5tXEov9nGyMIkrw7AEeuD8JGqyTzuYFnJ2ZNau2E9v2MMYbS5dAfw0IWjfYSKS28d579O9iqoxVBylmRez3eIoUxW+FN8zKYGVfgejbitgAWYObeaS5GpBdJ6mcbV5X52lIk4nYjTRJw2ri5pnl5v22IObbRbN5HXdup9pzb9G75vEdDdUPxiORucSTnQmbaIh7ofCOey+Ymx05vecfns5OjVGPyL0Tq8O28C5gAflJvs7q+3TYG6Bh8zTWGAMbMflmJFmiqmHkaHQ+7qE3hLXvb3QPzG/xmlfvje4N/NN7+hkvvBO1ZKTfL9mOPr+tv6Cj4l2Z8A9Qd/hKZg7ePH0F6pufv5PwDWzQZVGwAA" /></Footer>{/* END_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: expand
        in: query
        description: Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/PurchaseOrdersIdGetParametersExpandSchemaItems'
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_remote_fields
        in: query
        description: Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: remote_fields
        in: query
        description: Deprecated. Use show_enum_origins.
        required: false
        schema:
          $ref: '#/components/schemas/PurchaseOrdersIdGetParametersRemoteFields'
      - name: show_enum_origins
        in: query
        description: A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
        required: false
        schema:
          $ref: '#/components/schemas/PurchaseOrdersIdGetParametersShowEnumOrigins'
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchaseOrder'
  /accounting/v1/purchase-orders/line-items/remote-field-classes:
    get:
      operationId: line-items-remote-field-classes-list
      summary: Line Items Remote Field Classes List
      description: Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+2YbW/aOhTHvwrySwRkLYOqSFdXFOhGdQldS6dVU2UdnENwSezUD5Qy7btfJYSnjYeOItRWe5c4x/8TH/vnv5MfhIFBX6onUiHAmLTCcOGTHAmlhwGpkEurWB80tpWHiuQIRNyFEJfC6fCY5Ii2USSVQe+cY+Dpzwp7pEKcEJWPeSt4j6PnzDs5XBj0FRguhXZm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x05vecfns5OjVGPyL0Tq8O28C5gAflJvs7q+3TYG6Bh8zTWGAMbMflmJFmiqmHkaHQ+7qE3hLXvb3QPzG/xmlfvje4N/NN7+hkvvBO1ZKTfL9mOPr+tv6Cj4l2Z8A9Qd/hKZg7ePH0F6pufv5PwDWzQZVGwAA" /></Footer>{/* END_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: is_common_model_field
        in: query
        description: If provided, will only return remote field classes with this is_common_model_field value
        required: false
        schema:
          type: boolean
      - name: is_custom
        in: query
        description: If provided, will only return remote fields classes with this is_custom value
        required: false
        schema:
          type: boolean
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRemoteFieldClassList'
  /accounting/v1/purchase-orders/meta/post:
    get:
      operationId: meta-post-retrieve
      summary: Meta Post Retrieve
      description: Returns metadata for `PurchaseOrder` POSTs.{/* BEGIN_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H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HhBgrcaqf5tXEov9nGyMIkrw7AEeuD8JGqyTzuYFnJ2ZNau2E9v2MMYbS5dAfw0IWjfYSKS28d579O9iqoxVBylmRez3eIoUxW+FN8zKYGVfgejbitgAWYObeaS5GpBdJ6mcbV5X52lIk4nYjTRJw2ri5pnl5v22IObbRbN5HXdup9pzb9G75vEdDdUPxiORucSTnQmbaIh7ofCOey+Ymx05vecfns5OjVGPyL0Tq8O28C5gAflJvs7q+3TYG6Bh8zTWGAMbMflmJFmiqmHkaHQ+7qE3hLXvb3QPzG/xmlfvje4N/NN7+hkvvBO1ZKTfL9mOPr+tv6Cj4l2Z8A9Qd/hKZg7ePH0F6pufv5PwDWzQZVGwAA" /></Footer>{/* END_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaResponse'
  /accounting/v1/purchase-orders/remote-field-classes:
    get:
      operationId: remote-field-classes-list
      summary: Remote Field Classes List
      description: Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType="GET" data="H4sIAAAAAAAAA+2YbW/aOhTHvwrySwRkLYOqSFdXFOhGdQldS6dVU2UdnENwSezUD5Qy7btfJYSnjYeOItRWe5c4x/8TH/vnv5MfhIFBX6onUiHAmLTCcOGTHAmlhwGpkEurWB80tpWHiuQIRNyFEJfC6fCY5Ii2USSVQe+cY+Dpzwp7pEKcEJWPeSt4j6PnzDs5XBj0FRguhXZmnfO9pDfJkYCLAXrVSYftcpPwfNryy612Aq4NyZEItDZ9Ja3fv8IHi/oZyvG7BRiiMBDkPTDgLKjk1URmVV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xmlfvje4N/NN7+hkvvBO1ZKTfL9mOPr+tv6Cj4l2Z8A9Qd/hKZg7ePH0F6pufv5PwDWzQZVGwAA" /></Footer>{/* END_ACCOUNTING_PURCHASEORDER_FETCH_SUPPORTED_FIELDS */}
      tags:
      - subpackage_purchaseOrders
      parameters:
      - name: cursor
        in: query
        description: The pagination cursor value.
        required: false
        schema:
          type: string
      - name: include_deleted_data
        in: query
        description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        required: false
        schema:
          type: boolean
      - name: include_remote_data
        in: query
        description: Whether to include the original data Merge fetched from the third-party to produce these models.
        required: false
        schema:
          type: boolean
      - name: include_shell_data
        in: query
        description: Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
        required: false
        schema:
          type: boolean
      - name: is_common_model_field
        in: query
        description: If provided, will only return remote field classes with this is_common_model_field value
        required: false
        schema:
          type: boolean
      - name: is_custom
        in: query
        description: If provided, will only return remote fields classes with this is_custom value
        required: false
        schema:
          type: boolean
      - name: page_size
        in: query
        description: Number of results to return per page. The maximum limit is 100.
        required: false
        schema:
          type: integer
      - name: Authorization
        in: header
        description: Token-based authentication with required prefix "Bearer"
        required: true
        schema:
          type: string
      - name: X-Account-Token
        in: header
        description: Token identifying the end user.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRemoteFieldClassList'
components:
  schemas:
    PurchaseOrderEndpointRequest:
      type: object
      properties:
        model:
          $ref: '#/components/schemas/PurchaseOrderRequest'
      required:
      - model
      title: PurchaseOrderEndpointRequest
    PurchaseOrderResponse:
      type: object
      properties:
        model:
          $ref: '#/components/schemas/PurchaseOrder'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/WarningValidationProblem'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorValidationProblem'
        logs:
          type: array
          items:
            $ref: '#/components/schemas/DebugModeLog'
      required:
      - model
      - warnings
      - errors
      title: PurchaseOrderResponse
    ErrorValidationProblem:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/ValidationProblemSource'
        title:
          type: string
        detail:
          type: string
        problem_type:
          type: string
        block_merge_link:
          type: boolean
        raw_error:
          type: string
        error_code:
          type: integer
      required:
      - title
      - detail
      - problem_type
      title: ErrorValidationProblem
    RemoteFieldRequest:
      type: object
      properties:
        remote_field_class:
          type: string
          format: uuid
        value:
          type: object
          additionalProperties:
            description: Any type
      required:
      - remote_field_class
      title: RemoteFieldRequest
    ItemTypeEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemTypeEnum
    ItemFormatEnum:
      type: string
      enum:
      - string
      - number
      - date
      - datetime
      - bool
      - list
      title: ItemFormatEnum
    PurchaseOrdersIdGetParametersShowEnumOrigins:
      type: string
      enum:
      - status
      title: PurchaseOrdersIdGetParametersShowEnumOrigins
    PurchaseOrdersGetParametersRemoteFields:
      type: string
      enum:
      - status
      title: PurchaseOrdersGetParametersRemoteFields
    PaginatedPurchaseOrderList:
      type: object
      properties:
        next:
          type:
          - string
          - 'null'
        previous:
          type:
          - string
          - 'null'
        results:
          type: array
          items:
            $ref: '#/components/schemas/PurchaseOrder'
      title: PaginatedPurchaseOrderList
    PurchaseOrderLineItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
          - string
          - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        description:
          type:
          - string
          - 'null'
          description: A description of the good being purchased.
        unit_price:
          type:
          - number
          - 'null'
          format: double
          description: The line item's unit price.
        quantity:
          type:
          - number
          - 'null'
          format: double
          description: The line item's quantity.
        item:
          type:
          - string
          - 'null'
          format: uuid
        account:
          type:
          - string
          - 'null'
          format: uuid
          description: The purchase order line item's account.
        tracking_category:
          type:
          - string
          - 'null'
          format: uuid
          description: The purchase order line item's associated tracking category.
        tracking_categories:
          type: array
          items:
            type: string
            format: uuid
          description: The purchase order line item's associated tracking categories.
        tax_amount:
          type:
          - string
          - 'null'
          format: decimal
          description: The purchase order line item's tax amount.
        total_line_amount:
          type:
          - string
          - 'null'
          format: decimal
          description: The purchase order line item's total amount.
        currency:
          oneOf:
          - $ref: '#/components/schemas/TransactionCurrencyEnum'
          - type: 'null'
          description: The purchase order line item's currency. The currency code in ISO 4217 format.
        tax_rate:
          type:
          - string
          - 'null'
          format: uuid
          description: The tax rate that applies to this line item.
        exchange_rate:
          type:
          - string
          - 'null'
          format: decimal
          description: The purchase order line item's exchange rate.
        company:
          type:
          - string
          - 'null'
          format: uuid
          description: The company the purchase order line item belongs to.
        remote_was_deleted:
          type: boolean
          description: Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
        remote_fields:
          type: array
          items:
            $ref: '#/components/schemas/RemoteField'
      description: '# The PurchaseOrderLineItem Object

        ### Description

        The `PurchaseOrderLineItem` object is used to represent a purchase order''s line item.


        ### Usage Example

        Fetch from the `GET PurchaseOrder` endpoint and view a company''s purchase orders.'
      title: PurchaseOrderLineItem
    WarningValidationProblem:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/ValidationProblemSource'
        title:
          type: string
        detail:
          type: string
        problem_type:
          type: string
        block_merge_link:
          type: boolean
        raw_error:
          type: string
        error_code:
          type: integer
      required:
      - title
      - detail
      - problem_type
      title: WarningValidationProblem
    PurchaseOrdersGetParametersExpandSchemaItems:
      type: string
      enum:
      - accounting_period
      - company
      - delivery_address
      - line_items
      - payment_term
      - tracking_categories
      - vendor
      title: PurchaseOrdersGetParametersExpandSchemaItems
    PurchaseOrderLineItemRequest:
      type: object
      properties:
        remote_id:
          type:
          - string
          - 'null'
          description: The third-party API ID of the matching object.
        description:
          type:
          - string
          - 'null'
          description: A description of the good being purchased.
        unit_price:
          type:
          - number
          - 'null'
          format: double
          description: The line item's unit price.
        quantity:
          type:
          - number
          - 'null'
          format: double
          description: The line item's quantity.
        item:
          type:
          - string
          - 'null'
          format: uuid
        account:
          type:
          - string
          - 'null'
          format: uuid
          description: The purchase order line item's account.
        tracking_category:
          type:
          - string
          - 'null'
          format: uuid
          description: The purchase order line item's associated tracking category.
        tracking_categories:
          type: array
          items:
            type: string
 

# --- truncated at 32 KB (51 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/openapi/merge-subpackage-purchaseorders-api-openapi.yml