Skip to content

Create POs

Request

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
Body
Array [
senderIdstring or null

Gets the sender identifier.

senderNamestring or null

Gets the sender name.

recipientIdstring or null

Gets the recipient identifier.

recipientNamestring or null

Gets the recipient name.

ponumberstring, [ 0 .. 50 ] charactersrequired

Gets the purchase-order number.

centerIdstring or null, (uuid)

Gets the optional center to map the purchase order to, so it appears in center-filtered lists.

documentStatusstring or null

Gets the document status.

podatetimestring or null, (date-time)

Gets the purchase-order date and time.

edddatetimestring or null, (date-time)

Gets the expected delivery date and time.

buyerstring or null

Gets the buyer name.

supplierstring or null

Gets the supplier name.

deliveryLocationstring or null

Gets the delivery location.

poItemsArray of objects, non-empty(PurchaseOrderItemRequest)required

Gets the purchase-order line items.

<property name>anyadditional property
]
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
    }
  ]'

Responses

OK

Body
Array [
senderIdstring or null

Gets the sender identifier.

senderNamestring or null

Gets the sender name.

recipientIdstring or null

Gets the recipient identifier.

recipientNamestring or null

Gets the recipient name.

ponumberstring or null

Gets the purchase-order number.

documentStatusstring or null

Gets the document status.

podatetimestring or null, (date-time)

Gets the purchase-order date and time.

edddatetimestring or null, (date-time)

Gets the expected delivery date and time.

deliveryLocationstring or null

Gets the delivery location.

poItemsArray of objects or null(PurchaseOrderItemResponse)

Gets the purchase-order line items.

<property name>anyadditional property
]
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
  }
]