API for managing healthcare product orders and inventory within the Juniper Health network.
- Cancel an Order
Order Fulfillment API (1.0.1)
https://api.fulfillment.sandbox.juniperhealth.com/v1/
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token/
https://api.fulfillment.juniperhealth.com/v1/
https://auth.fulfillment.juniperhealth.com/oauth2/token/
Order details to be created in the system
Customer information for the order
Physical address information
Secondary address line (optional)
Products included in the order
Description of the product packaging
Shipping method for the order
- Sandbox API Server for testing
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders
- Sandbox Auth Server for testing
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token/orders
- Production API Server
https://api.fulfillment.juniperhealth.com/v1/orders
- Production Auth Server
https://auth.fulfillment.juniperhealth.com/oauth2/token/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"customer": {
"sourceId": "1234567890",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "1234567890",
"address": {
"line1": "437 Lytton",
"line2": "Suite 100",
"city": "Palo Alto",
"state": "CA",
"zip": "94301"
}
},
"daysSupply": 30,
"lineItems": [
{
"productId": 77123129891,
"quantity": 2,
"packDescription": "Whole Body Wellness",
"administration": {
"morning": 1,
"afternoon": 0,
"evening": 1,
"sleep": 0
}
}
],
"shippingMethod": "STANDARD",
"orderType": "ONE_TIME"
}'Order successfully created
Order type (one-time or subscription)
Current status of the order
Total for handling fees on external products. Each external item has a $5 handling fee.
Additional discount as for purchasing a days supply over the specified volume discount limits.
{ "id": "2vSGym0bH8qVEwCIGlyFoRgJq1A", "discount": "10%", "daysSupply": 30, "orderType": "SUBSCRIPTION", "shippingMethod": "STANDARD", "status": "CREATED", "fulfillmentInfo": { "carrier": "UPS", "trackingNumber": "1Z9999999999999999" }, "lineItems": [ { … } ], "customer": { "sourceId": "1234567890", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phone": "1234567890", "address": { … } }, "subtotalPrice": "30.00", "totalDiscount": "27.00", "totalFees": "5.00", "totalShipping": "9.99", "totalVolumeDiscount": "12.10", "totalPrice": "36.99", "createdAt": "2023-10-01T12:00:00Z", "updatedAt": "2023-10-01T12:00:00Z" }
- Sandbox API Server for testing
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders
- Sandbox Auth Server for testing
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token/orders
- Production API Server
https://api.fulfillment.juniperhealth.com/v1/orders
- Production Auth Server
https://auth.fulfillment.juniperhealth.com/oauth2/token/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.fulfillment.sandbox.juniperhealth.com/v1/orders?limit=10&cursor=string&direction=next&status=CREATED' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "orders": [ { … } ], "cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
- Sandbox API Server for testing
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders/{orderId}
- Sandbox Auth Server for testing
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token/orders/{orderId}
- Production API Server
https://api.fulfillment.juniperhealth.com/v1/orders/{orderId}
- Production Auth Server
https://auth.fulfillment.juniperhealth.com/oauth2/token/orders/{orderId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders/77123129891 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successfully retrieved order details
Order type (one-time or subscription)
Current status of the order
Total for handling fees on external products. Each external item has a $5 handling fee.
Additional discount as for purchasing a days supply over the specified volume discount limits.
{ "id": "2vSGym0bH8qVEwCIGlyFoRgJq1A", "discount": "10%", "daysSupply": 30, "orderType": "SUBSCRIPTION", "shippingMethod": "STANDARD", "status": "CREATED", "fulfillmentInfo": { "carrier": "UPS", "trackingNumber": "1Z9999999999999999" }, "lineItems": [ { … } ], "customer": { "sourceId": "1234567890", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com", "phone": "1234567890", "address": { … } }, "subtotalPrice": "30.00", "totalDiscount": "27.00", "totalFees": "5.00", "totalShipping": "9.99", "totalVolumeDiscount": "12.10", "totalPrice": "36.99", "createdAt": "2023-10-01T12:00:00Z", "updatedAt": "2023-10-01T12:00:00Z" }
- Sandbox API Server for testing
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders/{orderId}/cancel
- Sandbox Auth Server for testing
https://auth.fulfillment.sandbox.juniperhealth.com/oauth2/token/orders/{orderId}/cancel
- Production API Server
https://api.fulfillment.juniperhealth.com/v1/orders/{orderId}/cancel
- Production Auth Server
https://auth.fulfillment.juniperhealth.com/oauth2/token/orders/{orderId}/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.fulfillment.sandbox.juniperhealth.com/v1/orders/2vTgd30JFgnwLrgb383PcV9Rken/cancel \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "order_id": "2vTYQiGzufR4cn1cloW97DtSOYF", "status": "Cancelled" }