index
FORMAT: 1A HOST: https://api.orderino.com/api
Orders
Orderino REST API
For more information visit https://orderino.com, https://orderino.com/docs or drop us a line to [email protected]
Overview
This documentation describes how users can interact with the resources of the Orderino API. Orderino API is a RESTful API that uses JSON as its main format of communication. It allows users (clients) to access the resources of the Orderino Platform.
Base Resources / Entities
Order- represents an Order object in Orderino Platform. Belongs toCompanyandCustomer.Customer- represents a Customer object in Orderino Platform. Belongs toCompany.Product- represents a Product object in Orderino Platform. Belongs toCompany.Company- represents a Company object in Orderino Platform
Base URL
The base URL of the API is https://api.orderino.com/api/
Each resource is accessible by requesting this URL + the recource path.
Each user / customer has access only to allowed resources / companies.
Allowed companies are returned in companies field in case of successful authentication.
To access resources from specific company, resource path should have company numeric identifier, i.e. company/456784/customers/list
Allowed HTTP Requests
POST- Creates or updates a resourceGET- Retrieves a resource or list of resources
Typical Server Responses
200OK - The request was successful400Bad Request - The request could not be processed due to invalid request parameters.401Unauthorized - Token expired (get new token)403Forbidden - Access denied, authentication is required404Not Found - Resource was not found.405Method Not Allowed - Requested method is not supported for the specified resource.429Too Many Requests - Exceeded API limits. Pause requests, wait a minute, and try again.500Internal Server Error503Service Unavailable - The service is temporary unavailable (e.g. scheduled Platform Maintenance). Try again later.
Authentication
Orderino API is a secure API, that requires client authentication using an API token.
You can obtain it via authentication method described later in this document.
Than use it in the header named Authentication as Authentication: token
Important:
You should keep the API key secret and unreachable to third party users.
Token can expire, in this case you'll get 401 response. Re-authenticate user in this case and get new token.
Request / Response Structure
POST Requests sent to API should be properly JSON formatted.
Typical Response structure is
Explanation of the fields is provided below:
Field
Description
status
1 in case of success, 0 in case of an error
count
Count of total objects if we are talking about retrieving collection
pagination
Pagination section if we are talking about retrieving collection
data
Requested object / collection
Sample Data Relevance
Provided in examples below response data may not be relevant / actual. Please check the real data returned by API.
Authentication [/auth]
Get Token [POST /auth/login]
Request (application/json)
Response 200 (application/json)
Company [/company]
Get Company Info [GET /api/company/{company_id}/company/info]
Parameters
company_id (required, number,
25325) Company Id
Request (application/json)
Headers
Response 200 (application/json)
Body
Customers [/api/company/{company_id}/customers]
Parameters
company_id (required, number,
25325) Company Id
List [GET /api/company/{company_id}/customers/list]
Request (application/json)
Headers
Response 200 (application/json)
Body
Get Status Breakdown [GET /api/company/{company_id}/customers/pipeline]
For currently authenticated user
Parameters
company_id (required, number,
25325) Company Id
Request (application/json)
Headers
Response 200 (application/json)
Body
Search Customer [GET /api/company/{company_id}/customers/search-customer?query={query}]
Parameters
query (required, string,
Query String) Search String
Request (application/json)
Headers
Response 200 (application/json)
Body
Add / Edit Customer [POST /api/company/{company_id}/customers/edit]
Parameters
company_id (required, number,
25325) Company Id
Request (application/json)
Headers
Body
Response 200 (application/json)
Body
Upload Customer Image [POST /api/company/{company_id}/customers/image?customer_id={customer_id}]
Parameters
customer_id (required, number,
208963) Customer Idcompany_id (required, number,
25325) Company Id
Request (application/json)
Headers
Body
Response 200 (application/json)
Body
Add Comment To Customer [POST /api/company/{company_id}/customers/add-comment]
Parameters
company_id (required, number,
25325) Company Id
Request (application/json)
Headers
Body
Response 200 (application/json)
Body
Get Customer Comments [GET /api/company/{company_id}/customers/get-comments?etype={etype}&id={id}]
Parameters
company_id (required, number,
25325) Company Idetype (required, string,
customers)id (required, number,
208962) Customer Id
Request (application/json)
Headers
Response 200 (application/json)
Body
}
Orders [/api/company/{company_id}/orders]
Parameters
company_id (required, number,
25325) Company Id
List [GET /api/company/{company_id}/orders/list]
Request (application/json)
Headers
Response 200 (application/json)
Body
Orders [/api/company/{company_id}/orders]
Parameters
company_id (required, number,
25325) Company Id
List [GET /api/company/{company_id}/orders/list]
Request (application/json)
Headers
Response 200 (application/json)
Body
Orders [/api/company/{company_id}/orders]
Parameters
company_id (required, number,
25325) Company Id
List [GET /api/company/{company_id}/orders/list]
Request (application/json)
Headers
Response 200 (application/json)
Body
Last updated
Was this helpful?