Skip to main content
POST
/
recurring-invoices
/
from-contract
Extract recurring-invoice terms from a contract
const form = new FormData();
form.append('file', '<string>');

const options = {method: 'POST'};

options.body = form;

fetch('https://api.dolfinai.co/recurring-invoices/from-contract', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "customerName": "<string>",
  "customerEmail": "<string>",
  "currency": "<string>",
  "memo": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "totalOccurrences": 123,
  "lineItems": [
    {
      "productName": "<string>",
      "quantity": 123,
      "unitPriceOverride": 123,
      "taxRateName": "<string>"
    }
  ],
  "sourceQuotes": {},
  "confidence": {},
  "missingFields": [
    "<string>"
  ]
}

Body

multipart/form-data
file
file

Response

OK

customerName
null | string
customerEmail
null | string
currency
null | string
memo
null | string
startDate
null | string<date-time>
cadence
null | enum<string>
Available options:
Weekly,
Monthly,
Quarterly,
Annually
totalOccurrences
lineItems
object[]
sourceQuotes
object
confidence
object
missingFields
string[]