ECI Solutions ERP/PURCHASEORDERS API

The ERP/PURCHASEORDERS API from ECI Solutions — 32 operation(s) for erp/purchaseorders.

Operations 64

GET /api/ERP/PurchaseOrderAccounts Returns all existing PurchaseOrderAccounts according to the filter, order by… #
PUT /api/ERP/PurchaseOrderAccounts Creates or updates a single PurchaseOrderAccount record #
GET /api/ERP/PurchaseOrderAccounts/{key} Returns a single PurchaseOrderAccount record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderAccounts/{key} Deletes a single PurchaseOrderAccount record #
GET /api/ERP/PurchaseOrderApprovals Returns all existing PurchaseOrderApprovals according to the filter, order by… #
PUT /api/ERP/PurchaseOrderApprovals Creates or updates a single PurchaseOrderApproval record #
GET /api/ERP/PurchaseOrderApprovals/{key} Returns a single PurchaseOrderApproval record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderApprovals/{key} Deletes a single PurchaseOrderApproval record #
GET /api/ERP/PurchaseOrderComponents Returns all existing PurchaseOrderComponents according to the filter, order by… #
PUT /api/ERP/PurchaseOrderComponents Creates or updates a single PurchaseOrderComponent record #
GET /api/ERP/PurchaseOrderComponents/{key} Returns a single PurchaseOrderComponent record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderComponents/{key} Deletes a single PurchaseOrderComponent record #
GET /api/ERP/PurchaseOrderDeliveries Returns all existing PurchaseOrderDeliveries according to the filter, order by… #
PUT /api/ERP/PurchaseOrderDeliveries Creates or updates a single PurchaseOrderDelivery record #
GET /api/ERP/PurchaseOrderDeliveries/{key} Returns a single PurchaseOrderDelivery record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderDeliveries/{key} Deletes a single PurchaseOrderDelivery record #
GET /api/ERP/PurchaseOrderLines Returns all existing PurchaseOrderLines according to the filter, order by and… #
PUT /api/ERP/PurchaseOrderLines Creates or updates a single PurchaseOrderLine record #
GET /api/ERP/PurchaseOrderLines/{key} Returns a single PurchaseOrderLine record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderLines/{key} Deletes a single PurchaseOrderLine record #
GET /api/ERP/PurchaseOrderMemos Returns all existing PurchaseOrderMemos according to the filter, order by and… #
PUT /api/ERP/PurchaseOrderMemos Creates or updates a single PurchaseOrderMemo record #
GET /api/ERP/PurchaseOrderMemos/{key} Returns a single PurchaseOrderMemo record for a given Unique Id #
DELETE /api/ERP/PurchaseOrderMemos/{key} Deletes a single PurchaseOrderMemo record #
GET /api/ERP/PurchaseOrders Returns all existing PurchaseOrders according to the filter, order by and… #
PUT /api/ERP/PurchaseOrders Creates or updates a single PurchaseOrder record #
GET /api/ERP/PurchaseOrders/{key} Returns a single PurchaseOrder record for a given Unique Id #
DELETE /api/ERP/PurchaseOrders/{key} Deletes a single PurchaseOrder record #
GET /api/ERP/PurchasePlannerLines Returns all existing PurchasePlannerLines according to the filter, order by and… #
PUT /api/ERP/PurchasePlannerLines Creates or updates a single PurchasePlannerLine record #
GET /api/ERP/PurchasePlannerLines/{key} Returns a single PurchasePlannerLine record for a given Unique Id #
DELETE /api/ERP/PurchasePlannerLines/{key} Deletes a single PurchasePlannerLine record #
GET /api/ERP/PurchasePlannerOrderDetails Returns all existing PurchasePlannerOrderDetails according to the filter, order… #
PUT /api/ERP/PurchasePlannerOrderDetails Creates or updates a single PurchasePlannerOrderDetail record #
GET /api/ERP/PurchasePlannerOrderDetails/{key} Returns a single PurchasePlannerOrderDetail record for a given Unique Id #
DELETE /api/ERP/PurchasePlannerOrderDetails/{key} Deletes a single PurchasePlannerOrderDetail record #
GET /api/ERP/PurchasePlannerRequirements Returns all existing PurchasePlannerRequirements according to the filter, order… #
PUT /api/ERP/PurchasePlannerRequirements Creates or updates a single PurchasePlannerRequirement record #
GET /api/ERP/PurchasePlannerRequirements/{key} Returns a single PurchasePlannerRequirement record for a given Unique Id #
DELETE /api/ERP/PurchasePlannerRequirements/{key} Deletes a single PurchasePlannerRequirement record #
GET /api/ERP/PurchasePlannerSessions Returns all existing PurchasePlannerSessions according to the filter, order by… #
PUT /api/ERP/PurchasePlannerSessions Creates or updates a single PurchasePlannerSession record #
GET /api/ERP/PurchasePlannerSessions/{key} Returns a single PurchasePlannerSession record for a given Unique Id #
DELETE /api/ERP/PurchasePlannerSessions/{key} Deletes a single PurchasePlannerSession record #
GET /api/ERP/RFQLines Returns all existing RFQLines according to the filter, order by and pagination… #
PUT /api/ERP/RFQLines Creates or updates a single RFQLine record #
GET /api/ERP/RFQLines/{key} Returns a single RFQLine record for a given Unique Id #
DELETE /api/ERP/RFQLines/{key} Deletes a single RFQLine record #
GET /api/ERP/RFQMemos Returns all existing RFQMemos according to the filter, order by and pagination… #
PUT /api/ERP/RFQMemos Creates or updates a single RFQMemo record #
GET /api/ERP/RFQMemos/{key} Returns a single RFQMemo record for a given Unique Id #
DELETE /api/ERP/RFQMemos/{key} Deletes a single RFQMemo record #
GET /api/ERP/RFQQuantities Returns all existing RFQQuantities according to the filter, order by and… #
PUT /api/ERP/RFQQuantities Creates or updates a single RFQQuantity record #
GET /api/ERP/RFQQuantities/{key} Returns a single RFQQuantity record for a given Unique Id #
DELETE /api/ERP/RFQQuantities/{key} Deletes a single RFQQuantity record #
GET /api/ERP/RFQs Returns all existing RFQs according to the filter, order by and pagination… #
PUT /api/ERP/RFQs Creates or updates a single RFQ record #
GET /api/ERP/RFQs/{key} Returns a single RFQ record for a given Unique Id #
DELETE /api/ERP/RFQs/{key} Deletes a single RFQ record #
GET /api/ERP/RFQSuppliers Returns all existing RFQSuppliers according to the filter, order by and… #
PUT /api/ERP/RFQSuppliers Creates or updates a single RFQSupplier record #
GET /api/ERP/RFQSuppliers/{key} Returns a single RFQSupplier record for a given Unique Id #
DELETE /api/ERP/RFQSuppliers/{key} Deletes a single RFQSupplier record #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/eci-solutions-erp-purchaseorders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

