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/partners/settings
- Production API Serverhttps://api.fulfillment.juniperhealth.com/partners/settings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.fulfillment.sandbox.juniperhealth.com/partners/settings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "2NxK7vPqYtR5mJnLkH3wZcB", "name": "Acme Health", "description": "Leading telehealth provider", "discount": "10%", "discountValue": 0.1, "primaryColor": "#1a73e8", "secondaryColor": "#ffffff", "logo": "https://example.com/logo.png", "phone": "555-123-4567", "supportEmail": "support@partner.com", "website": "https://partner.com", "webhookUrl": "https://partner.com/webhooks/orders", "billingAddressLine1": "123 Main St", "billingAddressLine2": "Suite 100", "billingCity": "San Francisco", "billingState": "CA", "billingPostalCode": "94102", "billingCountry": "US", "createdAt": "2023-10-01T12:00:00Z", "updatedAt": "2023-10-01T12:00:00Z" }
Bodyapplication/jsonrequired
Webhook URL for order status notifications
Example: "https://partner.com/webhooks/orders"
- Sandbox API Server for testinghttps://api.fulfillment.sandbox.juniperhealth.com/partners/settings
- Production API Serverhttps://api.fulfillment.juniperhealth.com/partners/settings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://api.fulfillment.sandbox.juniperhealth.com/partners/settings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"primaryColor": "#1a73e8",
"secondaryColor": "#ffffff",
"logo": "https://example.com/logo.png",
"phone": "555-123-4567",
"supportEmail": "support@partner.com",
"website": "https://partner.com",
"webhookUrl": "https://partner.com/webhooks/orders",
"billingAddressLine1": "123 Main St",
"billingAddressLine2": "Suite 100",
"billingCity": "San Francisco",
"billingState": "CA",
"billingPostalCode": "94102",
"billingCountry": "US"
}'Response
application/json
{ "id": "2NxK7vPqYtR5mJnLkH3wZcB", "name": "Acme Health", "description": "Leading telehealth provider", "discount": "10%", "discountValue": 0.1, "primaryColor": "#1a73e8", "secondaryColor": "#ffffff", "logo": "https://example.com/logo.png", "phone": "555-123-4567", "supportEmail": "support@partner.com", "website": "https://partner.com", "webhookUrl": "https://partner.com/webhooks/orders", "billingAddressLine1": "123 Main St", "billingAddressLine2": "Suite 100", "billingCity": "San Francisco", "billingState": "CA", "billingPostalCode": "94102", "billingCountry": "US", "createdAt": "2023-10-01T12:00:00Z", "updatedAt": "2023-10-01T12:00:00Z" }