bwood@appriss.com

Issue Creating Purchase Orders Using API - Buyer and Vendor Fields

Discussion created by bwood@appriss.com on Jun 21, 2016
Latest reply on Jun 24, 2016 by bwood@appriss.com
Is any one having issues with creating Purchase Orders? I tried with XML and JSON, but get the same result using the API documentation as a template:

Request:
$ curl --digest -X POST --data @purchase.xml -u <user>:<pass>  -H "Accept: application/xml" -H "Content-Type:text/xml" https://api.samanage.com/purchase_orders.xml 

Response:
"Content-Type:text/xml" https://api.samanage.com/purchase_orders.xml<?xml version="1.0" encoding="UTF-8"?>
<errors>
  <error>Buyer can't be blank</error>
  <error>Vendor can't be blank</error>
</errors>

@purchase.xml:
<purchase_order> <name>test po</name>
 <requester><email>bwood@####.com</email></requester>
 <buyer><email>bwood@####appriss.com</email></buyer>
 <vendor>Microsoft</vendor>
</purchase_order>

I also tried a copy/paste of the example and still get the same result. 

Outcomes