CommercialInvoiceDate Property
Date when the Invoice is created.
Syntax
upsshipintl.getCommercialInvoiceDate([callback]) upsshipintl.setCommercialInvoiceDate( commercialInvoiceDate, [callback])
Default Value
""
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getCommercialInvoiceDate([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setCommercialInvoiceDate([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Date when the Invoice is created. This is optional for Partial Invoice, but required for Invoice form for forward shipments. For shipment with return service, the user input will be ignored, and the property will be blank on the invoice.
If not set, it will default to the ship date. Format is YYYYMMDD.
NOTE: This property is only valid for UPS.
Data Type
String