Get Single Purchase Order

Overview

In order to retrieve metadata of a purchase order, you must:

  • Be authenticated user

Information on how you can authenticate: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed on the call for receiving a single purchase order.

  • Have valid ID of an existing purchase order.

Endpoint

Example for such endpoint for TT server is https://tt.api.sellercloud.com/rest/api/PurchaseOrders/{id}

Request

  • Method Type: HttpGet
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json
  • Parameters: ID of the purchase order
Parameter Data Type Description Is Required
id integer ID of existing purchase order true

Example: https://tt.api.sellercloud.com/rest/api/PurchaseOrders/11

Response

  • If user is authenticated and provides a valid ID of an order, then response will be Status Code 200 => OK and purchase order metadata in JSON format
  • If user is not authenticated, then response will be Status Code 401 => Not Valid Token
  • On server response => Status Code 500 => Internal Server Error

Response Body Format

Was this article helpful?

Related Articles