Creates a new journal entry
curl --request POST \
--url https://api.light.inc/v1/journal-entries \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '
{
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerName": "PRIMARY",
"documentNumber": "<string>",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"valuationDate": "2023-12-25",
"documentDate": "2023-12-25",
"areLinesWithTax": true,
"lines": [
{
"netTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"grossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"taxAmount": {
"amount": 123,
"dcSign": "D"
},
"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",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shouldPost": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerName": "PRIMARY",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"status": "DRAFT",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"documentDate": "2023-12-25",
"valuationDate": "2023-12-25",
"areLinesWithTax": true,
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"journalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"netTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"grossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"taxTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"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,
"dcSign": "D"
},
"totalTaxTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"totalGrossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"multiJournalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
⚠️ This enum is not exhaustive; new values may be added in the future.
PRIMARY, ELIMINATION "USD"
Show child attributes
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, 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 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '
{
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerName": "PRIMARY",
"documentNumber": "<string>",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"valuationDate": "2023-12-25",
"documentDate": "2023-12-25",
"areLinesWithTax": true,
"lines": [
{
"netTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"grossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"taxAmount": {
"amount": 123,
"dcSign": "D"
},
"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",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"businessPartnerName": "<string>",
"businessPartnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shouldPost": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentNumber": "<string>",
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerName": "PRIMARY",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentSequenceId": "<string>",
"status": "DRAFT",
"description": "<string>",
"currency": "USD",
"postingDate": "2023-12-25",
"documentDate": "2023-12-25",
"valuationDate": "2023-12-25",
"areLinesWithTax": true,
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"journalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"netTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"grossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"taxTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"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,
"dcSign": "D"
},
"totalTaxTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"totalGrossTransactionAmount": {
"amount": 123,
"dcSign": "D"
},
"multiJournalEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}