Finance > FinancialDocument
Updates a Financial document
Changed onUpdate a purchase financial document with PUT semantics: read the document, modify it, and send the complete resource back — the fields are replaced as sent. Status transitions are accepted and have their real side effects. Fields required on a validated document are only enforced when the document is validated (validated_at present in the payload), not before.
put/api/2026-10-01/resources/finance/financial_documents/{id}
Request
- Base URLhttps://api.factorialhr.com
- URLhttps://api.factorialhr.com/api/2026-10-01/resources/finance/financial_documents/{id}
- Auth
- OAuth 2Authorization code: https://id.factorialhr.com/oauth/authorizeToken URL: https://id.factorialhr.com/api/oauth/token scopes: finance
- or API key in header x-api-key
Path parameters
idstring required
Identifier of the financial document to update.
Request body
Example request
{
"company_id": "1",
"id": "135",
"currency": "USD",
"total_amount_cents": 11210,
"document_number": "INV-135",
"document_date": "2020-01-01",
"due_date": "2020-01-01",
"status": "review",
"taxes": [
{
"amount_cents": 1210,
"base_amount_cents": 10000,
"percentage": 0.21,
"type": "vat",
"tax_rates": [
{
"percentage": 21
}
]
}
],
"legal_entity_id": "13",
"vendor_id": "33",
"document_type": "invoice",
"additional_information": "Imported from ERP"
}Response
OK
Example response
{
"id": "135",
"net_amount_cents": 10000,
"total_amount_cents": 11210,
"document_number": "INV-135",
"currency": "USD",
"status": "review",
"due_date": "2020-01-01",
"document_date": "2020-01-01",
"legal_entity_id": "13",
"vendor_id": "33",
"file": {
"id": 1,
"filename": "invoice.pdf",
"url": "https://factorial.com/invoice.pdf",
"size": 1024,
"content_type": "application/pdf",
"created_at": "2020-01-01T00:00:00.000Z"
},
"updated_at": "2020-01-01T00:00:00.000Z",
"taxes": [
{
"amount_cents": 1210,
"base_amount_cents": 10000,
"percentage": 0.21,
"type": "vat",
"tax_rates": [
{
"percentage": 21
}
]
}
],
"fully_reconciled_at": "2020-01-01T00:00:00.000Z",
"recorded_at": "2020-01-01T00:00:00.000Z",
"validated_at": "2020-01-01T00:00:00.000Z",
"validated_by_id": "31",
"document_type": "invoice",
"parent_financial_document_id": "135",
"taxes_total_amount_cents": 1210,
"issuer_name": "Acme Corporation",
"issuer_address_line_1": "123 Main Street",
"issuer_address_line_2": "Suite 100",
"issuer_city": "San Francisco",
"issuer_postal_code": "94105",
"issuer_state": "California",
"issuer_country_code": "US",
"issuer_tax_id": "US123456789",
"recipient_name": "XYZ Company",
"recipient_address_line_1": "456 Market Street",
"recipient_address_line_2": "Floor 5",
"recipient_city": "New York",
"recipient_postal_code": "10001",
"recipient_state": "New York",
"recipient_country_code": "es",
"recipient_tax_id": "B66854530"
}Changes
- info
endpoint added
- info