Home - Postcart/postcart_api GitHub Wiki


Postcart API Documentation

Welcome to Postcart! We are thrilled to have you use our API and to help people embrace social selling. Postcart is a service that helps people sell the stuff they own or make directly from a post on any social networking.

The Postcart API is written in PHP. Through the Postcart API, you will be able to create merchants, create buyers, create postcarts, publish them on the facebook and handle purchases and orders. It is a complete e-commerce API that comes with great features and great flexibility to create the experience that you envision.

Getting Started

Postcart believes in creativity and empowers developers by providing an API that could help them make e-commerce, payment transactions and order management hassle-free.

In order to have access to our API, shoot us a quick email on [email protected] We will provide you with an APP name and APP key pair for a Test Mode and another pair for the Production Mode. Those will be needed to access the API.

Installation

First and foremost, you will need to download some files that will help you connect to the API.

You can download the Demo Mode API here and the Production Mode API here

The compressed files contain the the demo file called "apicaller_demo.php" and the production file called "apicaller.php". Those files handle all PHP communications with either the Demo or the Production server.

Your project should require either "apicaller_demo.php" for the Demo server OR "apicaller.php" for the Production server. We will refer to that main file as "apicaller" moving forward. Make sure you call the right file appropriately whether you want to communicate with the Demo or the Production server.

<?php require "apicaller_demo.php"; // Equivalently "apicaller.php" if production mode ?>

Next: Selling in a Postcart