HT Partner API
  1. Orders
HT Partner API
  • Orders
    • Retrieve all orders
      GET
    • Order count by tag
      GET
    • Create order
      POST
  • Clients
    • Create client
      POST
    • Retrieve client
      GET
    • Update client
      PUT
    • Create setup intent
      POST
    • Create ephemeral key
      POST
  1. Orders

Create order

Staging
https://apis.hellotech.com
Staging
https://apis.hellotech.com
POST
/api/partners/orders
Creates an order.

Request

Authorization
Add parameter in header
Api-Key
Example:
Api-Key: ********************
Header Params

Body Params application/json

Example
{
  "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 Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apis.hellotech.com/api/partners/orders' \
--header 'Accept: application/json' \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "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"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "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"
        }
    }
}
Modified at 2024-10-15 22:51:11
Previous
Order count by tag
Next
Create client
Built with