Back

SamCart API Essential Guide

Aug 14, 20246 minute read

What type of API does SamCart provide?

Based on the search results provided, it appears that SamCart has a REST API. The key points are:

  1. The SamCart API provides functionality to:

    • View all orders
    • View all customers
    • View all charges
    • View all products
    • View all subscriptions
    • Cancel subscriptions
    • Update custom fields
  2. While the search results don't explicitly state it's a REST API, the functionality described (viewing resources, updating data) is typical of REST APIs.

  3. There is no mention of SOAP, GraphQL, or other API types being used by SamCart.

  4. REST APIs are very common for web services and applications like SamCart, as they are simple, scalable and flexible.

Does the SamCart API have webhooks?

Webhooks Availability

Yes, the official SamCart API does have webhooks, which they refer to as "Notify URL".

Types of Events You Can Subscribe To

SamCart offers a wide range of events that you can subscribe to using their Notify URL feature. Here are the available events:

  • Product Purchased
  • Product Refunded
  • Product Added to Order
  • Subscription Canceled
  • Subscription Delinquent
  • Subscription Recovered
  • Subscription Restarted
  • Subscription Charged
  • Subscription Charge Failed
  • Order Completed
  • Upsell Purchased
  • Subscription Completed

How It Works

  1. You set up a Notify URL integration in your SamCart Marketplace Settings.
  2. You create Integration Rules at either the product level or globally.
  3. When the specified event occurs, SamCart sends an HTTP POST to your Notify URL with the relevant data.

Key Points to Consider

  1. You can have multiple Notify URLs for your Marketplace/Product.
  2. For orders with multiple products, the "Product Purchased" trigger will fire for each item in the order. If you want it to fire only once per order, you can use the "Order Completed" trigger instead.
  3. SamCart provides sample payloads for each type of event, which can help you understand the data structure you'll receive.

Best Practices

  1. When setting up your Notify URL, make sure to include "https://" in the URL.
  2. Choose meaningful names for your integrations to easily identify them in your list.
  3. Consider using global rules if you want the same action to occur for all products in your marketplace.

Additional Information

SamCart also offers an API that allows you to:

  • View all orders, customers, charges, products, and subscriptions
  • Cancel subscriptions
  • Update Custom Fields data

To get access to the API, you need to reach out to SamCart support at [email protected].

In conclusion, SamCart provides a robust webhook system through their Notify URL feature, allowing you to integrate SamCart events with your own applications or third-party services. This can be particularly useful for automating workflows and keeping your data in sync across different platforms.

Rate Limits and other limitations

Based on the search results provided, there is no specific information about the API rate limits for the SamCart API. However, I can provide some general information about the SamCart API and related considerations:

SamCart API Overview

SamCart offers an API that allows developers to integrate order data between applications [2]. The API provides access to various data points, including:

  • Orders
  • Customers
  • Charges
  • Products
  • Subscriptions
  • Custom fields

The API is designed to help sellers keep their data in sync across different platforms and tools [2].

Key Points to Consider

  1. API Access: The SamCart API is currently available by request only. Users need to reach out to SamCart support ([email protected]) to request access [2][5].

  2. Data Integration: The API allows users to aggregate their SamCart eCommerce data with information from other sources like Facebook Ads, Google Analytics, and CRM tools [5].

  3. Real-time Access: The API provides secure, real-time access to important eCommerce data [5].

  4. Custom Fields: API users can update Custom Fields on individual orders using the API [2].

Best Practices

While specific rate limits are not mentioned, it's generally a good practice to:

  1. Implement proper error handling in your API requests to manage potential rate limit errors.

  2. Use efficient querying techniques to minimize the number of API calls needed.

  3. Cache data when possible to reduce the frequency of API requests.

  4. Monitor your API usage to ensure you're not approaching any undocumented limits.

Additional Information

For detailed documentation on the SamCart API, including available endpoints and usage instructions, developers can visit developer.samcart.com.

It's important to note that while this information provides an overview of the SamCart API, specific details about rate limits are not available in the provided search results. If rate limits are a critical concern for your implementation, it would be advisable to contact SamCart support directly for the most up-to-date and accurate information on any existing rate limits.

Latest API Version

Based on the search results provided, here are the key points regarding the most recent version of the SamCart API:

