Retrieving a POS for addition-editing
This endpoint is deprecated.
POST
/api/RPC.common.Api.So.getDataForEdit?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Sales Order ID |
numrequired | String | Sales Order ID |
Request example
Get Data For Edit By Num:
{
"data" : [
{
"num" : "CO10003101"
}
]
}
Get Data For Edit By Id:
{
"data" : [
{
"id" : 3293188
}
]
}cURL
Get Data For Edit By Num:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "num" : "CO10003101" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.getDataForEdit?token=<TOKEN>"
Get Data For Edit By Id:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "id" : 3293188 } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.So.getDataForEdit?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : {
"data" : [
{
"tax_deal_code" : 1,
"pay_type" : "cash",
"store_type" : "wait",
"pos_code" : "13BG",
"for_date" : "2021-09-05",
"sale_type_code" : 1234567,
"partner" : {
"is_client" : 1,
"client_type" : "client_real",
"dds_num" : "BG202724488",
"phone" : "+35929890995",
"is_company" : 1,
"eik" : 202724488,
"name" : "Mansion Technology Center",
"email" : null
},
"currency" : "BGN",
"sale_type" : "Main Sales",
"fin_type" : "invoice",
"id" : 3293188,
"rows" : [
{
"quantity" : "1.00",
"description" : "2.3GHz dual-core 7th-generation Intel Core i5 processor\nTurbo Boost up to 3.6GHz\n8GB 2133MHz memory, configurable to 16GB\n1TB hard drive1\nIntel Iris Plus Graphics 640\nTwo Thunderbolt 3 ports\n1920-by-1080 sRGB display",
"price" : "1835.1000",
"discount" : "0.00",
"sku" : 10005
},
{
"price" : "31.7250",
"quantity" : "1.00",
"description" : "\nConnect your iPhone, iPad or iPod with Lightning connector to your USB-C– or Thunderbolt 3 (USB-C)–enabled Mac for syncing and charging.",
"discount" : "0.00",
"sku" : 10016
},
{
"sku" : 10015,
"discount" : "0.00",
"price" : "15.0250",
"quantity" : "1.00",
"description" : "5.8-inch display, Silver, 255GB"
},
{
"price" : "31.7250",
"description" : "The 1.8-metre Power Adapter Extension Cable is an AC extension lead that provides extra length for your Apple power adapter.",
"quantity" : "1.00",
"discount" : "0.00",
"sku" : 10026
},
{
"quantity" : "1.00",
"description" : "3.0GHz 8-Core Intel Xeon E5 processor\n16GB 1866MHz DDR3 ECC memory\nDual AMD FirePro D700 with 6GB GDDR5 VRAM each\n256GB PCIe-based SSD1",
"price" : "6677.4920",
"discount" : "0.00",
"sku" : 10009
},
{
"sku" : 10021,
"discount" : "0.00",
"price" : "65.1250",
"description" : "\nMade from specially tanned and finished European leather, these Apple-designed cases look and feel luxurious.",
"quantity" : "1.00"
},
{
"discount" : "0.00",
"sku" : 10003,
"description" : "2.3GHz dual-core 7th-generation Intel Core i5 processor\nTurbo Boost up to 3.6GHz\nIntel Iris Plus Graphics 640\n8GB 2133MHz LPDDR3 memory\n128GB SSD storage1\nRetina display\nTwo Thunderbolt 3 ports",
"quantity" : "1.00",
"price" : "2169.0580"
},
{
"discount" : "0.00",
"sku" : 10002,
"quantity" : "1.00",
"description" : "\n13.3-inch (diagonal) LED-backlit widescreen display\n1.8GHz dual-core Intel Core i5 or 2.2GHz dual-core Intel Core i7 processor\nTurbo Boost up to 3.2GHz\n",
"price" : "1584.6330"
}
],
"num" : "CO10003101"
}
]
}
}