The example method on this page has been changed. This page will be updated shortly.

API Request

The following is an API Request using the ‘inventory_export‘ method. This is a cURL example of making a request. You will find the response at the bottom as well.

Making a Single Identifier Request VS Multiple Identifiers

Some requests require the ‘identifier’ parameter which allows you to specify one or many (up to 20) identifiers in a single request. The difference between these requests are outline below:

Single Identifier Request

$request_path = '/api/inventory_export'; // Path to specified call
$identifier = 'B01759FAYY'; // Single ASIN identifier
$type = 'asin'; // Identifier type
$campaign_id = '999'; // Your campaign ID that you are making a request to

//wrap the parameters into an array
$params = array(
   'identifier' => $identifier,
   'type' => $type,
   'campaign_id' => $campaign_id,
);

Multiple Identifier Request

$request_path = '/api/inventory_export'; // Path to specified call
// The 'identifier' and 'type' param get passed as a multi-dimensional array 
// Note, you can also send a single identifier through this way as well
$identifier = array
(
array('identifier' => 'B004W1WGIC', 'type' => 'asin'),
array('identifier' => 'B01759FAYY', 'type' => 'asin'),
array('identifier' => '885911229654', 'type' => 'upc'),
array('identifier' => 'black apple iphone', 'type' => 'keyword')
);
$campaign_id = '999'; // Your campaign ID that you are making a request to

//wrap the parameters into an array
$params = array(
   'identifiers' => $identifier, // Important: Name key changes to plural 'identifiers'
   'campaign_id' => $campaign_id,
);

Full Example

<?php

//Make your request parameters below
$auth_version = "5.1.2";  //This will stay the same
$auth_key = "MWZXjZjM0MDMxMmY7HUhsIU8AxNzZlZWNhO03HUSB=";  //Replace with your own Access Key
$secret = 'MWC0998Dh8SOYwmlPP08HjKO342TM1ZDXYZ=';  //Replace with your own Secret Key
$identifier = "B00NIYJF6U";  //Your unique identifier(s) up to 20
$type= "asin";  //Your identifier type (options: asin, upc, sku, mpn, isbn, keyword)
$campaign_id = "9999";   //Replace with your own Campaign ID
$method = 'POST';  //All requests must be POST

$domain = 'https://admin.synccentric.com';
$request_path = '/api/inventory_export';


$params = array(
    'identifier' => $identifier,
    'type' => $type,
    'campaign_id' => $campaign_id,
);

$auth_info = array(
    'auth_version' => $auth_version,
    'auth_key' => $auth_key,
    'auth_timestamp' => time(),
);

//sort payload for consistent signature
$payload = array_merge($auth_info, $params);
$payload = array_change_key_case($payload, CASE_LOWER);
ksort($payload);

$signature = urldecode(http_build_query($payload));
$signature = implode("\n", array($method, $request_path, $signature));
$signature = hash_hmac('sha256', $signature, $secret);

//add signature
$auth_info['auth_signature'] = $signature;

$post_data = array_merge($params, $auth_info);

//print_r($post_data); //uncomment to see your post request

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $domain.'/'.$request_path);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));

//receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec ($ch);

print_r($server_output); 

?>

API Response JSON Return

The following is an API Response from the ‘inventory_export’ method request above. The return is formatted in JSON format.

Download Response

