👤Order Customer
Create/Update/Get orders
Before you start
Orders are any sales-related orders placed by your customers that you would like to track in NinjaPipe Sales dashboard.
Import from CRM
Use this API to import an existing contact from the CRM to the sales dashboard as a sales customer.
POST
https://app.ninjapipe.com/api/v1/customers/import
Create customer
POST
https://app.ninjapipe.com/api/v1/customers/create
Creates a new sales order customer in your tenant.
Request Body
Authorizations
Header parameters
API_KEYstringOptionalExample:
API_KEY
Body
objectOptionalExample:
{"full_name":"Emily Johnson","gender":"Female","picture_url":"https://cdn.pixabay.com/photo/2016/03/31/19/57/avatar-1295404_1280.png","email":"[email protected]","organization":"Tech Solutions Inc.","phone_number":"+1-555-123-4567"}
Responses
200
Successful response
application/json
post
POST /api/v1/customers/create HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 240
{
"full_name": "Emily Johnson",
"gender": "Female",
"picture_url": "https://cdn.pixabay.com/photo/2016/03/31/19/57/avatar-1295404_1280.png",
"email": "[email protected]",
"organization": "Tech Solutions Inc.",
"phone_number": "+1-555-123-4567"
}
200
Successful response
No content
Update a customer
PUT
https://app.ninjapipe.com/api/v1/customers/update
Authorizations
Header parameters
API_KEYstringOptionalExample:
API_KEY
Body
objectOptionalExample:
{"id":919,"tenant_id":1,"full_name":"Emily Johnson","gender":"Female","picture_url":"https://cdn.pixabay.com/photo/2016/03/31/19/57/avatar-1295404_1280.png","email":"[email protected]","organization":"Tech Solutions Inc.","phone_number":"+1-555-123-4567"}
Responses
200
Successful response
application/json
put
PUT /api/v1/customers/update HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 263
{
"id": 919,
"tenant_id": 1,
"full_name": "Emily Johnson",
"gender": "Female",
"picture_url": "https://cdn.pixabay.com/photo/2016/03/31/19/57/avatar-1295404_1280.png",
"email": "[email protected]",
"organization": "Tech Solutions Inc.",
"phone_number": "+1-555-123-4567"
}
200
Successful response
No content
Get customer
GET
https://app.ninjapipe.com/api/v1/customers/get?id={customer_id}
Authorizations
Query parameters
idintegerOptionalExample:
919
Header parameters
API_KEYstringOptionalExample:
API_KEY
Responses
200
Successful response
application/json
get
GET /api/v1/customers/get HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Accept: */*
200
Successful response
No content
Get all customers
GET
https://app.ninjapipe.com/api/v1/customers/getall
Delete customer
Last updated