API Documentation

Parts of an API call

When calling an API (sending a request) there are 6 main pieces that need to be defined:

  • Method – What type of action you are trying to accomplish
  • EndPoint – The URL you are calling to perform the action
  • Parameters – These are values that are sent in as part of the URL string
  • Authentication – This is how your application will get authorized with Shufflrr to allow your system to perform the desired actions
  • Header – These are metadata values used to give instructions or settings to Shufflrr for acting upon the desired method with the specified request (body)
  • Body – This is the information on the requested action to be performed. This is sometimes referred to as a payload.

When information is returned from the call to an API the data that is returned is called a Response. The information returned in the Response Body is sent back in JSON format as well. This information can then be parsed and used in your application.

API Request Methods

The APIs used in Shufflrr use the following methods:

  • GET – Requests data from Shufflrr. This is the most common type of request.
  • POST – This is generally used to submit a form or to create a new object in Shufflrr.
  • PUT – This is generally used to update an existing object in Shufflrr.
  • DELETE – This is used to remove an object from Shufflrr.

Complete list of Shufflrr’s API EndPoints

Shufflrr’s API is documented in Swagger and can be found at https://wwwapi.shufflrr.com/api.

to use the APIs for your specific portal you should replace wwwapi with your specific subdomain (portal name). For example, if your Shufflrr portal is ABC123.shufflrr.com you would replace wwwapi with ABC123 for all the API calls, headers, and links in the payload (body).

Authentication

All calls to Shufflrr APIs need to be authenticated. Before calling other APIs the first call that will need to be made is to the Login API. The Login API will return a cookie that should be used by all other API calls to allow them to be authenticated and authorized to perform the desired action.

Body

The Body of a request is not used in GET Methods. It is only used in POST, PUT, & DELETE methods. The body is specific to each individual call but each request body must be specified in JSON format.

Subscribe Plan

[stripe_payment_form]