Create Order

This endpoint is deprecated.
POST/api/RPC.common.Api.Po.set?token=<TOKEN>

Key Po.set · API version 2.0.0

Parameters

32 body parameters inside data[]
FieldTypeDescription
idIntegerOrder ID
for_dateStringPurchase Order date
numStringPurchase order #
currencyStringCurrency code
traderStringMerchant
office_namerequiredStringOffice Name Recipient
tax_deal_coderequiredStringTax template
fin_typerequiredStringFinancial document type
pay_typerequiredStringPayment method
descriptionStringDescription
partnerrequiredObjectPartner object.
partner.idStringCustomer ID
partner.is_companyBooleanCustomer is a company
partner.vendor_typeStringSupplier type
partner.nameStringName
partner.eikStringUIC
partner.egnStringID
partner.dds_numStringVAT Number
partner.emailStringE-mail
partner.phoneStringPhone
rowsrequiredObjectRows object.
rows.skurequiredStringItem SKU
rows.skurequiredStringService ID
rows.quantityrequiredStringQuantity
rows.measure_codeStringUnit of measurement ID
rows.pricerequiredStringUnit price
rows.descriptionStringDescription
next_operrequiredObjectNext_oper object.
next_oper.next_operBooleanCreate next operation
next_oper.next_oper_typeStringOperation type
next_oper.next_oper_dateStringDate of next operation
next_oper.next_oper_store_coderequiredStringTo be stored in the warehouse

Request example

Create Po Simple:
{
   "data" : [
      {
         "fin_type" : "expense_invoice",
         "rows" : [
            {
               "quantity" : 2,
               "price" : "16.00",
               "sku" : "01001"
            },
            {
               "sku" : 10276,
               "price" : "79.00",
               "quantity" : 2
            },
            {
               "price" : "63.00",
               "quantity" : 2,
               "sku" : 10183
            },
            {
               "sku" : 793975,
               "quantity" : 3,
               "price" : "72.00"
            },
            {
               "quantity" : 5,
               "price" : "82.00",
               "sku" : 10250
            },
            {
               "sku" : 10319,
               "quantity" : 3,
               "price" : "17.00"
            }
         ],
         "office_name" : "WholeSales",
         "tax_deal_code" : 1,
         "partner" : {
            "is_company" : 1,
            "eik" : 148106441,
            "name" : "Inditex"
         },
         "pay_type" : "015"
      }
   ]
}

cURL

Create Po Simple:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{   "data" : [      {         "fin_type" : "expense_invoice",         "rows" : [            {               "quantity" : 2,               "price" : "16.00",               "sku" : "01001"            },            {               "sku" : 10276,               "price" : "79.00",               "quantity" : 2            },            {               "price" : "63.00",               "quantity" : 2,               "sku" : 10183            },            {               "sku" : 793975,               "quantity" : 3,               "price" : "72.00"            },            {               "quantity" : 5,               "price" : "82.00",               "sku" : 10250            },            {               "sku" : 10319,               "quantity" : 3,               "price" : "17.00"            }         ],         "office_name" : "WholeSales",         "tax_deal_code" : 1,         "partner" : {            "is_company" : 1,            "eik" : 148106441,            "name" : "Inditex"         },         "pay_type" : "015"      }   ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Po.set?token=<TOKEN>"

Response example