Create a salesorder
POST/accounting/{connection_id}/salesorder
Parameters
fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
Payload
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
contact_idstring
Customer, Supplier (reference to AccountingContact)
account_idstring
(reference to AccountingAccount)
currencystring
total_amountnumber
sales_channelstring
organization_idstring
category_idsstring array
(reference to AccountingCategory)
order_numberstring
human-facing receipt/ticket/check number, distinct from id
location_idstring
store/site; reference to a commerce_location or hris_location
employee_user_idstring
selling/serving HR employee (server, cashier) (reference to HrisEmployee)
device_idstring
POS register/terminal/device (HRIS Device)
guest_countnumber
subtotal_amountnumber
pre-tax, pre-tip amount
tax_amountnumber
discount_amountnumber
tip_amountnumber
service_charge_amountnumber
refunded_amountnumber
closed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
subscription_idstring
payment_subscription that generated this order, if recurring
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
contact_idstring
Customer, Supplier (reference to AccountingContact)
account_idstring
(reference to AccountingAccount)
currencystring
total_amountnumber
sales_channelstring
organization_idstring
category_idsstring array
(reference to AccountingCategory)
order_numberstring
human-facing receipt/ticket/check number, distinct from id
location_idstring
store/site; reference to a commerce_location or hris_location
employee_user_idstring
selling/serving HR employee (server, cashier) (reference to HrisEmployee)
device_idstring
POS register/terminal/device (HRIS Device)
guest_countnumber
subtotal_amountnumber
pre-tax, pre-tip amount
tax_amountnumber
discount_amountnumber
tip_amountnumber
service_charge_amountnumber
refunded_amountnumber
closed_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
subscription_idstring
payment_subscription that generated this order, if recurring
const options = {
method: 'POST',
url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/salesorder',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know