Creates new POs with the provided details. Pass centerId on a PO to map it to a center (a transaction id is generated), so it appears in center-filtered lists.
Security
Bearer
Array []
Gets the optional center to map the purchase order to, so it appears in center-filtered lists.
Gets the purchase-order line items.
- Mock serverhttps://developer.sustainabilitymaster.ai/_mock/openapi/api/DueDiligence/Po
- https://developer.sustainabilitymaster.ai/apiportalhttps://developer.sustainabilitymaster.ai/apiportal/api/DueDiligence/Po
curl -i -X POST \
https://developer.sustainabilitymaster.ai/_mock/openapi/api/DueDiligence/Po \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '[
{
"senderId": "string",
"senderName": "string",
"recipientId": "string",
"recipientName": "string",
"ponumber": "string",
"centerId": "282cb687-20cd-4f37-9b5b-b30c06eb5b1b",
"documentStatus": "string",
"podatetime": "2019-08-24T14:15:22Z",
"edddatetime": "2019-08-24T14:15:22Z",
"buyer": "string",
"supplier": "string",
"deliveryLocation": "string",
"poItems": [
{
"ponumber": "string",
"itemHsncode": "string",
"itemGtincode": "string",
"quantity": 0.1,
"polineNo": "string",
"itemDesc": "string",
"unit": "string",
"skuid": "string",
"property1": null,
"property2": null
}
],
"property1": null,
"property2": null
}
]'OK
Array [
]
Response
[
{
"senderId": "string",
"senderName": "string",
"recipientId": "string",
"recipientName": "string",
"ponumber": "string",
"documentStatus": "string",
"podatetime": "2019-08-24T14:15:22Z",
"edddatetime": "2019-08-24T14:15:22Z",
"deliveryLocation": "string",
"poItems": [
{
"ponumber": "string",
"itemHsncode": "string",
"itemGtincode": "string",
"quantity": 0.1,
"polineNo": "string",
"itemDesc": "string",
"unit": "string",
"tranId": "string",
"skuid": "string",
"id": 0,
"property1": null,
"property2": null
}
],
"property1": null,
"property2": null
}
]