const options = {method: 'POST'};
fetch('https://api.dolfinai.co/bills/{id}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileName": "<string>",
"rawFileType": "<string>",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"suggestedMatchedSupplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierName": "<string>",
"supplierEmail": "<string>",
"supplierPhone": "<string>",
"supplierAddress": "<string>",
"supplierTaxId": "<string>",
"supplierWebsite": "<string>",
"supplierRegistrationNumber": "<string>",
"invoiceNumber": "<string>",
"invoiceDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"currency": "<string>",
"subTotal": 123,
"taxAmount": 123,
"totalAmount": 123,
"paymentTerms": "<string>",
"paymentRef": "<string>",
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"ocrConfidence": 123,
"approvedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvedAt": "2023-11-07T05:31:56Z",
"rejectedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rejectedAt": "2023-11-07T05:31:56Z",
"rejectionReason": "<string>",
"paymentDate": "2023-11-07T05:31:56Z",
"paymentMethod": "<string>",
"paidAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplier": {
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"phone": "<string>",
"website": "<string>",
"taxNumber": "<string>",
"registrationNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"paymentTermsDefault": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"lineItems": [
{
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unitPrice": 123,
"taxRate": 123,
"taxAmount": 123,
"subTotal": 123,
"sortOrder": 123
}
]
}Re-open a rejected bill for editing. Only bills in Rejected state.
const options = {method: 'POST'};
fetch('https://api.dolfinai.co/bills/{id}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileName": "<string>",
"rawFileType": "<string>",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"suggestedMatchedSupplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierName": "<string>",
"supplierEmail": "<string>",
"supplierPhone": "<string>",
"supplierAddress": "<string>",
"supplierTaxId": "<string>",
"supplierWebsite": "<string>",
"supplierRegistrationNumber": "<string>",
"invoiceNumber": "<string>",
"invoiceDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"currency": "<string>",
"subTotal": 123,
"taxAmount": 123,
"totalAmount": 123,
"paymentTerms": "<string>",
"paymentRef": "<string>",
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"ocrConfidence": 123,
"approvedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approvedAt": "2023-11-07T05:31:56Z",
"rejectedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rejectedAt": "2023-11-07T05:31:56Z",
"rejectionReason": "<string>",
"paymentDate": "2023-11-07T05:31:56Z",
"paymentMethod": "<string>",
"paidAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplier": {
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"phone": "<string>",
"website": "<string>",
"taxNumber": "<string>",
"registrationNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postalCode": "<string>",
"country": "<string>"
},
"bankDetails": {
"accountHolderName": "<string>",
"accountNumber": "<string>",
"sortCode": "<string>",
"routingNumber": "<string>",
"iban": "<string>",
"bicSwift": "<string>",
"country": "<string>",
"currency": "<string>"
},
"paymentTermsDefault": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"lineItems": [
{
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unitPrice": 123,
"taxRate": 123,
"taxAmount": 123,
"subTotal": 123,
"sortOrder": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
Use this file to discover all available pages before exploring further.
OK
Created, OcrProcessing, PendingReview, NeedsApproval, Approved, Rejected, Scheduled, Paid, OcrFailed Upload, Email, Webhook Will be used as the Supplier if the Supplier is not set
ISO 4217 currency code (e.g. GBP, USD, EUR)
Show child attributes
Show child attributes
Show child attributes