Place Order#
Order Placement Service
POST https://gateway.groupvan.com/json/federated/v3_1/place_order
Request#
Parameters#
purchase_order_numberstring requiredPurchase order number assigned by the buyer
commentstringOptional comment to be sent to the seller system
order_typeinteger requiredSee Order Type for options.
itemsarray requiredAn array of items to request from the seller system
idstring requiredUnique ID assigned by the seller system
mfr_codestring requiredManufacturer Code
part_numberstring requiredPart Number
location_idstring requiredLocation ID
quantity_orderedfloat requiredQuantity Ordered
vehicle_descriptionstringOptional vehicle description. This is only required if the seller system requires it.
ship_toobjectAn optional object containing ship to information. This is only required if the seller system requires it.
company_namestringCompany Name
first_namestringFirst Name
last_namestringLast Name
titlestringTitle
phonestringPhone Number
faxstringFax Number
emailstringEmail Address
address_1stringAddress Line 1
address_2stringAddress Line 2
citystringCity
country_division_codestringCountry Division Code (State)
country_codestringCountry Code (ISO 3166-1 alpha-2)
postalstringPostal Code
ship_viastringOptional field to specify the shipping method.
Examples#
{
"purchase_order_number": "WND-210108A",
"comment": "optional comment",
"order_type": 1,
"items": [
{
"id": "1",
"mfr_code": "ACD",
"part_number": "PF63E",
"location_id": "Loc0001",
"quantity_ordered": 1,
"vehicle_description": "Toyota Corolla"
},
{
"id": "2",
"mfr_code": "FBO",
"part_number": "5276029",
"location_id": "Loc0001",
"quantity_ordered": 4,
"vehicle_description": "Mazda Miata"
}
],
"ship_to": {
"company_name": "City Automotive",
"first_name": "John",
"last_name": "Doe",
"title": "Service Manager",
"phone": "5555555555",
"fax": "5555555555",
"email": "email@example.com",
"address_1": "123 Main St",
"address_2": "Unit 1",
"city": "Staunton",
"country_division_code": "VA",
"country_code": "US",
"postal": "24401",
}
}
{
"service": "place_order",
"integration": "B2C",
"terminal_id": "optional field",
"purchase_order_number": "WND-210108A",
"comment": "please deliver ASAP",
"order_type": 1,
"items": [
{
"id": "1",
"mfr_code": "ACD",
"part_number": "PF63E",
"location_id": "Loc0001",
"account_id": "987654",
"quantity_ordered": 1,
"vehicle_description": "Toyota Corolla"
},
{
"id": "2",
"mfr_code": "FBO",
"part_number": "5276029",
"location_id": "Loc0001",
"account_id": "987654",
"quantity_ordered": 4,
"vehicle_description": "Mazda Miata"
}
]
}
Schema#
Request JSON Schema
{
"type": "object",
"properties": {
"service": {
"type": "string"
},
"integration": {
"type": "string"
},
"terminal_id": {
"type": "string"
},
"purchase_order_number": {
"type": "string"
},
"comment": {
"type": "string"
},
"order_type": {
"type": "integer"
},
"items": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"mfr_code": {
"type": "string"
},
"part_number": {
"type": "string"
},
"location_id": {
"type": "string"
},
"account_id": {
"type": "string"
},
"member_id": {
"type": "string"
},
"quantity_ordered": {
"type": "float"
},
"vehicle_description": {
"type": "string"
}
},
"required": [
"id",
"mfr_code",
"part_number",
"location_id",
"account_id",
"member_id",
"quantity_ordered"
]
}
]
},
"ship_to": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"company_name": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"title": {
"type": "string"
},
"phone": {
"type": "string"
},
"fax": {
"type": "string"
},
"email": {
"type": "float"
},
"address_1": {
"type": "string"
},
"address_2": {
"type": "string"
},
"city": {
"type": "string"
},
"country_division_code": {
"type": "string"
},
"country_code": {
"type": "string"
},
"postal": {
"type": "string"
}
}
}
]
}
},
"required": [
"service",
"purchase_order_number",
"order_type",
"items"
]
}
Response#
Seller must return the same id as defined by the Buyer system.
Example#
{
"order_number": "ABC1234",
"status_code": 2000,
"comment": "optional human readable comment",
"items": [
{
"id": "1",
"status_code": 1,
"quantity_ordered": 1,
"comment": "optional human readable comment"
},
{
"id": "2",
"status_code": 1,
"quantity_ordered": 1,
"comment": "optional human readable comment"
}
]
}
Schema#
Response JSON Schema
{
"type": "object",
"properties": {
"order_number": {
"type": "string"
},
"status_code": {
"type": "integer"
},
"comment": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status_code": {
"type": "integer"
},
"quantity_ordered": {
"type": "float"
},
"comment": {
"type": "string"
}
},
"required": [
"id",
"status_code",
"quantity_ordered"
]
}
]
}
},
"required": [
"order_number",
"status_code",
"items"
]
}
Tip
comment fields are optional and can by used to return a human readable message to the buyer