Overview
Excerpt |
---|
This method returns a list of Prebooks with their corresponding details. |
Request
https://api.kometsales.com/api/prebook.details.list
- Method: GET
- Content-Type: URL Params
Input parameters:
- authenticationToken (required): Komet Sales security token.
- date (required) (date): prebook truck date (date format YYYY-MM-DD).
*Optional if the shipDateFrom and shipDateTo are entered. - prebook (optional)(integer:10): prebook number.
- customer (optional)(string:200): customer name or code. You can obtain this value from the customer.list API method.
- customerId (optional)(integer:20): customer Komet Sales internal ID. You can obtain this value from the customer.list API method.
- carrierName (optional) (string:200): carrier name.
- carrierId (optional)(integer:20): carrier ID. You can obtain this value from the carrier.list API method.
vendorShipDateFrom (optional) (date): the ship date from the vendor. (date format YYYY-MM-DD).
vendorShipDateTo (optional) (date): the ship date from the vendor. (date format YYYY-MM-DD).
*The date range between shipDateFrom and shipDateFrom must not exceed 7 days.- salesPersonId (optional)(integer:20): customer's sales person ID.
- soNumber (optional)(integer:20): standing order number.
- customerPONumber (string)(integer:20): customer PO number.
- locationId (optional)(integer:20): location Komet Sales internal ID.
- brandId (optional)(integer:20): vendor Komet Sales internal brand ID.
Filtering by Prebook, date, customerId, carrierId, salesPersonId,locationId, brandId, soNumber and customerPONumber uses an exact match.
Filtering by customer and carrier uses a "LIKE" expression.
Filters are not case sensitive.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
https://api.kometsales.com/api/prebook.details.list?authenticationToken=token_info_goes_here&date=2015-02-10 |
Response
Output:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"message": "OK",
"status": 1,
"prebooks": [
{
"id": 1927173,
"number": "13010",
"customerName": "AB Flower Shop",
"customerCode": "34325",
"customerId": 34325,
"shipName":"Store 1",
"shipCity":"Miami",
"shipState":"FL",
"shipAddress":"Street 21 Av 90",
"shipZipCode":"32009",
"shipCountry":"USA",
"details": [
{
"prebookItemId": 24243,
"breakdowns": [],
"vendorName": "Flores Capiro",
"boxType": "HB",
"unitType": "Stem",
"productDescription": "Combos Multiple Colors Rose Combo1 Multiple Grades",
"stemsBunch": 12,
"unitPrice": "1.250",
"vendorId": 6320,
"brandId": 2,
"brandName": "Demo Brand",
"units": 240,
"productId": 178172,
"totalUnits": 2400,
"bunches": 20,
"totalBoxes": 10,
"totalPrice": "3,000.00"
},
{
"prebookItemId": 24244,
"breakdowns": [],
"vendorName": "Exportadora de Flores",
"boxType": "HB",
"productDescription": "Carnation Assorted Select",
"stemsBunch": 20,
"unitType": "Bunch",
"unitPrice": "1.050",
"vendorId": 17684,
"units": 18,
"productId": 276277,
"totalUnits": 180,
"bunches": 18,
"totalBoxes": 10,
"totalPrice": "189.00"
},
{
"prebookItemId": 24246,
"breakdowns": [],
"vendorName": "Flores del Este",
"boxType": "HB",
"productDescription": "Lilies Assorted Oriental 2 Blooms",
"stemsBunch": 5,
"unitType": "Bunch",
"unitPrice": "1.250",
"vendorId": 6321,
"units": 25,
"productId": 139103,
"totalUnits": 250,
"bunches": 25,
"totalBoxes": 10,
"totalPrice": "312.50"
}
],
"carrierId": 1207,
"shipVia": "Warehouse",
"carrierName": "American Airlines",
"truckDate": "2015-02-10",
"type": "P",
"totalPrice": "3,501.50"
},
{
"id": 1949612,
"number": "13949",
"customerName": "Eric's Flowers",
"customerCode": "6529",
"customerId": 6529,
"shipName":"Store 2",
"shipCity":"Miami",
"shipState":"FL",
"shipAddress":"Street 15 Av 80",
"shipZipCode":"32010",
"shipCountry":"USA",
"details": [
{
"prebookItemId": 24912,
"breakdowns": [],
"vendorName": "Flores Capiro",
"boxType": "HB",
"unitType": "Bunch",
"productDescription": "Pom Button Green Athos 70 Cm",
"stemsBunch": 10,
"unitPrice": "1.650",
"vendorId": 6320,
"brandId": 2,
"brandName": "Demo Brand",
"units": 24,
"productId": 139478,
"totalUnits": 336,
"bunches": 24,
"totalBoxes": 14,
"totalPrice": "554.40"
}
],
"carrierId": 1204,
"shipVia": "Warehouse",
"carrierName": "Armellini",
"truckDate": "2015-02-10",
"type": "S",
"totalPrice": "554.40"
}
]
} |
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|