Skip to main content
Question

how to connect purchase order to sales order in API

  • May 15, 2024
  • 0 replies
  • 74 views

Hello

I’m trying to submit special orders from API, once submitted special orders they should gone from Create Purchase Orders page screen ID PO505000, i’m creating purchase order with this json code:

{"entity": {
"VendorID": {
"value": "V11110"
},
"Location": {
"value": "04"
},
"Type": {
"value": "Normal"
},
"OrderNbr": {
"value": "<NEW>"
},
"VendorRef": {
"value": "PO0000012"
},
"Description": {
"value": "Test"
},
"Owner": {
"value": "ART"
},
"Details": [

"InventoryID": {"value":"SD43RXWEPS-XL"},
"OrderQty": {"value": 2},
"UnitCost": {"value": "20" },
"POLineNbr": {"value": 1},
"POOrderNbr": {"value": "OrderNbr-000001"},
"ReceiptQty": {"value": 2},

},
{
"InventoryID": {"value":"SD43RWWEQS-2XL"},
"OrderQty": {"value": 3},
"UnitCost": {"value": "20" },
"POLineNbr": {"value": 2},
"POOrderNbr": {"value": "OrderNbr-000002"},
"ReceiptQty": {"value": 2},

},

]

},
}

what parameter should i add to my json code in order to talk with sales order, right now in the Purchase orders when i’m clicking on an OrderNbr the Sales Order Detail tap is empty!

Note: I’m new with acumatica

Thank you for your help