How Can We Help?
Place Order Transaction
The Place Order is used to send an order (the contents of the shopping cart) to the Group Member. Note that if multiple locations are designated in the cart, a separate order will be placed for each location. The request and response JSON strings are defined below.
Request JSON Example (Version 3.0)
The following is an example of the JSON string that will be posted
{
"place_order": {
"version": "3.0",
"integration_type": "FLK",
"member_id": "###",
"account_id": "######",
"location_id": "STN",
"display_name": "Display Name",
"first_name": "Display",
"last_name": "Name",
"city": "Waynesboro",
"state": "VA",
"street": "31 Baxter Ct",
"zip": "22980",
"country_code": "us",
"purchase_order_number": "job1234",
"order_number": "JTest16",
"order_type": "delivery",
"payment_details": {
"payment_status": "paid",
"payment_type": "phone",
"sales_tax": 4.26,
"shipping": 0,
"items_subtotal": 42.61,
"total": 46.87
},
"contact_methods": [
{
"contact_method_id": 1,
"type": "phone",
"label": "mobile",
"uri": "555-885-6679"
},
{
"contact_method_id": 2,
"type": "email",
"label": "personal",
"uri": "smccoy93828@gmail.com"
}
],
"preferred_contact_method": 1,
"delivery_details": {
"ship_to": {
"name": "Stella McCoy",
"company_name": "",
"city": "Staunton",
"state": "VA",
"street": "1257 Vandole St",
"zip": "24401",
"country": "USA",
"country_code": "us"
},
"ship_method": {
"method": "In Store Pickup",
"service_level": "premium"
}
},
"items": [
{
"item_id": 1,
"mfr_code": "HAS",
"part_number": "LF115",
"list": 7.8,
"sell": 3.25,
"core": 0,
"quantity_ordered": 1,
"base_vehicle_id": 8074,
"vehicle_description": "1996 Toyota Land Cruiser"
},
{
"item_id": 2,
"mfr_code": "FEF",
"part_number": "LF115F",
"list": 5,
"sell": 1.77,
"core": 0,
"quantity_ordered": 1,
"base_vehicle_id": 8074,
"vehicle_description": "1996 Toyota Land Cruiser"
}
]
}
}
Response JSON Example (Version 3.0)
The following is an example of the JSON string to be returned
{
"place_order_response": {
"version": "3.0",
"integration_type": "FLK",
"member_id": "###",
"account_id": "######",
"status": "success",
"error_description": "",
"order_number": "987654",
"items": [
{
"item_id": 1,
"status": "success",
"mfr_code": "HAS",
"part_number": "LF115",
"quantity_ordered": 1,
"comment": ""
},
{
"item_id": 2,
"status": "backordered",
"mfr_code": "FEF",
"part_number": "LF115F",
"quantity_ordered": 1,
"comment": "This part is backordered. Please call if you wish to cancel."
}
]
}
}