Create an invoice
POST/accounting/{connection_id}/invoice
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)
due_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
paid_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
refunded_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
cancelled_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
total_amountnumber
paid_amountnumber
refund_amountnumber
tax_amountnumber
discount_amountnumber
balance_amountnumber
invoice_numberstring
External identifier (ie. reference) for this invoice
referencestring
contact_idstring
(reference to AccountingContact)
currencystring
notesstring
refund_reasonstring
urlstring
The public URL for the invoice to send to a customer to view or pay.
payment_collection_method enum
Valid values:
"send_invoice"
"charge_automatically"
When set to charging_automatically, an automated attempt will occur to pay this invoice using the default payment source attached to the contactcustomer. When set to send_invoice, an will email will be sent with this invoice to the contact/customer with payment instructions.
type enum
Valid values:
"BILL"
"INVOICE"
"CREDITMEMO"
@deprecated; for bills, use AccountingBill instead
sendboolean
organization_idstring
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
due_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
paid_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
refunded_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
cancelled_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
posted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
total_amountnumber
paid_amountnumber
refund_amountnumber
tax_amountnumber
discount_amountnumber
balance_amountnumber
invoice_numberstring
External identifier (ie. reference) for this invoice
referencestring
contact_idstring
(reference to AccountingContact)
currencystring
notesstring
refund_reasonstring
urlstring
The public URL for the invoice to send to a customer to view or pay.
payment_collection_method enum
Valid values:
"send_invoice"
"charge_automatically"
When set to charging_automatically, an automated attempt will occur to pay this invoice using the default payment source attached to the contactcustomer. When set to send_invoice, an will email will be sent with this invoice to the contact/customer with payment instructions.
type enum
Valid values:
"BILL"
"INVOICE"
"CREDITMEMO"
@deprecated; for bills, use AccountingBill instead
sendboolean
organization_idstring
const options = {
method: 'POST',
url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/invoice',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know