Create, retrieve, and manage customer orders
Order Fulfillment API (1.0.2)
API for creating/managing supplements orders within the Juniper Health platform.
This API uses OAuth 2.0 Client Credentials flow. To obtain an access token:
Token Endpoints:
- Sandbox:
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token - Production:
https://auth.fulfillment.juniperhealth.com/oauth2/token
Request:
POST /oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRETResponse:
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 3600,
"token_type": "Bearer"
}Include the token in API requests using the Authorization header:
Authorization: Bearer YOUR_ACCESS_TOKENDownload OpenAPI description
Overview
Juniper Health Engineering Team
Languages
Servers
Sandbox API Server for testing
https://api.fulfillment.sandbox.juniperhealth.com/v1
Production API Server
https://api.fulfillment.juniperhealth.com/v1
- Sandbox API Server for testinghttps://api.fulfillment.sandbox.juniperhealth.com/v1/products
- Production API Serverhttps://api.fulfillment.juniperhealth.com/v1/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.fulfillment.sandbox.juniperhealth.com/v1/products?limit=10&cursor=string&direction=next&status=ACTIVE&updatedAfter=2023-10-01&updatedBefore=2023-10-01&search=omega' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "products": [ { … } ], "cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
- Sandbox API Server for testinghttps://api.fulfillment.sandbox.juniperhealth.com/v1/products/{productId}
- Production API Serverhttps://api.fulfillment.juniperhealth.com/v1/products/{productId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.fulfillment.sandbox.juniperhealth.com/v1/products/77123129891 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successfully retrieved product details
Dosage schedule information specifying how many pills to take at each time of day.
Null for external products (powders, liquids, standalone items outside the pill pack). For pack products, the sum of morning + afternoon + evening + sleep must equal the line item quantity.
Physical form of the supplement
Enum"Capsule""Veg Capsule""Tablet""Quick Dissolve Tablet""Powder""Liquid""Serum""Softgel"
Example: "Softgel"
Product certifications and standards
Example: ["kosher","halal","non_gmo","vegan"]
Allergy related information
Example: ["gluten_free","dairy_free","soy_free"]
Current product availability status
Enum"ACTIVE""DRAFT""BACKORDERED""DISCONTINUED"
Example: "ACTIVE"
Response
application/json
{ "id": 77123129891, "name": "Elite EPA", "description": "A comprehensive wellness supplement", "packDescription": "Whole Body Wellness", "price": "0.53", "discountedPrice": "0.48", "external": false, "image": "https://example.com/images/elite-epa.jpg", "recommendedUsage": { "morning": 1, "afternoon": 0, "evening": 1, "sleep": 0 }, "form": "Softgel", "certifications": [ "kosher", "halal", "non_gmo", "vegan" ], "allergens": [ "gluten_free", "dairy_free", "soy_free" ], "supplementFactsPanel": { "servingSize": 2, "type": "softgel", "otherIngredients": [ … ], "ingredientInformation": [ … ], "nutritionInformation": [ … ] }, "status": "ACTIVE", "createdAt": "2023-10-01T17:02:56.866619Z", "updatedAt": "2023-10-01T17:02:56.866619Z" }