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
Production API Server
https://api.fulfillment.juniperhealth.com
- Sandbox API Server for testinghttps://api.fulfillment.sandbox.juniperhealth.com/products
- Production API Serverhttps://api.fulfillment.juniperhealth.com/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.fulfillment.sandbox.juniperhealth.com/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/products/{productId}
- Production API Serverhttps://api.fulfillment.juniperhealth.com/products/{productId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.fulfillment.sandbox.juniperhealth.com/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. Note: The sum of morning + afternoon + evening + sleep must equal the line item quantity.
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" }