Last active
July 19, 2017 02:20
-
-
Save mikepaszkiewicz/576bfc5bf337641c762778b98ef581a0 to your computer and use it in GitHub Desktop.
dispatch.orders.post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST 'https://sandbox.tryhabitat.com/api/v1/orders' -H "Content-type: application/json" -d '{ | |
"externalId": 1876, | |
"externalVendorId": 101, | |
"sellerId": "gRWS4txHe3g43AtNm", | |
"method": "Delivery", | |
"deliveryAddress": "2198 N Broad St", | |
"status": "pending_runner", | |
"customer":{ | |
"name": "Tyler Wiest", | |
"phone": "2169052356", | |
"email": "tyler@jarv.us" | |
}, | |
"DaaSType": "cash", | |
"placedAt": "2017-06-28T11:31:13.-14400Z", | |
"expectedAt": "2017-06-28T12:11:13.-14400Z", | |
"plainOrder":[ | |
{ | |
"itemName": "Chicken Teriyaki", | |
"itemCategory": "Chicken Teriyaki", | |
"itemInstructions": "Here are some special instructions.", | |
"itemPrice": 6, | |
"quantity": 2, | |
"modifiersText": [{ | |
"name": "Not Spicy", | |
"category": "Choose your Asian Entree Style", | |
"price": 0 | |
}] | |
}, | |
{ | |
"itemName": "Korean Hoagie", | |
"itemCategory": "Korean Hoagie", | |
"itemInstructions": "", | |
"itemPrice": 6, | |
"quantity": 1, | |
"modifiersText": [] | |
}], | |
"payRef": { | |
"total": 30, | |
"tax": 2, | |
"tip": 0 | |
}, | |
"api_key": "YOUR_API_KEY" | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changes:
isDelivery -> method: 'Pickup' || 'Delivery'
orderType -> DaaSType: credit_card, prepaid, or cash
order -> plainOrder: []
order.modifiers -> plainOrder.modifiersText: []