[{"import_asin":"B00NIYJF6U","has_error":0,"error_msg":null,"initial_identifier_type":"asin","converted":1,"coerced_ident":null,"asin":"B00NIYJF6U","upc":"818279012774","sku":null,"mpn":"CHDHY-401","part_num":null,"isbn":null,"ean":"4055325722416","buybox_new_landed_price":"399.95","buybox_new_listing_price":"399.95","buybox_new_shipping_price":"0.00","buybox_new_subcondition":"New","buybox_used_landed_price":"319.99","buybox_used_listing_price":"319.99","buybox_used_shipping_price":"0.00","buybox_used_subcondition":"Mint","sales_rank":"3","manufacturer":"GBKD9","description":"GoPro\u2019s high-end camera model that features a new design with an integrated LCD, significantly increasing ease of use.","model":"CHDHY-401","package_dimensions_height":"4.00","package_dimensions_length":"10.00","package_dimensions_width":"4.10","package_dimensions_weight":"1.20","item_dimensions_height":"9.72","item_dimensions_length":"4.02","item_dimensions_width":"4.09","item_dimensions_weight":"1.47","publication_date":"","edition":"","number_of_pages":"","trade_in_value":"","size":"One Size","color":"Black","merchant_name":"The Gear Coop","total_new_sellers":"20","total_used_sellers":"71","total_refurbished_sellers":"","lowest_offer_listings":[{"Qualifiers":{"ItemCondition":"New","ItemSubcondition":"New","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"98-100%"},"NumberOfOfferListingsConsidered":"5","SellerFeedbackCount":"3","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"399.00"},"ListingPrice":{"CurrencyCode":"USD","Amount":"399.00"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"New","ItemSubcondition":"New","FulfillmentChannel":"Amazon","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"98-100%"},"NumberOfOfferListingsConsidered":"5","SellerFeedbackCount":"27237","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"399.95"},"ListingPrice":{"CurrencyCode":"USD","Amount":"399.95"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"New","ItemSubcondition":"New","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"95-97%"},"NumberOfOfferListingsConsidered":"4","SellerFeedbackCount":"9364","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"399.99"},"ListingPrice":{"CurrencyCode":"USD","Amount":"399.99"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"True"},{"Qualifiers":{"ItemCondition":"New","ItemSubcondition":"New","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"Just Launched"},"NumberOfOfferListingsConsidered":"1","SellerFeedbackCount":"0","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"399.99"},"ListingPrice":{"CurrencyCode":"USD","Amount":"399.99"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"Unknown"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Mint","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"95-97%"},"NumberOfOfferListingsConsidered":"2","SellerFeedbackCount":"1825","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"299.98"},"ListingPrice":{"CurrencyCode":"USD","Amount":"294.77"},"Shipping":{"CurrencyCode":"USD","Amount":"5.21"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Good","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"90-94%"},"NumberOfOfferListingsConsidered":"2","SellerFeedbackCount":"1160","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"299.99"},"ListingPrice":{"CurrencyCode":"USD","Amount":"295.00"},"Shipping":{"CurrencyCode":"USD","Amount":"4.99"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Mint","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"80-89%"},"NumberOfOfferListingsConsidered":"1","SellerFeedbackCount":"314","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"299.99"},"ListingPrice":{"CurrencyCode":"USD","Amount":"294.50"},"Shipping":{"CurrencyCode":"USD","Amount":"5.49"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"VeryGood","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"95-97%"},"NumberOfOfferListingsConsidered":"1","SellerFeedbackCount":"526","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"305.08"},"ListingPrice":{"CurrencyCode":"USD","Amount":"299.99"},"Shipping":{"CurrencyCode":"USD","Amount":"5.09"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"VeryGood","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"98-100%"},"NumberOfOfferListingsConsidered":"3","SellerFeedbackCount":"336","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"309.99"},"ListingPrice":{"CurrencyCode":"USD","Amount":"309.99"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Mint","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"90-94%"},"NumberOfOfferListingsConsidered":"1","SellerFeedbackCount":"14","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"310.00"},"ListingPrice":{"CurrencyCode":"USD","Amount":"310.00"},"Shipping":{"CurrencyCode":"USD","Amount":"0.00"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Mint","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"98-100%"},"NumberOfOfferListingsConsidered":"2","SellerFeedbackCount":"115","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"315.39"},"ListingPrice":{"CurrencyCode":"USD","Amount":"309.90"},"Shipping":{"CurrencyCode":"USD","Amount":"5.49"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Good","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"98-100%"},"NumberOfOfferListingsConsidered":"2","SellerFeedbackCount":"386","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"317.20"},"ListingPrice":{"CurrencyCode":"USD","Amount":"309.00"},"Shipping":{"CurrencyCode":"USD","Amount":"8.20"}},"MultipleOffersAtLowestPrice":"False"},{"Qualifiers":{"ItemCondition":"Used","ItemSubcondition":"Mint","FulfillmentChannel":"Merchant","ShipsDomestically":"True","ShippingTime":{"Max":"0-2 days"},"SellerPositiveFeedbackRating":"70-79%"},"NumberOfOfferListingsConsidered":"1","SellerFeedbackCount":"14","Price":{"LandedPrice":{"CurrencyCode":"USD","Amount":"328.48"},"ListingPrice":{"CurrencyCode":"USD","Amount":"322.99"},"Shipping":{"CurrencyCode":"USD","Amount":"5.49"}},"MultipleOffersAtLowestPrice":"False"}],"lowest_new_fulfillment_channel":"Merchant","lowest_new_price":"399.00","lowest_new_feedback_rating":"98-100%","lowest_new_feedback_count":"3","lowest_new_shipping":"0.00","lowest_used_price":"294.77","lowest_used_feedback_rating":"95-97%","lowest_used_feedback_count":"1825","lowest_used_fulfillment_channel":"Merchant","lowest_used_shipping":"5.21","lowest_new_fulfillment_channel_fba":"Amazon","lowest_new_price_fba":"399.95","lowest_new_feedback_rating_fba":"98-100%","lowest_new_feedback_count_fba":"27237","lowest_new_shipping_fba":"0.00","lowest_used_price_fba":"","lowest_used_feedback_rating_fba":"","lowest_used_feedback_count_fba":"","lowest_used_fulfillment_channel_fba":"Amazon","lowest_used_shipping_fba":"","lowest_new_fulfillment_channel_merchant":"Merchant","lowest_new_price_merchant":"399.00","lowest_new_feedback_rating_merchant":"98-100%","lowest_new_feedback_count_merchant":"3","lowest_new_shipping_merchant":"0.00","lowest_used_price_merchant":"294.77","lowest_used_feedback_rating_merchant":"95-97%","lowest_used_feedback_count_merchant":"1825","lowest_used_fulfillment_channel_merchant":"Merchant","lowest_used_shipping_merchant":"5.21","lowest_refurbished_price":"","additional_image_1":"http:\/\/ecx.images-amazon.com\/images\/I\/41MOdkJwD7L.jpg","additional_image_2":"http:\/\/ecx.images-amazon.com\/images\/I\/41rHcbPV-8L.jpg","additional_image_3":"http:\/\/ecx.images-amazon.com\/images\/I\/31CFzQ-EF9L.jpg","additional_image_4":"http:\/\/ecx.images-amazon.com\/images\/I\/31GaAeD2fnL.jpg","additional_image_5":"http:\/\/ecx.images-amazon.com\/images\/I\/41ehA4m706L.jpg","category":"Electronics","subcategory":"Sports & Action Video Cameras","all_categories":"Electronics>Categories>Camera & Photo>Video>Sports & Action Video Cameras","has_super_saver_shipping":"0","listing_url":"=HYPERLINK(\"http:\/\/www.amazon.com\/GoPro-CHDHY-401-HERO4-SILVER\/dp\/B00NIYJF6U\", \"http:\/\/www.amazon.com\/GoPro-CHDHY-401-HERO4-SILVER\/dp\/B00NIYJF6U\")","binding":"Electronics","brand":"GoPro","flavor":null,"label":"GBKD9","number_of_items":"1","package_quantity":"1","list_price_amount":"399.99","list_price_currency_code":"USD","product_group":"Photography","product_type_name":"CAMCORDER","publisher":"GBKD9","release_date":"","small_image":"http:\/\/ecx.images-amazon.com\/images\/I\/41RuXGtfyYL._SL75_.jpg","medium_image":"http:\/\/ecx.images-amazon.com\/images\/I\/41RuXGtfyYL._SL160_.jpg","large_image":"http:\/\/ecx.images-amazon.com\/images\/I\/41RuXGtfyYL.jpg","features":"-Built-In Touch Display: Frame your shots. Easily adjust settings. Play back videos and photos. Improved Camera Control: New dedicated button enables quick access to camera settings. Simplified menus make navigating settings easier than ever.-Fast, Powerful Photo Capture: Captures high-quality 12MP photos at speeds of up to 30 fps.-Built-In WiFi + Bluetooth: Delivers enhanced connectivity to the GoPro App, Smart Remote-Protune - Now for Video + Photos: Cinema-quality capture and manual control of color, ISO limit, exposure and more. Night Photo Lapse: Customizable exposure settings up to 30 seconds for single and Time Lapse Photos. Auto Low Light: Automatically adjusts frame rates for optimal low-light performance. High-Performance Audio: New Audio System captures clean, high fidelity sound and nearly 2x the dynamic range. Ultra Wide-Angle Glass Lens: Enables engaging, immersive footage of you and your world. Selecable FOV: Three FOV settings - Ultra-Wide, Medium and Narrow - allow for a broad range of perspectives. HiLight Tag: Mark key moments while recording for easy playback, editing, and sharing. QuikCapture: Power on and record automatically with the press of a single button. SuperView: Captures the world's most immersive wide-angle field of view.-Durable + Waterproof to 131' (40m): Designed to withstand extreme environments and conditions. Wearable + Mountable: Enables immersive self-capture during your favorite activities. Compatible with all GoPro Mounts: 60+ mounts and accessories - and counting - for capturing a wide variety of perspective and activities. GoPro App + Software: Control your camera remotely. View and share your content. Easily create gorgeous GoPro-style videos.","studio":"GBKD9","title":"GoPro HERO4 SILVER","fba_tier_level":"Large Standard Size","fba_order_handling":"0","fba_pick_pack":"0","fba_weight_handling":"0","fba_fee_total":"0.06","reviews_total":"","reviews_average":"","reviews_stars":"","reviews_last_run":null,"variations":"","parent_asin":"B00OQJM8FG","fba_monthly_storage":"0.06","sales_rank_category":"photo","sales_rank_summary":"[{\"SalesRank\":{\"ProductCategoryId\":\"photo_display_on_website\",\"Rank\":\"3\"}},{\"SalesRank\":{\"ProductCategoryId\":\"ce_display_on_website\",\"Rank\":\"15\"}},{\"SalesRank\":{\"ProductCategoryId\":\"7161074011\",\"Rank\":\"1\"}}]"}]