Create EDI File

POST /api/.../purchaseorders/{id}/edifile?ignorefile=true

Creates an EDI file based on the supplied purchase order ID. This file will be stored in the EDI folder and can be used to send a purchase order to a 3rd party vendor using FTP. Purchase Order send overview see here

Request Information

Parameters
Name Type Required Description
id Integer Yes The unique id assigned to the Purchase Order.
ignorefile Boolean No Defaults to false. If true, ignore existing EDI file.

Response Information

EDI file information with file id and creation date is returned upon success.

Example
application/json, text/json
   {
      "FileID": "121721093837_xpo",
      "CreationDate": "2021-12-17T09:38:37.1856067-05:00"
    }

HTTP Response Codes

Code Description
200 OK. Success
400 FAILURE.
  • Bad request
  • Invalid purchase order ID
403 Permission(s) not granted OR EDI is not licensed

Required Permissions

Permission IDs found here.

    CR_AccessAcquisitions_Allow
    CR_PurchaseOrders_Access
    CR_PurchaseOrders_SendElectronicPurchaseOrders