Get Purchase Orders By View

Overview

This endpoint can be used to get purchase orders using a saved view.

In order to consume the endpoint, you must:

  • Be 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 call.

Endpoint

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

Request

Method Type: HttpGet

Authorization: Use Bearer Token + token received from token authentication

Header info: Content-Type: application/json

List of query parameters:

ParameterData TypeDescriptionRequired
ViewIDIntegerThe ID of existing PO saved viewYes
PageNumberIntegerPage numberYes
PageSizeIntegerPage size

Maximum page size is 50. If greater value is provided 50 records will be returned per page.

Yes

Response

  • If the user is authenticated and the request is successful, then the response will be Status Code 200 => OKwith the found purchase orders in the response body
  • If the user is not authenticated, then the response will be Status Code 401 => Not Valid Token
  • In case of an error, the response will be Status Code 500 => Internal Server Error
  • In case of an incorrect request, the response will be with status code 400 Bad Request

Response Body

Was this article helpful?

Next
Get PO Saved Views