Generic
- Contact
- Company
- User
- Workspace
Crm
- Opportunity
- Pipeline
- Stage
- Engagement
Scheduling
- Event Type
- Slot
- Event
Telephony
- Call
- Call Transcript
Widget
- Card View
Custom
- Fields
Create Invoice Line Item
POST
/
v1
/
resources
/
accountingInvoiceLineItem
const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>',
'Content-Type': 'application/json'
},
body: '{"invoice":{"id":"<string>","object":"resourceRef","model":"<string>","fields":"<any>","rawResource":"<any>","remote":{"id":"<string>"},"createdAt":"<string>","updatedAt":"<string>"},"item":{"id":"<string>","object":"resourceRef","model":"<string>","fields":"<any>","rawResource":"<any>","remote":{"id":"<string>"},"createdAt":"<string>","updatedAt":"<string>"},"description":"<string>","pricePerUnit":1,"quantity":1,"totalAmount":1}'
};
fetch('https://api.runmorph.dev/v1/resources/accountingInvoiceLineItem', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"object": "resourceRef",
"model": "<string>",
"id": "<string>",
"remote": {
"id": "<string>"
}
}
Authorizations
Query Parameters
Body
Response
201
application/json
Created
The response is of type object
.
The response is of type object
.
The response is of type object
.
const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>',
'Content-Type': 'application/json'
},
body: '{"invoice":{"id":"<string>","object":"resourceRef","model":"<string>","fields":"<any>","rawResource":"<any>","remote":{"id":"<string>"},"createdAt":"<string>","updatedAt":"<string>"},"item":{"id":"<string>","object":"resourceRef","model":"<string>","fields":"<any>","rawResource":"<any>","remote":{"id":"<string>"},"createdAt":"<string>","updatedAt":"<string>"},"description":"<string>","pricePerUnit":1,"quantity":1,"totalAmount":1}'
};
fetch('https://api.runmorph.dev/v1/resources/accountingInvoiceLineItem', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
{
"object": "resourceRef",
"model": "<string>",
"id": "<string>",
"remote": {
"id": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.