Archives the given journal entry. Drafts are archived directly; posted entries are reversed and marked as archived.
curl --request POST \
--url https://api.light.inc/v1/journal-entries/{journalEntryId}/archive \
--header 'Authorization: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"documentDate": "2023-12-25",
"valuationDate": "2023-12-25",
"areLinesWithTax": true,
"failureContext": {
"name": "<string>",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"journalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"netTransactionAmount": {
"amount": 123
},
"grossTransactionAmount": {
"amount": 123
},
"taxTransactionAmount": {
"amount": 123
},
"description": "<string>",
"targetCompanyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerTaxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totalNetTransactionAmount": {
"amount": 123
},
"totalTaxTransactionAmount": {
"amount": 123
},
"totalGrossTransactionAmount": {
"amount": 123
},
"multiJournalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Documentation Index
Fetch the complete documentation index at: https://docs.light.inc/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
default response
⚠️ This enum is not exhaustive; new values may be added in the future.
PRIMARY, ELIMINATION ⚠️ This enum is not exhaustive; new values may be added in the future.
DRAFT, APPROVAL_PENDING, APPROVED, POSTED, PARTIALLY_CLEARED, CLEARED, ARCHIVED "USD"
Failure context when vendor onboarding fails.
Show child attributes
Show child attributes
Custom properties set on the vendor.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
curl --request POST \
--url https://api.light.inc/v1/journal-entries/{journalEntryId}/archive \
--header 'Authorization: <api-key>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"documentDate": "2023-12-25",
"valuationDate": "2023-12-25",
"areLinesWithTax": true,
"failureContext": {
"name": "<string>",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"journalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"netTransactionAmount": {
"amount": 123
},
"grossTransactionAmount": {
"amount": 123
},
"taxTransactionAmount": {
"amount": 123
},
"description": "<string>",
"targetCompanyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerTaxId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"customProperties": [
{
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupInternalName": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalName": "<string>",
"label": "<string>",
"context": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totalNetTransactionAmount": {
"amount": 123
},
"totalTaxTransactionAmount": {
"amount": 123
},
"totalGrossTransactionAmount": {
"amount": 123
},
"multiJournalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}