Current Status and Availability

  • The SamCart API is currently available by request only [3].
  • To get access, users need to go into their SamCart Dashboard and send a message to the SamCart team [3].

Features and Capabilities

The SamCart API provides access to various data points and functionalities, including:

  • Viewing all orders, customers, charges, products, and subscriptions [2].
  • Canceling subscriptions (marked as NEW) [2].
  • Custom fields (marked as NEW) [2].
  • Updating Custom Fields data to keep order information synchronized across platforms [2].

Recent Updates

While there isn't a specific version number mentioned, the search results indicate some recent additions to the API:

  • The ability to cancel subscriptions and work with custom fields are marked as new features [2].
  • The API documentation is available at developer.samcart.com [3].

How to Request Access

To request access to the SamCart API, users can:

  1. Reach out to [email protected] [2].
  2. Go to their SamCart Dashboard and send a message to the SamCart team [3].

Best Practices

When using the SamCart API, it's recommended to:

  1. Review the full documentation at developer.samcart.com to understand all available capabilities [3].
  2. Consider how you can use the API to integrate SamCart data with other tools and platforms you use in your business [3].
  3. Be aware of the potential to create custom dashboards and analytics hubs using the API data [3].

While the search results don't provide a specific version number for the most recent SamCart API, they do indicate that it's an actively developed product with recent feature additions. For the most up-to-date information on the API version and capabilities, it's best to contact SamCart directly or check their official developer documentation.

How to get a SamCart developer account and API Keys?

To get a developer account for SamCart and create an API integration, here are the key steps:

Request API Access

  1. Contact SamCart support at [email protected] to request access to the SamCart API.

  2. Once approved, SamCart will send your API token to your email address.

Set Up the Integration

  1. Go to your SamCart Marketplace Settings and select Integrations.

  2. Click on "New Integration" to add a new integration.

  3. Select the application you want to integrate with SamCart.

  4. Name your integration (e.g. "My API Integration").

  5. Connect using OAuth if available, or enter any required credentials.

Create Integration Rules

  1. Go to the Integrations tab for a specific product, or create Global Rules that apply to all products.

  2. Click "New Rule" to set up triggers and actions for the integration.

  3. Select the trigger event (e.g. Product Purchased) and the corresponding action in the integrated app.

Use the API

  • Once set up, you can use your API token to authenticate requests to the SamCart API endpoints.

  • The API allows you to:

    • View orders, customers, charges, products, subscriptions
    • Cancel subscriptions
    • Update custom fields

Key Points

  • API access must be requested and approved by SamCart.
  • Your API token is the key to authenticating API requests.
  • You can create product-specific or global integration rules.
  • The API enables automation of order processing, customer management, and more.

By following these steps, you can set up a developer account and create API integrations to extend SamCart's functionality for your e-commerce needs.

What can you do with the SamCart API?

Based on the search results provided, here is a list of data models that can be interacted with using the SamCart API, along with what is possible for each:

Orders

  • View all orders
  • Access order data in real-time
  • Aggregate order data with information from other platforms

Customers

  • View all customers
  • Access customer data

Charges

  • View all charges
  • Access charge data

Products

  • View all products
  • Access product data

Subscriptions

  • View all subscriptions
  • Cancel subscriptions
  • Access subscription data

Custom Fields

  • Update custom fields data

Additional Capabilities

  • Integrate order data between applications
  • Sync data changes made outside of SamCart
  • Aggregate sales and marketing data from multiple sources
  • Connect SamCart eCommerce data with information from other platforms (e.g., Facebook Ads, Google Analytics)
  • Create custom dashboards and analytics hubs
  • Access billing information and order history

Key Points to Consider

  • The API provides real-time access to important eCommerce data
  • It allows for the creation of a centralized data hub
  • The API can be used to integrate SamCart data with third-party tools and dashboards
  • It enables businesses to make data-driven decisions

Best Practices

  • Use the API to keep valuable order data up-to-date across all platforms
  • Leverage the API to create a comprehensive view of your business metrics
  • Utilize the data provided by the API to identify profitable customer segments and marketing channels

To get access to the SamCart API, you need to request it by contacting SamCart support at [email protected] or through your SamCart Dashboard.