API Reference Documentation: https://app.denim.com/api/v1/documentation
All currency (e.g. total_amount) should be passed in cents. In the example below, the total_amount of 80000 represents $800.00 and the total amount of 100000 represents $1000.00
"documents": [
{
"subtype": "proof_of_work",
"type": "billing_paperwork",
"url": "https://example.com/samples/sample_document.pdf"
},
{
"subtype": "invoice",
"type": "supporting_paperwork",
"url": "https://example.com/samples/sample_document.pdf"
}
],
"is_factored": true,
"notes": "There was a lumper fee",
"obligations": [
{
"client_payee_relationship_id": 21,
"due_date": "2020-02-26T15:34:22Z",
"obligation_date": "2020-01-26T15:34:22Z",
"reference_number": "",
"subtype": "primary",
"total_amount": 80000,
"type": "payable"
},
{
"client_debtor_relationship_id": 30,
"due_date": "2020-03-26T04:00:00Z",
"obligation_date": "2020-02-26T04:00:00Z",
"reference_number": "",
"subtype": "primary",
"total_amount": 100000,
"type": "receivable"
}
],
"reference_number": "test-123"
}