Skip to main content
This article provides instructions on how to prepare your custom site before your installation with Emotive. These instructions are for your development team.
Please attempt this configuration at least 2 days in advance of your scheduled installation. These configurations must be completed in order to successfully install Emotive.Please make sure your developer is on the installation call with Emotive. They will need to grant us access to certain permissions. If you experience any issues, please contact us at [email protected] for further assistance.

Authentication

Emotive respects the privacy and sensitivity of any content an organization working with us, and towards that we take great pains to ensure the security of your data. We use encoded token authorization over https to ensure security and maintain simplicity. To access the Emotive Open API, a client must add an “Authorization” HTTPS header to every API request and that header’s value must contain a valid API token. An API token is unique to each user in Emotive, and the Emotive team will be providing the token to you as a client. Once your token is generated, you can add it to each request with the following syntax: Authorization: Token <token> The Authorization Header must be included in every request. Example (Authentication) Authorization: Token dXNlck5hbdfdr4WVWfssFg346vbcv==

Content Types for Data Creation

Resource Creation

For any request that contains JSON in the request body (POST or PUT operations), we support a content type of “application/json”. You should then expect any content in the response body to also be returned as JSON. For example the HTTP request headers would look like: Accept: application/json Content-Type: application/json; charset=UTF-8

Http Response Code Conventions

  • 2xx response codes: Generally returned when the request resulted in a successful response. The response body usually contains the expected resource that was requested or was created as a result of the request.
  • 4xx response codes: Generally a client-generated error, which means the client made a request that is either malformed, invalid or not allowed for the given resource at that time. The response body will contain an “error” attribute explaining what happened and how to correct, if applicable.

Status Codes

Success Codes

CodeDescription
200OK
201Created
292Accepted (Request accepted, and queued for execution)

Client Error Codes

CodeDescription
400Bad Request (missing or invalid data provided)
401Unauthorized/Authentication Failure
403Forbidden
404Resource not found
405Method not allowed
409Conflict
412Precondition failed
413Request entity too large

Server Error Codes

CodeDescription
500Internal server error
501Not implemented
503Service unavailable

Orders API

https://api.emotiveapp.co/ecommerce/v1/orders/

Request Parameters

request parameters request parameters request parameters

Sample Order Request

request sample

Response Parameters

response parameters

Sample Order Response

sample response