FetchApp API

Get a List of your Products

GET a list all your products... /api/v3/products /api/v3/products?page=2 Example result... { "products": [ { "created_at": "2021-09-12T12:34:55Z", "currency": "USD", "download_count": 2, "id": 123, "item_urls": [ { "created_at": "2021-09-12T12:34:55Z", "download_count": 2, "id":...

Get a List of your Products

GET a list all your products... /api/v3/products /api/v3/products?page=2 Example result... { "products": [ { "created_at": "2021-09-12T12:34:55Z", "currency": "USD", "download_count": 2, "id": 123, "item_urls": [ { "created_at": "2021-09-12T12:34:55Z", "download_count": 2, "id":...

Get Order Items

GET a list of all order items for the specified order... /api/v2/orders/:id/order_items /api/v2/orders/:id/order_items.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <order_items type="array"> <order_item> <id type="integer">821431</id> <sku>BILL-WAX</sku> <order_id>1001</order_id> <product_name>Quality Bill Wax</product_name> <price type="float">5.00</price>...

Get Order Items

GET a list of all order items for the specified order... /api/v2/orders/:id/order_items /api/v2/orders/:id/order_items.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <order_items type="array"> <order_item> <id type="integer">821431</id> <sku>BILL-WAX</sku> <order_id>1001</order_id> <product_name>Quality Bill Wax</product_name> <price type="float">5.00</price>...

Order Statistics

GET statistics about an order... /api/v2/orders/:id/stats /api/v2/orders/:id/stats.xml For example... <?xml version="1.0" encoding="UTF-8"?> <order> <id>1001</id> <vendor_id>1554898798</vendor_id> <download_count type="integer">1</download_count> <product_count type="integer">1</product_count> <total type="float">44.50</total> <currency>USD</currency> </order>  

Order Statistics

GET statistics about an order... /api/v2/orders/:id/stats /api/v2/orders/:id/stats.xml For example... <?xml version="1.0" encoding="UTF-8"?> <order> <id>1001</id> <vendor_id>1554898798</vendor_id> <download_count type="integer">1</download_count> <product_count type="integer">1</product_count> <total type="float">44.50</total> <currency>USD</currency> </order>  

Send Order Email

POST to send download email for the specified order... /api/v2/orders/:id/send_email?reset_expiration=false /api/v2/orders/:id/send_email?expiration_date=2011-03-07T15:08:02+00:00&download_limit=10 /api/v2/orders/:id/send_email.xml?expiration_date=2011-03-07T15:08:02+00:00&download_limit=10 Example result... <?xml version="1.0" encoding="UTF-8"?> <message>Ok.</message> NOTE: reset_expiration is an optional boolean, and defaults to true if not...

Send Order Email

POST to send download email for the specified order... /api/v2/orders/:id/send_email?reset_expiration=false /api/v2/orders/:id/send_email?expiration_date=2011-03-07T15:08:02+00:00&download_limit=10 /api/v2/orders/:id/send_email.xml?expiration_date=2011-03-07T15:08:02+00:00&download_limit=10 Example result... <?xml version="1.0" encoding="UTF-8"?> <message>Ok.</message> NOTE: reset_expiration is an optional boolean, and defaults to true if not...

Expire an Order

GET to expire the specified order... /api/v2/orders/:id/expire /api/v2/orders/:id/expire.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <message>Ok.</message>

Expire an Order

GET to expire the specified order... /api/v2/orders/:id/expire /api/v2/orders/:id/expire.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <message>Ok.</message>

List Order Downloads

GET to list all downloads for the specified order... /api/v2/orders/:id/downloads /api/v2/orders/:id/downloads.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <downloads type="array"> <download> <id>233</id> <filename>photo.jpg</filename> <product_sku>BILL-WAX</product_sku> <order_id>1001</order_id> <ip_address>127.0.0.1</ip_address> <downloaded_at type="datetime">2009-04-27T04:13:09+00:00</downloaded_at> <size_bytes type="float">87088 </size_bytes> </download>...

List Order Downloads

GET to list all downloads for the specified order... /api/v2/orders/:id/downloads /api/v2/orders/:id/downloads.xml Example result... <?xml version="1.0" encoding="UTF-8"?> <downloads type="array"> <download> <id>233</id> <filename>photo.jpg</filename> <product_sku>BILL-WAX</product_sku> <order_id>1001</order_id> <ip_address>127.0.0.1</ip_address> <downloaded_at type="datetime">2009-04-27T04:13:09+00:00</downloaded_at> <size_bytes type="float">87088 </size_bytes> </download>...