Adding, issuing and receiving a purchase using the API
S
Spire A Developer
started a topic
about 3 years ago
Please review other topics for information about accessing urls, collections and endpoints. This topic assumes the user has a functional understanding of these concepts and these concepts are described in detail in other forum topics. This example assumes a vendor BESTBUY exists, and items WIDGET and GADGET are present.
The following example will perform the following tasks;
Spire A Developer
Please review other topics for information about accessing urls, collections and endpoints. This topic assumes the user has a functional understanding of these concepts and these concepts are described in detail in other forum topics. This example assumes a vendor BESTBUY exists, and items WIDGET and GADGET are present.
The following example will perform the following tasks;
1 - Add a purchase order
2 - Issue the purchase order
3 - Receive quantities against the purchase order
4 - Perform the receive process
Add a purchase order
Perform a POST action to the following endpoint;
Issue the purchase order
To issue the purchase order just created, perform POST with an empty JSON body to;
Note that 1 is the ID of the purchase order we are issuing.
Apply quantities to the issues purchase order
To apply quantities to the purchase order, perform a PUT to the following endpoint;
Using the following JSON, which receives 2 WIDGET and 3 GADGET quantities.
Receive the purchase receipt items
To recognize the receipt of the items, perform a POST with an empty JSON payload to the following endpoint;
1 person likes this idea