Credit Note Line Items
Create a new Credit Note Line Item
Latest Live API
- Account
- Billing
- Collections
- Customer
- Invoices
- Notifications
- Product
- Quote
- Taxes
- Usage
Version 2024-07-30
- Account
- Billing
- Collections
- Customer
- Invoices
- Invoice Settings
- Invoices
- Invoice Line Items
- Credit Notes
- Credit Note Line Items
- GETList all Credit Note Line Items
- POSTCreate a new Credit Note Line Item
- GETList all Credit Note Line Item Groups
- POSTCreate a new Credit Note Line Item Group
- PUTUpdate a Credit Note Line Item
- DELDelete a Credit Note Line Item
- PUTUpdate a Credit Note Line Item Group
- DELDelete a Credit Note Line Item Group
- GET
- Notifications
- Product
- Quote
- Taxes
- Usage
Credit Note Line Items
Create a new Credit Note Line Item
Create a new Credit Note Line Item
POST
/
credit-notes
/
{creditnote}
/
line-items
curl --request POST \
--url https://eu.sequencehq.com/api/credit-notes/{creditnote}/line-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
]
}'
{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"index": 2,
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"netTotal": "20000.00",
"totalTax": "2000.00",
"grossTotal": "22000.00",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
]
}
Headers
Your API credentials. Eg. Basic {credentials}
.
Use this header to select an API version
Available options:
2024-07-30
Path Parameters
The CreditNote ID
Body
application/json
Response
201
application/json
Created
The response is of type object
.
curl --request POST \
--url https://eu.sequencehq.com/api/credit-notes/{creditnote}/line-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
]
}'
{
"id": "af60cab3-812d-4250-a051-0fb7133a00c7",
"creditNoteId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"groupId": "cd11218d-fa00-4faa-8684-a43113d076a8",
"lineItemId": "af60cab3-812d-4250-a051-0fb7133a00c7",
"title": "Ferraris",
"description": "Red",
"quantity": "2",
"rate": "20000.10",
"taxRate": "0.2",
"index": 2,
"priceId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
"netTotal": "20000.00",
"totalTax": "2000.00",
"grossTotal": "22000.00",
"rateDisplay": "ABSOLUTE",
"externalIds": [
{
"key": "Xero",
"value": "123"
}
]
}