Request

POST http:///api/v1/partner/purchaseorders/prepare

Request body

The request body takes a complete PartnerPurchaseOrderAddRequest resource, containing the following writable properties:

{
    "adjustmentInfoList": [
        {
            "adjustmentId": "string",
            "amount": "number",
            "negative": "boolean"
        }
    ],
    "currentEmployeeId": "string",
    "customTermDate": "int64",
    "customerType": "string",
    "deliveryAddress": "string",
    "deliveryDate": "int64",
    "deliveryTime": "int64",
    "discount": "number",
    "fees": "number",
    "flowerSourceType": "string",
    "inventoryId": "string",
    "licenseId": "string",
    "notes": "string",
    "paymentType": "string",
    "poPaymentTerms": "string",
    "poProductAddRequestList": [
        {
            "discount": "number",
            "finalTotalCost": "number",
            "notes": "string",
            "productId": "string",
            "requestQuantity": "number",
            "totalCost": "number"
        }
    ],
    "purchaseOrderDate": "int64",
    "reference": "string",
    "termsAndCondition": "string",
    "transactionType": "string",
    "vendorId": "string"
}

Properties

Name Type Description Additional
adjustmentInfoList[] array Optional
adjustmentInfoList[].adjustmentId string Optional
adjustmentInfoList[].amount number Optional
adjustmentInfoList[].negative boolean Optional
currentEmployeeId string Optional
customTermDate int64 Optional
customerType string

Possible values are:

  • VENDOR
  • CUSTOMER_COMPANY
Optional
deliveryAddress string Optional
deliveryDate int64 Optional
deliveryTime int64 Optional
discount number Optional
fees number Optional
flowerSourceType string

Possible values are:

  • CULTIVATOR_DIRECT
  • DISTRIBUTOR
Optional
inventoryId string Optional
licenseId string Optional
notes string Optional
paymentType string Optional
poPaymentTerms string Optional
poProductAddRequestList[] array Optional
poProductAddRequestList[].discount number Optional
poProductAddRequestList[].finalTotalCost number Optional
poProductAddRequestList[].notes string Optional
poProductAddRequestList[].productId string Optional
poProductAddRequestList[].requestQuantity number Optional
poProductAddRequestList[].totalCost number Optional
purchaseOrderDate int64 Optional
reference string Optional
termsAndCondition string Optional
transactionType string

Possible values are:

  • ARMS_LENGTH
  • NON_ARMS_LENGTH
Optional
vendorId string Optional

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

successful operation

PurchaseOrder

Explore this API

body
Request Content-Type
Response Content-Type
Try it out!