curl --request POST \
--url https://api.light.inc/rest/ext/v1/invoice-payables/{invoicePayableId}/decline \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"note": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "VENDOR_INVOICE_METADATA"
},
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "INIT",
"failureReason": "EMAIL_NOT_ALLOWED",
"failureContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"warningContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"approvalNote": "<string>",
"cancellationReason": "<string>",
"payeeName": "<string>",
"payeeIban": "<string>",
"payeeBban": "<string>",
"payeeBic": "<string>",
"payeeBankCode": "<string>",
"payeeSwedishBankgiroNumber": "<string>",
"payeeCountry": "UNDEFINED",
"payeeAddress": "<string>",
"payeeZipcode": "<string>",
"payeeBankName": "<string>",
"payeeBankCountry": "UNDEFINED",
"payeeBankAddress": "<string>",
"payeeBankZipcode": "<string>",
"payeeCity": "<string>",
"payeeBankCity": "<string>",
"vendorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorDetailsOcr": {
"avatarUrl": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": {
"countryCode": "UNDEFINED",
"localNumber": "<string>"
},
"website": "<string>",
"country": "UNDEFINED",
"city": "<string>",
"address": "<string>",
"zipcode": "<string>",
"bankAccountNumber": "<string>",
"bankAccountBic": "<string>",
"domesticBankAccountNumber": "<string>",
"domesticBankAccountCode": "<string>",
"vatId": "<string>"
},
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"amount": 123,
"currency": "USD",
"description": "<string>",
"senderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiNumber": "<string>",
"norKidReference": "<string>",
"paymentAt": "2023-11-07T05:31:56Z",
"ocrCompletedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"issuedDate": "2023-12-25",
"dueDate": "2023-12-25",
"invoiceCreatedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"purchaseOrderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineItemsIncludeTax": true,
"localCurrencyFxRate": 123,
"groupCurrencyFxRate": 123,
"lineItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "REIMBURSEMENT"
},
"amount": 123,
"netAmount": 123,
"description": "<string>",
"taxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxAmount": 123,
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shouldAmortize": true,
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25",
"amortizationScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customPropertiesOld": {
"items": {}
},
"aiValueSuggestions": [
{
"field": "<string>",
"fieldValues": [
"<string>"
],
"reasoning": "<string>"
}
],
"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"
}
],
"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"
}
]
}
],
"paymentPausedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentPausedAt": "2023-11-07T05:31:56Z",
"senderEmail": "<string>",
"documentName": "<string>"
}
Declines invoice payable
curl --request POST \
--url https://api.light.inc/rest/ext/v1/invoice-payables/{invoicePayableId}/decline \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"note": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "VENDOR_INVOICE_METADATA"
},
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "INIT",
"failureReason": "EMAIL_NOT_ALLOWED",
"failureContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"warningContext": {
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"clientMessage": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
],
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"suppressed": [
{
"stackTrace": [
{
"classLoaderName": "<string>",
"moduleName": "<string>",
"moduleVersion": "<string>",
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"nativeMethod": true,
"className": "<string>"
}
],
"message": "<string>",
"localizedMessage": "<string>"
}
],
"localizedMessage": "<string>",
"name": "<string>"
},
"approvalNote": "<string>",
"cancellationReason": "<string>",
"payeeName": "<string>",
"payeeIban": "<string>",
"payeeBban": "<string>",
"payeeBic": "<string>",
"payeeBankCode": "<string>",
"payeeSwedishBankgiroNumber": "<string>",
"payeeCountry": "UNDEFINED",
"payeeAddress": "<string>",
"payeeZipcode": "<string>",
"payeeBankName": "<string>",
"payeeBankCountry": "UNDEFINED",
"payeeBankAddress": "<string>",
"payeeBankZipcode": "<string>",
"payeeCity": "<string>",
"payeeBankCity": "<string>",
"vendorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendorDetailsOcr": {
"avatarUrl": "<string>",
"name": "<string>",
"email": "<string>",
"phoneNumber": {
"countryCode": "UNDEFINED",
"localNumber": "<string>"
},
"website": "<string>",
"country": "UNDEFINED",
"city": "<string>",
"address": "<string>",
"zipcode": "<string>",
"bankAccountNumber": "<string>",
"bankAccountBic": "<string>",
"domesticBankAccountNumber": "<string>",
"domesticBankAccountCode": "<string>",
"vatId": "<string>"
},
"companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"amount": 123,
"currency": "USD",
"description": "<string>",
"senderBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiNumber": "<string>",
"norKidReference": "<string>",
"paymentAt": "2023-11-07T05:31:56Z",
"ocrCompletedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"issuedDate": "2023-12-25",
"dueDate": "2023-12-25",
"invoiceCreatedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"purchaseOrderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineItemsIncludeTax": true,
"localCurrencyFxRate": 123,
"groupCurrencyFxRate": 123,
"lineItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoicePayableId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "REIMBURSEMENT",
"metadata": {
"type": "REIMBURSEMENT"
},
"amount": 123,
"netAmount": 123,
"description": "<string>",
"taxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxAmount": 123,
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shouldAmortize": true,
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25",
"amortizationScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customPropertiesOld": {
"items": {}
},
"aiValueSuggestions": [
{
"field": "<string>",
"fieldValues": [
"<string>"
],
"reasoning": "<string>"
}
],
"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"
}
],
"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"
}
]
}
],
"paymentPausedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentPausedAt": "2023-11-07T05:31:56Z",
"senderEmail": "<string>",
"documentName": "<string>"
}
default response
The response is of type object
.