Edit a product for a Purchase Order
When editing a Purchase Order product, on update the Purchase Order will automatically be re-totalled.
URL Query Parameters
-
name - The new name of the product
-
warranty - The warranty in days
-
price - price in the format 0.00 to 2 decimal places
-
qty - The quantity
-
tax - The tax rate for this product
-
dispatched - True or false boolean, ie 1 or 0
Call
PUT /rest/purchase/{id}/product/{product_id}.json
Edit a Purchase Order's status
Editing a purchase Order status requires the Purchase Order id and the new Purchase Order status id passing to the url call below.
Call
PUT /rest/purchase/{id}/status/{status_id}.json
Edit a Purchase Order's billing address
URL Query Parameters
-
name - The Name of the company who the Purchase Order is being made out to
-
company - The company
-
address_line_1 - House number and street
-
address_line_2 - Optional such as suburb
-
city - City
-
postcode - The postcode / zipcode
-
country - The county or state
-
country - The country
Call
PUT /rest/purchase/{id}/billingaddress.json
Edit an Purchase's delivery address
URL Query Parameters
-
name - The Name of the person who the Purchase Order is being shipped to
-
company - The company
-
address_line_1 - House number and street
-
address_line_2 - Optional such as suburb
-
city - City
-
postcode - The postcode / zipcode
-
country - The county or state
-
country - The country
Call
PUT /rest/purchase/{id}/deliveryaddress.json
Edit a Purchase Order's shipping name and price
URL Query Parameters
-
price - The new price for shipping
Call
PUT /rest/purchase/{id}/shipping.json
Comments
0 comments
Please sign in to leave a comment.