Excerpt | ||
---|---|---|
Use this method to get a detailed list of Invoices within a date range.
|
Info |
---|
The method can retrieve a maximum of 10,000 boxes, and the request's maximum date range is six months. |
Table of Contents
Table of Contents | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
You can send parameters such as the status
, customer
, customerId
and product
in order to filter the results.
When you use filters, take the following statements into account:
Filtering by
status
,carrierId
orcustomerId
the system uses an exact match.Filtering by
customer
andproduct
uses a "LIKE" expression.Filters are not case-sensitive.
Request
URL: https://api.kometsales.com/api/invoice.details.list
Method: GET
Content-Type: URL Parameters
Input parameters
authenticationToken (required)(string:50)
Komet Sales security token.
orderDate (required)(date)
Shipping date.
You can also use orderDateFrom
, orderDateTo
, order
or orderId
instead of this field.
Date format: YYYY-MM-DD
orderDateFrom (optional)(date)
Shipping date from.
The specified range must not exceed four days.
Date format: YYYY-MM-DD
orderDateTo (optional)(date)
Shipping date to.
The specified date range must not exceed four days.
Date format: YYYY-MM-DD
status (optional)(integer:1)
Order status.
If you leave this field empty, the system will return every order regardless of it’s status from the specified date range in orderDate
.
Valid values: 0 = Pending Approval | 1 = Confirmed
customer (optional)(string:200)
Customer’s name or code.
You can get this value from the customer.list API method.
customerId (optional)(integer:20)
Komet Sales internal Customer ID.
You can get this value from the customer.list API method.
carrierName (optional)(string:200)
Carrier name.
carrierId (optional)(integer:20)
Carrier ID.
You can get this value from the carrier.list API method.
product (optional)(string:200)
Product description.
order (optional)(integer:10)
Order number.
orderId (optional)(integer:10)
Komet Sales internal Order ID.
locationId (optional)(integer:20)
Komet Sales internal Location ID.
You can get this value from the location.list API method.
Only applies to Multi-Location Companies.
locationIds (optional)(integer:20)
List of Location IDs. Separate each ID with a comma.
You can get these values from the location.list API method.
Only applies to Multi-Location Companies.
updatedAsOf (optional)(datetime)
Return only orders that were updated from a specific date.
Date format: YYYY-MM-DD hh:mm:ss
Time must be in the GMT time zone.
itemType (optional)(string:3)
Item type.
If you don’t send this parameter, the system will only return boxes and not units.
Valid values: box = Boxes | UN = Units | ALL = Every item
excludeCustomerIds (optional)(string:20)
List of Customer IDs that you want to exclude from the results.
excludeTransfer (optional)(boolean)
List only the header of transfer orders without details.
Valid values: 1 = Yes | 0 = Include all orders
Default is zero.
externalSystemSynced (optional)(boolean)
Include only orders according to their synchronization status.
Valid values: 1 = Synchronized orders | 0 = Pending Synchronization
excludeBoxesInfo (optional)(boolean)
Exclude the boxes
array from the response.
Valid values: 1 = Yes | 0 = No
You can increase performance by excluding this array.
excludeBreakdownInfo (optional)(boolean)
Exclude the breakdown
array from the response.
Valid values: 1 = Yes | 0 = No
You can increase performance by excluding this array.
Code Block | ||
---|---|---|
| ||
https://api.kometsales.com/api/invoice.details.list? authenticationToken=YOUR_TOKEN_HERE&orderDate=2018-03-26&itemType=ALL |
Response
status (integer:1)
Transaction status.
Valid values: 1 = Success | 0 = Failure
message (string:500)
Transaction status description.
invoices (array)
An array containing Invoices.
id (integer:20)
Komet Sales internal Invoice ID.
number (integer:10)
Invoice number.
customerId (integer:20)
Komet Sales internal Customer ID.
customerName (string:200)
Customer name.
customerCode (string:20)
Customer code.
billCity (string:200)
Billing address city.
billState (string:200)
Billing address state.
billAddress (string:200):
Billing address street.
billZipCode (string:10)
Billing address ZIP code.
billCountry (string:200)
Billing address country.
orderRef (string:20)
Order reference number.
shipName (string:200)
Ship To name.
shipCity (string:200)
Ship To address city.
shipState (string:200)
Ship To address State.
shipToCode (integer)
The code of the selected Ship To address.
shipAddress (string:200)
Ship To address street.
shipZipCode (string:10)
Ship To address zip code.
shipCountry (string:200)
Ship To address country.
shipDate (date)
Order shipping date.
Date format: YYYY-MM-DD
carrierId (integer:20)
Komet Sales internal Carrier ID.
carrierName (string:200)
Carrier name.
carrierCode (string:20)
Carrier code.
salesPersonId (integer:20)
Komet Sales internal Salesperson ID.
salesPersonName (string:200)
Salesperson name.
locationName(string:200)
Location name.
locationId (integer:20)
Komet Sales internal Location ID.
shipToID (integer)
The ID of the selected Ship To address.
mainLocationName (string:200)
Main location name.
mainLocationId (integer:20)
Komet Sales internal Main Location ID.
customerPONumber (string:20)
Customer PO#.
totalBoxes (integer:10)
Total boxes.
subtotal (decimal:10,2)
Total of the order.
This amount does not include Additional Charges or taxes.
additionalCharges (decimal:10,2)
Total additional charges.
additionalChargesDetails (array)
An array containing additional charges in the order.
name (string:200)
Additional charge name.
amount (decimal:10,2)
Additional charge amount.
accountingCode (string:20)
Additional charge accounting code.
taxes (decimal:10,2)
Total taxes.
taxesDetails (array)
An array containing taxes in the order.
name (string:200)
Name of the tax.
percentage (decimal:10,2)
Current tax percentage.
accountingCode (string:20)
Tax accounting code.
amount (decimal: 10,2)
Total tax amount.
total (decimal:10,2)
Order total.
Calculated with subtotal
+ additionalCharges
+ taxes
status (string:20)
Order status.
Valid values: Draft, Pending Approval, Confirmed
confirmedOn (datetime)
Date and time when the order was confirmed.
Date format: YYYY-MM-DD'T'hh:mm:ss
Time is in the GMT time zone.
countConfirmed (integer:10)
Number of times that the order has been confirmed.
isEcommerce (string:3)
If the order comes from the E-Commerce.
Valid values: Yes or No
externalSystemsSynced (array)
An array of external systems that have been marked as synced.
externalSystemId (internal:10)
External system ID
syncDate (date)
Date and time when the order was synced.
Time is in the UTC time zone.
updatedOn (datetime)
Last time when the order was updated.
Date format: YYYY-MM-DD'T'hh:mm:ss
Time is in the GMT time zone.
warehouseInstructions(string: 200)
Order notes and instructions for the warehouse.
invoiceNotes (string:200)
Order notes for the customer that appear on the Invoice.
totalCost (decimal:10,2)
Total cost of the order.
This includes cost of the items in boxes, units and hard goods.
totalLandedCost (decimal:10,2)
Total landed cost of the order.
This total includes landed cost of the items in boxes, units and hard goods.
details (array)
An array containing order details.
detailId (integer:20)
Komet Sales internal Order Line ID.
awb (string:20)
AWB number or shipment reference number.
ref (string:20)
Product line reference number.
productId (integer:20)
Product Komet Sales internal ID.
productDescription (string:200)
Product description.
productCode (string:20)
Product code, also known as Product Legacy Code.
categoryAccountingCode (string:20)
Category accounting code.
growerId (integer:20)
Komet Sales internal Grower or Vendor ID.
growerCode (string:50)
Grower or Vendor code.
growerName (string:200)
Grower or Vendor name.
totalBoxes (integer:10)
Number of boxes in the product line.
boxTypeId (integer:20)
Komet Sales internal Box Typed ID.
boxType (string:3)
Box type code.
units (integer:10)
Units per Box.
unitType (string:10)
Unit type.
Valid values: Stem or Bunch
totalUnits (integer:10)
Total units in the product line.
bunchesBox (integer:10)
Bunches per box.
stemsBunch (integer:10)
Stems per Bunch.
markCode (string:50)
Mark code.
notes (string:200)
Additional notes or label instructions.
unitPrice (decimal:10,2)
Unit price.
amount (decimal:10,2)
The amount of the product line.
Unit Price times total units.
salesType (string:1)
Sales type.
Valid values: M = Open Market | P = Prebook | S = Standing Order | L = Local
flowerCost (decimal:10,5)
Unit flower cost.
freightCost (decimal:10,5)
Freight cost per unit.
handling (decimal:10,5)
Handling cost per unit.
duties (decimal:10,5)
Duties cost per unit.
otherCharges (decimal:10,5)
Other cost charges per unit.
landedCost (decimal:10,5)
Landed cost per unit.
prebookNumber (integer:10)
Prebook number associated to the invoice.
productAlias (string: 200)
Product alias specified by the salesperson.
salesChannel (integer:1)
Sales channel.
Valid values: 0 = Web App. | 1 = Mobile | 2 = K2K
aging (integer: 5)
Number of days that represents the age of the product based on the ship date of the order.
breakdowns (array)
An array containing breakdown information.
detailId (integer:20)
Komet Sales internal Order Line ID.
productId (integer:20)
Komet Sales internal Product ID.
productDescription (string:200)
Product description.
stemsBunch (integer:10)
Stems per bunch.
bunches (integer:10)
Number of bunches.
price (decimal:10,2)
Unit price.
boxes (array)
An array containing boxes.
detailId (integer:20)
Komet Sales Internal Order Line ID
boxCode (string:10)
Box code or box number.
inventoryLineId (integer:20)
Inventory line ID.
lotNumber (string)
Lot number.
position (string:5)
Rack position or location.
statusId (integer:20)
Komet Sales internal Status ID.
statusName (string:20)
Status name.
Valid values: Farm Shipped, Received Warehouse, or Shipped Warehouse
detailsUnits (array)
An array containing Units details.
detailId (integer:20)
Komet Sales Internal Unit Line ID.
awb (string:20)
AWB number.
productId (integer:20)
Komet Sales internal Product ID.
productDescription (string:200)
Product description.
productCode (string:20)
Product code, also known as Product Legacy Code.
categoryAccountingCode (string:20)
Category accounting code.
growerId (integer:20)
Komet Sales internal Grower or Vendor ID.
growerCode (string:50)
Grower or Vendor code.
growerName (string:200)
Grower or Vendor name.
totalUnits (array)
Number of Units in the product line.
stemsBunch (integer:10)
Stems per Bunch.
unitType (string:10)
Stem or Bunch.
totalUnits (integer:10)
Total units in the product line.
unitPrice (decimal:10,2)
Unit price.
amount (decimal:10,2)
The amount of the product line.
Calculated with: unitPrice
x totalUnits
orderSource (string)
Order Source. It will only be populated if the order has an added source.
markCode (string:50)
Mark code.
notes (string:200)
Additional notes or label instructions.
flowerCost (decimal:10,50)
Flower cost per Unit.
freightCost (decimal:10,5)
Freight cost per unit.
handling (decimal:10,5)
Handling cost per unit.
duties (decimal:10,5)
Duties cost per unit.
otherCharges (decimal:10,5)
Other cost charges per unit.
landedCost (decimal:10,5)
Landed cost per unit.
productAlias (string: 200)
Product alias specified by the salesperson.
Code Block |
---|
{
"invoices": [
{
"billState": "FL",
"customerCode": "3908",
"taxes": "0.00",
"shipName": "Toronto",
"totalBoxes": 2,
"externalSystemsSynced": [],
"createdOn": "2024-06-04T15:49:16",
"shipCountry": "Canada",
"number": "4837",
"total": "119.31",
"carrierName": "Armellini",
"billZipCode": "33015",
"locationId": 2,
"shipToCode": "7475",
"customerId": "29687",
"salesPersonName": "Bill Doran Multi",
"details": [
{
"flowerCost": "0.35000",
"stemsBunch": 25,
"notes": "",
"color": "Red",
"otherCharges": "0.01200",
"breakdowns": [],
"detailId": 3555380,
"units": 100,
"totalBoxes": 2,
"salesChannel": 0,
"unitType": "Stem",
"ref": "",
"variety": "",
"boxTypeId": 1057,
"growerName": "Connectaflor",
"productDescription": "Roses Red 50 Cm",
"salesType": "M",
"unitPrice": "0.528",
"boxes": [
{
"statusId": 1,
"statusName": "Farm Shipped",
"detailId": 3555380,
"inventoryLineId": 3303323,
"lotNumber": "12287",
"boxCode": "MI12507069"
},
{
"statusId": 1,
"statusName": "Farm Shipped",
"detailId": 3555380,
"inventoryLineId": 3303323,
"lotNumber": "12287",
"boxCode": "MI12507070"
}
],
"amount": "105.60",
"orderSource": "Order Source 2",
"growerCode": "E680",
"landedCost": "0.42275",
"productId": 330081,
"boxType": "HB",
"awb": "777-7777-7777",
"productAlias": "",
"totalUnits": 200,
"markCode": "",
"grade": "50 Cm",
"bunchesBox": 4,
"prebookNumber": "",
"handling": "0.02000",
"freightCost": "0.02500",
"aging": "8",
"category": "Roses",
"growerId": 25245,
"totalCost": "0.00000",
"duties": "0.01575"
}
],
"id": 1875845,
"shipZipCode": "M5J 0A8 ",
"salesPersonId": "136",
"shipCity": "Toronto",
"isEcommerce": "No",
"detailsUnits": [],
"locationName": "Rockford",
"additionalChargesDetails": [
{
"amount": 3.15,
"accountingCode": "",
"name": "Duties"
},
{
"amount": 10.56,
"accountingCode": "",
"name": "IVA"
}
],
"taxesDetails": [],
"mainLocationId": 1,
"updatedOn": "2024-06-04T19:50:11",
"mainLocationName": "Bill Doran Company",
"billCity": "Hialeah",
"shipDate": "2024-06-04",
"customerName": "Any Flower For You LLC",
"warehouseInstructions": "",
"shipAddress": "120 Bremner Blvd., Suite 800",
"invoiceNotes": "",
"additionalCharges": "13.71",
"orderRef": "",
"billAddress": "16901 NW 75 Ct",
"customerPONumber": "",
"subtotal": "105.60",
"carrierCode": "AR",
"shipState": "ON",
"shipToId": "20281",
"carrierId": 1357,
"totalLandedCost": "84.55",
"totalCost": "70.00",
"status": "Pending"
}
],
"message": "OK",
"status": 1
} |
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|