Update Purchase Order

Overview

This endpoint lets you update the General panel details of an existing Purchase Order. In order to use it, you must:

  • Be an authenticated user

For information on how you can authenticate, see: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed to the service call.

Endpoint

An example of such an endpoint for XX server is:

https://xx.api.sellercloud.com/rest/api/PurchaseOrders/{id}

For your server, the endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/PurchaseOrders/{id}

Request

  • Method Type: HttpPut
  • Authorization: Use Bearer Token (where ‘Token’ is the token received from token authentication)
  • Header info: Content-Type: application/json
  • Parameters: ID of existing Purchase Order
  • Request Body:

ParameterData TypeDescriptionIs Required
CompanyIdintegerPurchase Order company ID.

Do not provide or set to “null” if no update is needed.

No
VendorIdintegerPO Vendor ID.

Do not provide or set to “null” if no update is needed.

No
DescriptionstringDescription/Name of the PO.

Do not provide or set to “null” if no update is needed.

No
OrderedOnDateDatetimeThe date when the PO was placed.

Do not provide or set to “null” if no update is needed.

No
RequestedOnDateDatetimeThe date when the PO was requested.

Do not provide or set to “null” if no update is needed.

No
ExpectedDeliveryDateDatetimeThe expected delivery date for the products in the PO.

Do not provide or set to “null” if no update is needed.

No
CancelByDateDatetimeThe deadline for canceling the PO.

Do not provide or set to “null” if no update is needed.

No
InstructionsstringAny special instructions provided for the PO.

Do not provide or set to “null” if no update is needed.

No

Response

  • If the user is authenticated and the PO update is successful, then the response will be Status Code 200 => OK
  • If the user is not authenticated, then the response will be Status Code 401 => Not Valid Token
  • If there are missing or invalid values in the request, then the response will be Status Code 400 => Bad Request
  • In case of an error, the response will be Status Code 500 => Internal Server Error

Was this article helpful?

Next
Get Shipping Carriers