send("/vendor/orders/v1/purchaseOrders", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getPurchaseOrdersAsync($queryParams = []) { return $this->sendAsync("/vendor/orders/v1/purchaseOrders", [ 'method' => 'GET', 'query' => $queryParams, ]); } /** * Operation getPurchaseOrder * * @param string $purchaseOrderNumber The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code. * */ public function getPurchaseOrder($purchaseOrderNumber) { return $this->send("/vendor/orders/v1/purchaseOrders/{$purchaseOrderNumber}", [ 'method' => 'GET', ]); } public function getPurchaseOrderAsync($purchaseOrderNumber) { return $this->sendAsync("/vendor/orders/v1/purchaseOrders/{$purchaseOrderNumber}", [ 'method' => 'GET', ]); } /** * Operation submitAcknowledgement * */ public function submitAcknowledgement($body = []) { return $this->send("/vendor/orders/v1/acknowledgements", [ 'method' => 'POST', 'json' => $body ]); } public function submitAcknowledgementAsync($body = []) { return $this->sendAsync("/vendor/orders/v1/acknowledgements", [ 'method' => 'POST', 'json' => $body ]); } /** * Operation getPurchaseOrdersStatus * * @param array $queryParams * - *limit* integer - The limit to the number of records returned. Default value is 100 records. * - *sortOrder* string - Sort in ascending or descending order by purchase order creation date. * - *nextToken* string - Used for pagination when there are more purchase orders than the specified result size limit. * - *createdAfter* string - Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format. * - *createdBefore* string - Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format. * - *updatedAfter* string - Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format. * - *updatedBefore* string - Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format. * - *purchaseOrderNumber* string - Provides purchase order status for the specified purchase order number. * - *purchaseOrderStatus* string - Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses. * - *itemConfirmationStatus* string - Filters purchase orders based on their item confirmation status. If the item confirmation status is not included in the filter, purchase orders for all confirmation statuses are included. * - *itemReceiveStatus* string - Filters purchase orders based on the purchase order's item receive status. If the item receive status is not included in the filter, purchase orders for all receive statuses are included. * - *orderingVendorCode* string - Filters purchase orders based on the specified ordering vendor code. This value should be same as 'sellingParty.partyId' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned. * - *shipToPartyId* string - Filters purchase orders for a specific buyer's Fulfillment Center/warehouse by providing ship to location id here. This value should be same as 'shipToParty.partyId' in the purchase order. If not included in filter, this will return purchase orders for all the buyer's warehouses used for vendor group purchase orders. * */ public function getPurchaseOrdersStatus($queryParams = []) { return $this->send("/vendor/orders/v1/purchaseOrdersStatus", [ 'method' => 'GET', 'query' => $queryParams, ]); } public function getPurchaseOrdersStatusAsync($queryParams = []) { return $this->sendAsync("/vendor/orders/v1/purchaseOrdersStatus", [ 'method' => 'GET', 'query' => $queryParams, ]); } }