almost 10 years ago
Some sample calls with the APN API
Get the full SHOP.COM category taxonomy:
GET /AffiliatePublisherNetwork/v1/categories?publisherID=TEST&locale=en_US HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
Search using term "laundry":
GET /AffiliatePublisherNetwork/v1/products?publisherID=TEST&locale=en_US&perPage=15&term=laundry HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
Get all products for category 3-7706_a:4013204 "Laundry Detergents":
GET /AffiliatePublisherNetwork/v1/products?publisherID=TEST&locale=en_US&perPage=15&categoryId=3-7706_a:4013204 HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
Get product details for Snap "Free and Clear Laundry Detergent":
GET /AffiliatePublisherNetwork/v1/products/600496745?publisherID=TEST&locale=en_US HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
Get Tax and Shipping for one box of Snap "Free and Clear Laundry Detergent":
GET /AffiliatePublisherNetwork/v1/taxandshipping?prodIds=600496745&quantity=1&zip=27284 HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
Search using term OPC and filter on price range from $0 to $40:
GET /AffiliatePublisherNetwork/v1/products?publisherID=TEST&locale=en_US&perPage=15&term=opc&priceRangeId=[0.0 TO 40.00] HTTP/1.1
Host: api.shop.com
Content-Type: application/json
apikey: XXXXX
Cache-Control: no-cache
