Create order
POST
/api/partners/ordersCreates an order.
Request
Client ID should be created by partner (if absent, the following fields are required and will create a new client)
The first name of the customer (optional if client_id is passed)
The last name of the customer (optional if client_id is passed)
The email address of the customer (optional if client_id is passed)
The full address of the customer
The apartment number or any additional information about the address
The phone number for the customer
The business name for the order, if applicable
The SKUs that the customer has purchased
The devices that a customer has (if more than 1, it will increase order price and tech payout)
Any additional notes that will be helpful regarding the customers service
An array of time windows with 1 hour blocks that we can go on site for the customer's service
External ID reference (partner ID)
{
"client_id": null,
"first_name": "John",
"last_name": "Doe",
"email": "johndoe1@hellotech.com",
"address": "719 Flower St, Los Angeles, CA 90017",
"address_details": "Yellow house",
"phone": "8888888888",
"business_name": "John Doe S/A",
"sku_id": [
10639
],
"devices": [
"iPhone 13"
],
"notes": "This is everything",
"time_windows": [
{
"start_time": "2024-11-03T16:00:00.000Z",
"end_time": "2024-11-03T17:00:00.000Z"
},
{
"start_time": "2024-11-03T17:00:00.000Z",
"end_time": "2024-11-03T18:00:00.000Z"
}
],
"purchase_order_id": "PO-1234"
}
Request samples
Responses
{
"order": {
"id": 432873,
"status": "Pending",
"clientName": "Client Name",
"clientCity": "Indianapolis",
"clientState": "IN",
"createdAt": {
"integer": 1728427930,
"iso": "2024-10-08T22:52:10Z",
"isoShort": "2024-10-08T22:52:10"
}
}
}