Orders
Managing orders using API endpoints
Overview of Simplio3D API Orders Endpoints
The Simplio3D API provides a set of endpoints that allow users to manage orders efficiently. Among these endpoints, the GET /orders/{orderId} endpoint is specifically designed to retrieve detailed information about a particular order by its unique ID. This enables users to monitor and track individual orders, ensuring they have access to up-to-date status and details of their transactions.
For more information on utilizing the Orders endpoints, please refer to the API documentation for additional details and examples.
GET /orders/{orderId}
GET Endpoint: Retrieve an Order by ID
Endpoint URL
GET open-api/v1/orders/{orderId}
Description
Retrieve detailed information about a specific order using its unique identifier.
Path Parameter
orderId: The unique identifier for the order you wish to retrieve.
Response
200 OK: Successfully retrieved the order details.404 Not Found: No order was found with the provided ID.500 Internal Server Error: An error occurred on the server.
Example Request
Example Response
Get a specific order by ID.
Enter token in format (Bearer <your_token>)
ID of the order
Order retrieved successfully
No content
Unauthorized
Order not found
Internal Server Error
GET /api/open-api/v1/orders/{id} HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
POST /orders
POST Endpoint: Create a New Order
Endpoint URL
POST /orders
Description
This endpoint allows you to create a new order in the system.
Request Headers
Content-Type: application/jsonAuthorization: Bearer <token>
Request Body
Response
200 OK: Order created successfully
400 Bad Request: Invalid input data
401 Unauthorized: Missing or invalid authentication token
Example
Create a new order.
Enter token in format (Bearer <your_token>)
Configurator total amount
3400Customer details in JSON format
{'First Name':'Jhon','Last Name':'Smith','Company':'Google Inc.','Address':'Wall Street'}Configurator summary in JSON format
{'Catalog':'Teacup classic','Material':'Glossy white','Quantity':'230'}Configurator snapshot image file
Array of print map image files
Order created successfully
Order resource representation
Unique identifier for the order
1Total price of the order
149.99Status of the order
completedDetails of the customer
{"name":"John Doe","email":"johndoe@example.com"}Summary of the configurator options selected
{"config_id":123,"options":{"color":"red","size":"L"}}URL of the configurator snapshot image
https://cdn.simplio3d.com/orders/107/original/print_snapshot.pngArray of URLs for configurator print maps
https://cdn.simplio3d.com/orders/107/original/print_map_1.pngURL for downloading the order invoice
https://example.com/invoice/12345Shopify order ID if applicable
SH123456789Timestamp when the order was created
2024-03-01T10:30:00ZTimestamp when the order was last updated
2024-03-02T12:45:00ZInvalid request parameters
Unauthorized request
Internal server error
POST /api/open-api/v1/orders HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 291
{
"price": 3400,
"customer_details": "{'First Name':'Jhon','Last Name':'Smith','Company':'Google Inc.','Address':'Wall Street'}",
"configurator_summary": "{'Catalog':'Teacup classic','Material':'Glossy white','Quantity':'230'}",
"configurator_snapshot": "binary",
"configurator_print_map": [
"binary"
]
}{
"id": 1,
"price": 149.99,
"status": "completed",
"customer_details": {
"name": "John Doe",
"email": "johndoe@example.com"
},
"configurator_summary": {
"config_id": 123,
"options": {
"color": "red",
"size": "L"
}
},
"configurator_snapshot": "https://cdn.simplio3d.com/orders/107/original/print_snapshot.png",
"configurator_print_map": [
"https://cdn.simplio3d.com/orders/107/original/print_map_1.png"
],
"invoice_url": "https://example.com/invoice/12345",
"order_shopify": "SH123456789",
"created_at": "2024-03-01T10:30:00Z",
"updated_at": "2024-03-02T12:45:00Z"
}GET /orders
GET Endpoint: Fetch All Orders
Endpoint URL
Description
This endpoint retrieves a comprehensive list of all orders in the system, allowing users to manage and review order details efficiently.
Query Parameters
status (optional): Filter orders by their status (e.g.,
pending,completed).limit (optional): Limit the number of orders returned.
offset (optional): Specify the starting point for the list of orders returned.
Headers
Authorization: Bearer token required for authentication.
Response
200 OK: Successfully retrieved the list of orders.
Content: JSON array of order objects, each containing:
order_id: Unique identifier for the order.customer_name: Name of the customer.total_amount: Total amount of the order.status: Current status of the order.created_at: Timestamp of order creation.
Example Request
Example Response
Error Responses
401 Unauthorized: Authentication failed; token missing or invalid.
500 Internal Server Error: An error occurred on the server.
Enter token in format (Bearer <your_token>)
Number of results per page
25Number of page
2Field to sort orders by
created_atSort order (asc or desc)
descPossible values: Filter orders by specific configurator ID
127Filter orders created after this date
2024-01-01Filter orders created before this date
2024-12-31Successful response
Unauthorized
Internal Server Error
GET /api/open-api/v1/orders HTTP/1.1
Host: app.simplio3d.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"configurator": {
"id": 1,
"configurator_name": "Custom 3D Configurator"
}
}
],
"pagination": {
"current_page": 1,
"per_page": 25,
"total": 200,
"last_page": 8,
"next_page_url": "https://api.example.com/orders?page=2",
"prev_page_url": null
}
}Last updated