Support

Help With Fleapay products API

  1. How do I use the Fleapay API to get my products?
  2. What does our single product object look like?
  3. What does our single product with price options look like?

How do I use the Fleapay API to get my products?

This is a great way to fetch your companies entire stores product catalog. Here's an example of how to do it:

  1. Log in to your Fleapay account.
  2. Enable and copy your API Key from your Account page
  3. Access products by replacing our Demo account API key "11cf65ab15c9aad43d3b41b27d9660eb" with your API Key: https://www.fleapay.com/api/products/11cf65ab15c9aad43d3b41b27d9660eb
  4. Our products object will look like the following. This return response is a hash or single products.

        
    {
     products: [
      {
        key: "eb149947e0",
        title: "Donation for our charity event",
        price: "Gift",
        detail: "https://www.fleapay.com/api/product/11cf65ab15c9aad43d3b41b27d9660eb/eb149947e0",
        url: "https://www.fleapay.com/demosite/eb149947e0"
      },
      {
        key: "1692420094",
        title: "Brian Urlacher T-Shirt",
        price: "$20.00",
        detail: "https://www.fleapay.com/api/product/11cf65ab15c9aad43d3b41b27d9660eb/eb149947e0",
        url: "https://www.fleapay.com/demosite/1692420094"
      }
     ]
    }
        
    

    *It's important to note the product responses are JSON objects.

  5. Build something.


What does our single product detail object look like?

Single Fixed Product:

        
{
    key: "1692420094",
    price: "$20.00",
    title: "Brian Urlacher T-Shirt",
    url: "https://www.fleapay.com/demosite/1692420094",
    taxable: "0",
    detail: "https://www.fleapay.com/api/product/11cf65ab15c9aad43d3b41b27d9660eb/eb149947e0",
}
        
    


What does our single product with price options look like?

Single Fixed Product w/ Options:

        
{
    key: "bcb4c7cfdf",
    price: "$20.00",
    title: "Fleapay T-Shirt",
    url: "https://www.fleapay.com/demosite/1692420094",
    taxable: "1",
    detail: "https://www.fleapay.com/api/product/11cf65ab15c9aad43d3b41b27d9660eb/bcb4c7cfdf",
    options:
    [
     {
         key: "37104d51a8",
         label: "S",
         price: "$20.00",
         url: "https://www.fleapay.com/api/get_product/api_key:11cf65ab15c9aad43d3b41b27d9660eb/product_key:bcb4c7cfdf/product_option_key:37104d51a8"
     },
     {
         key: "1ffa999f54",
         label: "M",
         price: "$20.00",
         url: "https://www.fleapay.com/api/get_product/api_key:11cf65ab15c9aad43d3b41b27d9660eb/product_key:bcb4c7cfdf/product_option_key:1ffa999f54"
     },
     {
         key: "aed975f566",
         label: "L",
         price: "$20.00",
         url: "https://www.fleapay.com/api/get_product/api_key:11cf65ab15c9aad43d3b41b27d9660eb/product_key:bcb4c7cfdf/product_option_key:aed975f566"
     }
    ]
}
        
    

 

Company

Stay in touch

Get help

Email us