Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://api.hatchbuck.com/api/v1/Contact/Order?api_key = XXXX (get API key from your API settings page)
- {
- "marketingOptInInd": true, //required -- true or false
- "firstName": "Mathew", // optional, only used if contact doesn't exist
- "orderType": "Paid", // required, Paid or Refund
- "externalOrderId": "110", // optional, correlates to the order id in your source system
- "emailAddress": "mrhodes@hatchbuck.com", //required, used to find or create contact
- "lastName": "Rhodes", // optional, only used if contact doesn't exist
- "orderLineItem": [ // at least one required, all fields required
- {
- "quantity": 1,
- "pricePerUnit": 19,
- "productName": "[Sample] Roxy, time warp tie dye mini", // system will create product if not found
- "categoryName": "Magento" // system will create category if product not already assigned to one
- }
- ],
- "phones": [ // optional, however all fields required if included, only used when creating contact
- {
- "number": "3148840814",
- "type": "Work" //required, types are Home, Work or Other
- }
- ],
- "status": {
- "name": "Prospect" //required, must be a valid contact status from your company settings
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement