Example #1
0
 /**
  * Return a specific product
  * @param string $api_user
  * @param string $api_key
  * @param string $sku Product to lookup
  * @return array
  */
 public static function GetProdInventory($api_user, $api_key, $sku)
 {
     $endpoint = '/merchant/inventory/' . $sku;
     return APIObject::make_api_call($api_user, $api_key, $endpoint);
 }
Example #2
0
 /**
  * Add or update the given list of ship methods.
  * @param string $api_user
  * @param string $api_key
  * @param string $order_source
  * @param array $cart_codes_array
  * @return array
  */
 public static function UpdateShipMethods($api_user, $api_key, $order_source, $cart_codes_array)
 {
     $endpoint = '/cart/shipmethod/' . $order_source;
     return APIObject::make_api_call($api_user, $api_key, $endpoint, $cart_codes_array);
 }
Example #3
0
 /**
  * Return a list of all ship methods setup for this WMS
  * @param string $api_user
  * @param string $api_key
  * @return array
  */
 public static function ListShipMethods($api_user, $api_key)
 {
     $endpoint = '/wms/shipmethod/list';
     return APIObject::make_api_call($api_user, $api_key, $endpoint);
 }
Example #4
0
 /**
  * View an order in CartRover.
  * @param string $api_user
  * @param string $api_key
  * @param array $cust_ref cust_ref of order to view
  * @return array
  */
 public static function ViewOrder($api_user, $api_key, $cust_ref)
 {
     $endpoint = '/merchant/orders/' . $cust_ref;
     return APIObject::make_api_call($api_user, $api_key, $endpoint);
 }