eci-solutions-erp-purchaseorders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: M1 Public ERP/PURCHASEORDERS API
  description: '## Developer Notes for the M1 Public API (ERP resource):


    ### Hosted Environment


    If you are using the public API for a hosted M1 customer, you must connect to the public API using the Integration Engine.'
  contact:
    name: ECI Software Solutions - M1
    url: https://www.ecisolutions.com/manufacturers-and-job-shops/m1
  version: v1
servers:
- url: https://api-m1.integrations.ecimanufacturing.com
  description: API Host
security:
- oauth2: []
tags:
- name: ERP/PURCHASEORDERS
paths:
  /api/ERP/PurchaseOrderAccounts:
    get:
      tags:
      - ERP/PURCHASEORDERS
      summary: Returns all existing PurchaseOrderAccounts according to the filter, order by…
      description: 'When passing the filter parameter, the following operators are supported: [eq, ne, gt, lt]. Multiple filters can be specified as separate query parameters in the format M1Field[operator]value. eg. `impPartID[eq]CLIP`. An invalid filter will return a 400 Bad Request response.


        When passing the orderBy parameter, the following operators are supported: [Asc, Desc]. The format must be M1Field[Asc],M1Field[Desc]. eg. `impPartID[Asc],impPartType[Desc]`. An invalid orderBy will return a 400 Bad Request response.


        Custom fields are returned in the response as their full field name, they are also filterable and sortable. The format should be `M1CustomField[operator]value`. eg. `uimpCustomField1[eq]12`.'
      operationId: ERPPurchaseOrderAccounts_GetAllPurchaseOrderAccountAsync
      parameters:
      - name: pageSize
        in: query
        description: Specifies the number of items per page. Defaults to 1000 which is also the maximum.
        style: form
        explode: false
        schema:
          type: integer
          format: int32
      - name: pageNumber
        in: query
        description: Specifies the page number to retrieve. Defaults to 0, which corresponds to the first page.
        style: form
        explode: false
        schema:
          type: integer
          format: int32
      - name: filter
        in: query
        description: Applies a filter to the returned data. The format should be `M1Field[operator]value`.
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: orderBy
        in: query
        description: Specifies the sorting criteria for the returned data. The format should be `M1Field[Asc],M1Field[Desc]`.
        style: form
        explode: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderAccountDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderAccountDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderAccountDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderAccountDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
    put:
      tags:
      - ERP/PURCHASEORDERS
      summary: Creates or updates a single PurchaseOrderAccount record
      description: 'When a record does not exist, a new record will be created. When a record exists, the record will be updated.


        When updating an existing record, all fields must be provided, even if they are not changing. Upon update, the UniqueID, Created By/Date and M1 Keys (eg. cmoOrganizationID) will not be updated.


        Custom fields should be sent in the request as their full field name and should be prefixed with `u`. eg. `uimpCustomField1`.


        To use this endpoint, you must have an API Key that supports writes.'
      operationId: ERPPurchaseOrderAccounts_PutPurchaseOrderAccountAsync
      requestBody:
        description: The fully populated {M1.API.DTOs.ERP.ERPPurchaseOrderAccountDto} model.
        content:
          text/json:
            schema:
              $ref: '#/components/schemas/ERPPurchaseOrderAccountDto'
          application/json:
            schema:
              $ref: '#/components/schemas/ERPPurchaseOrderAccountDto'
        required: true
        x-bodyName: purchaseOrderAccount
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
        '201':
          description: Created
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
  /api/ERP/PurchaseOrderAccounts/{key}:
    get:
      tags:
      - ERP/PURCHASEORDERS
      summary: Returns a single PurchaseOrderAccount record for a given Unique Id
      description: This endpoint retrieves a PurchaseOrderAccount based on its identifier. If the record does not exist, a 404 Not Found response will be returned.
      operationId: ERPPurchaseOrderAccounts_GetPurchaseOrderAccountAsync
      parameters:
      - name: key
        in: path
        description: The Unique Id of the record to be retrieved
        required: true
        style: simple
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
    delete:
      tags:
      - ERP/PURCHASEORDERS
      summary: Deletes a single PurchaseOrderAccount record
      description: 'If the record is not found, a 404 Not Found response will be returned.


        If the record is successfully deleted, a 200 OK response will be returned.


        If the record is being used anywhere in the M1 system, a 400 Bad Request response will be returned.


        To use this endpoint, you must have an API Key that supports writes.'
      operationId: ERPPurchaseOrderAccounts_DeletePurchaseOrderAccountAsync
      parameters:
      - name: key
        in: path
        description: The Unique Id of the record to be deleted
        required: true
        style: simple
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderAccountDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
  /api/ERP/PurchaseOrderApprovals:
    get:
      tags:
      - ERP/PURCHASEORDERS
      summary: Returns all existing PurchaseOrderApprovals according to the filter, order by…
      description: 'When passing the filter parameter, the following operators are supported: [eq, ne, gt, lt]. Multiple filters can be specified as separate query parameters in the format M1Field[operator]value. eg. `impPartID[eq]CLIP`. An invalid filter will return a 400 Bad Request response.


        When passing the orderBy parameter, the following operators are supported: [Asc, Desc]. The format must be M1Field[Asc],M1Field[Desc]. eg. `impPartID[Asc],impPartType[Desc]`. An invalid orderBy will return a 400 Bad Request response.


        Custom fields are returned in the response as their full field name, they are also filterable and sortable. The format should be `M1CustomField[operator]value`. eg. `uimpCustomField1[eq]12`.'
      operationId: ERPPurchaseOrderApprovals_GetAllPurchaseOrderApprovalAsync
      parameters:
      - name: pageSize
        in: query
        description: Specifies the number of items per page. Defaults to 1000 which is also the maximum.
        style: form
        explode: false
        schema:
          type: integer
          format: int32
      - name: pageNumber
        in: query
        description: Specifies the page number to retrieve. Defaults to 0, which corresponds to the first page.
        style: form
        explode: false
        schema:
          type: integer
          format: int32
      - name: filter
        in: query
        description: Applies a filter to the returned data. The format should be `M1Field[operator]value`.
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: orderBy
        in: query
        description: Specifies the sorting criteria for the returned data. The format should be `M1Field[Asc],M1Field[Desc]`.
        style: form
        explode: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderApprovalDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderApprovalDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderApprovalDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_IList_ERPPurchaseOrderApprovalDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
    put:
      tags:
      - ERP/PURCHASEORDERS
      summary: Creates or updates a single PurchaseOrderApproval record
      description: 'When a record does not exist, a new record will be created. When a record exists, the record will be updated.


        When updating an existing record, all fields must be provided, even if they are not changing. Upon update, the UniqueID, Created By/Date and M1 Keys (eg. cmoOrganizationID) will not be updated.


        Custom fields should be sent in the request as their full field name and should be prefixed with `u`. eg. `uimpCustomField1`.


        To use this endpoint, you must have an API Key that supports writes.'
      operationId: ERPPurchaseOrderApprovals_PutPurchaseOrderApprovalAsync
      requestBody:
        description: The fully populated {M1.API.DTOs.ERP.ERPPurchaseOrderApprovalDto} model.
        content:
          text/json:
            schema:
              $ref: '#/components/schemas/ERPPurchaseOrderApprovalDto'
          application/json:
            schema:
              $ref: '#/components/schemas/ERPPurchaseOrderApprovalDto'
        required: true
        x-bodyName: purchaseOrderApproval
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
        '201':
          description: Created
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
  /api/ERP/PurchaseOrderApprovals/{key}:
    get:
      tags:
      - ERP/PURCHASEORDERS
      summary: Returns a single PurchaseOrderApproval record for a given Unique Id
      description: This endpoint retrieves a PurchaseOrderApproval based on its identifier. If the record does not exist, a 404 Not Found response will be returned.
      operationId: ERPPurchaseOrderApprovals_GetPurchaseOrderApprovalAsync
      parameters:
      - name: key
        in: path
        description: The Unique Id of the record to be retrieved
        required: true
        style: simple
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
          content:
            text/json:
              schema:
                type: string
            application/json:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            text/xml:
              schema:
                type: string
        '500':
          description: InternalServerError
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
    delete:
      tags:
      - ERP/PURCHASEORDERS
      summary: Deletes a single PurchaseOrderApproval record
      description: 'If the record is not found, a 404 Not Found response will be returned.


        If the record is successfully deleted, a 200 OK response will be returned.


        If the record is being used anywhere in the M1 system, a 400 Bad Request response will be returned.


        To use this endpoint, you must have an API Key that supports writes.'
      operationId: ERPPurchaseOrderApprovals_DeletePurchaseOrderApprovalAsync
      parameters:
      - name: key
        in: path
        description: The Unique Id of the record to be deleted
        required: true
        style: simple
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/json:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/ERPResponseMessageDto_ERPPurchaseOrderApprovalDto'
        '400':
          description: BadRequest
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '401':
          description: Unauthorized
          content:
            text/json: {}
            application/json: {}
            application/xml: {}
            text/xml: {}
        '404':
          description: NotFound
          content:
            text/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            application/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
            text/xml:
              schema:
                $ref: '#/components/schemas/APIResponseMessageDto'
        '415':
          description: UnsupportedMediaType
  

# --- truncated at 32 KB (298 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/eci-solutions/refs/heads/main/openapi/eci-solutions-erp-purchaseorders-api-openapi.yml