Developer API

Introduction

Cafebazaar Developer API is a REST API that allows you to automatically perform some of your product management tasks. Using this API, you can check the status of your products and subscriptions sales from your personal server.

Not all developers will need to use Developer API. In most cases, you can manage these sales from your Developer Panel. However, if you have a large number of apps and in-app products, this API might be useful for you.

This API allows you to receive details of your products and subscriptions sales by sending a standard GET request. In this request you send information about a sale (package name, product/subscription id ,and purhcase token) and server responds to your request with a JSON object containing datails about the product/subscription sale.

You can use this API for several purposes, such as reporting, checking the status of a single product sale, and confirming product sales and subscriptions expiration date.

To use this API, you need to authorize your server in Cafebazaar API servers. After doing this, you will be able to use the API calls.

Cafebazaar uses OAuth 2.0 protocol for authentication process in Developer API. To use Developer API, you first need to create a Client in your Cafebazaar developer panel, and then use the information from that Client to recieve an access_tokenaccess_token is the token you should send with each API request to the Cafebazaar.

Each of the features implemented in the API can be accessed with a HTTP request. The response will contain the result, or errors produced by the server in JSON format. To find out about those features and their responses in detail, use the API reference in the following documents.

API usage is limited to 50,000 calls per developer each day. If you need more quota, contact Bazaar developer support.