LeafLinkLeafLink / Create or Update Order

appKey: leaflink
actionKey: create-or-update-order

Action Inputs

The following parameters are available when configuring this action:
customerId
Customer
Seller's customer id for the company on the buyer side of the order.
string
sellerId
Seller
Seller company id for this order.
string
deliveryPreferences
Delivery Preferences
Customer delivery preferences
string | undefined
discount
Discount
Discount value applied to the order.
string | undefined
discountType
Discount Type
The type of discount. Accepted values are:
- %
- $
string | undefined
externalAccountId
External Account Id
External account id.
string | undefined
externalIdSeller
External Id Seller
Number assigned to the order by the seller company.
string | undefined
facilityId
Facility Id
The id of the facility fulfilling the order.
string | undefined
filter
Search by
Required if the find method is filter. The filter to search by. Accepted values are:
- short_id
string | undefined
filterValue
Search value
Required if the contactFindMethod is filter. The filter value to search by.
string | undefined
findMethod
Find Method
The method to use to find the order. Accepted values are: filter | select
('filter' | 'select') | undefined
internalNotes
Internal Notes
Internal notes for the order.
string | undefined
lineItems
Line Items
| (
| string
| Array<{
product: string
quantity: string
salePriceAmount: string
salePriceCurrency: string
orderUnitPriceAmount: string
orderUnitPriceCurrency: string
notes?: string
isSample?: boolean
unitMultiplier?: string
isMedicalLineItem?: boolean
isPacked?: boolean
packedAt?: string
packedBy?: string
position?: string
batch?: string
wholesalePriceAmount?: string
}>
)
| undefined
notes
Notes
Notes for the order.
string | undefined
orderId
Order Id
If using a filter find method, the id of the order to update.
string | undefined
paid
Paid
Whether the order has been paid for.
boolean | undefined
paymentTerm
Payment Term
Payment term for the order.
string | undefined
salesReps
Sales Reps
(string | Array<string>) | undefined
shippingChargeAmount
Shipping Charge Amount
The shipping charge amount for the order.
string | undefined
shippingChargeCurrency
Shipping Charge Currency
The shipping charge currency for the order.
string | undefined
status
Status
The status of the order. Accepted values are:
- Draft
- Submitted
string | undefined
taxAmount
Tax Amount
The tax amount for the order.
string | undefined
taxType
Tax Type
The type of tax. Accepted values are:
- %
- $
string | undefined
updateExistingOrder
Update Existing Order
Select to update an existing order.
If `true`, will update an existing order using the `findMethod` and its relevant configuration.
boolean | undefined