Download OpenAPI specification:
This is the documentation for the Facture.net API. The API is RESTful and uses JSON as its data format.
All of the following endpoints are targeting the current authenticated organization account and so its own resources.
{- "email": "[email protected]"
}| page | integer Example: page=1 Page number |
[- {
- "id": 1,
- "tags": "tag1,tag2",
- "uid": "F2300001",
- "price_pretax": 100,
- "vat_exempt": false,
- "tax_amount": 18,
- "reduction": 10,
- "reduction_unit": "percent",
- "price": 108,
- "currency": "eur",
- "payment_period": "45_days_eom",
- "payment_mode": "wire_transfer",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "deposits_amount": 0,
- "disbursments_amount": 0,
- "recipient": {
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "name": "John Doe",
- "individual": true,
- "vat_number": "FR12345678901",
- "activity_number": 12345678901,
- "language": "fr"
}, - "items": [
- {
- "id": 1,
- "document_type": "Bill",
- "document_id": 1,
- "item_type_id": 1,
- "quantity": 1,
- "unit_price_pretax": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "price_pretax": 90,
- "price": 108
}
], - "created_at": 1694419158,
- "type": "Bill",
- "paid_at": 1694419158
}
]object (BillAttributes) |
{- "bill": {
- "recipient_gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "currency": "eur",
- "vat_exempt": false,
- "reduction": 0,
- "reduction_unit": "percent",
- "payment_period": "10_days",
- "payment_mode": "bank_card",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "items_attributes": [
- {
- "item_type_id": 1,
- "quantity": 1,
- "unit_price": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "description": "Description of the item"
}
]
}
}{- "id": 1,
- "tags": "tag1,tag2",
- "uid": "F2300001",
- "price_pretax": 100,
- "vat_exempt": false,
- "tax_amount": 18,
- "reduction": 10,
- "reduction_unit": "percent",
- "price": 108,
- "currency": "eur",
- "payment_period": "45_days_eom",
- "payment_mode": "wire_transfer",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "deposits_amount": 0,
- "disbursments_amount": 0,
- "recipient": {
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "name": "John Doe",
- "individual": true,
- "vat_number": "FR12345678901",
- "activity_number": 12345678901,
- "language": "fr"
}, - "items": [
- {
- "id": 1,
- "document_type": "Bill",
- "document_id": 1,
- "item_type_id": 1,
- "quantity": 1,
- "unit_price_pretax": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "price_pretax": 90,
- "price": 108
}
], - "created_at": 1694419158,
- "type": "Bill",
- "paid_at": 1694419158
}| page | integer Example: page=1 Page number |
[- {
- "id": 1,
- "tags": "tag1,tag2",
- "uid": "F2300001",
- "price_pretax": 100,
- "vat_exempt": false,
- "tax_amount": 18,
- "reduction": 10,
- "reduction_unit": "percent",
- "price": 108,
- "currency": "eur",
- "payment_period": "45_days_eom",
- "payment_mode": "wire_transfer",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "deposits_amount": 0,
- "disbursments_amount": 0,
- "recipient": {
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "name": "John Doe",
- "individual": true,
- "vat_number": "FR12345678901",
- "activity_number": 12345678901,
- "language": "fr"
}, - "items": [
- {
- "id": 1,
- "document_type": "Bill",
- "document_id": 1,
- "item_type_id": 1,
- "quantity": 1,
- "unit_price_pretax": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "price_pretax": 90,
- "price": 108
}
], - "created_at": 1694419158,
- "type": "Quotation"
}
]object (QuotationAttributes) |
{- "quotation": {
- "recipient_gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "currency": "eur",
- "vat_exempt": false,
- "reduction": 0,
- "reduction_unit": "percent",
- "payment_period": "10_days",
- "payment_mode": "bank_card",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "items_attributes": [
- {
- "item_type_id": 1,
- "quantity": 1,
- "unit_price": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "description": "Description of the item"
}
], - "validity_period": "30_days"
}
}{- "id": 1,
- "tags": "tag1,tag2",
- "uid": "F2300001",
- "price_pretax": 100,
- "vat_exempt": false,
- "tax_amount": 18,
- "reduction": 10,
- "reduction_unit": "percent",
- "price": 108,
- "currency": "eur",
- "payment_period": "45_days_eom",
- "payment_mode": "wire_transfer",
- "moratorium_interest": "none",
- "header": "Header for the document",
- "notes": "Conclusion for the document",
- "footer": "Footer for the document",
- "internal_notes": "Internal notes for the document",
- "deposits_amount": 0,
- "disbursments_amount": 0,
- "recipient": {
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "name": "John Doe",
- "individual": true,
- "vat_number": "FR12345678901",
- "activity_number": 12345678901,
- "language": "fr"
}, - "items": [
- {
- "id": 1,
- "document_type": "Bill",
- "document_id": 1,
- "item_type_id": 1,
- "quantity": 1,
- "unit_price_pretax": 100,
- "tax": 20,
- "reduction": 10,
- "reduction_unit": "percent",
- "price_pretax": 90,
- "price": 108
}
], - "created_at": 1694419158,
- "type": "Quotation"
}| page | integer Example: page=1 Page number |
| search[email] |
[- {
- "id": 1,
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "tags": "tag1,tag2",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "language": "fr",
- "individual": true,
- "first_name": "John",
- "last_name": "Doe",
- "full_name": "John Doe",
- "role": "CEO",
- "company_id": 1,
- "company_name": "John Doe Company",
- "internal_notes": "Internal notes for the client"
}
]object (ClientAttributes) |
{- "client": {
- "individual": true,
- "first_name": "John",
- "last_name": "Doe",
- "role": "CEO",
- "language": "fr",
- "company_id": 1,
- "internal_notes": "Internal notes for the client",
- "phones_attributes": [
- {
- "number": 33612345678
}
], - "address_attributes": [
- {
- "street": "1 rue de la Paix",
- "additional_address_lines": [
- "string"
], - "zip_code": 75001,
- "city": "Paris",
- "country": "France",
}
]
}
}{- "id": 1,
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "tags": "tag1,tag2",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "language": "fr",
- "individual": true,
- "first_name": "John",
- "last_name": "Doe",
- "full_name": "John Doe",
- "role": "CEO",
- "company_id": 1,
- "company_name": "John Doe Company",
- "internal_notes": "Internal notes for the client"
}| page | integer Example: page=1 Page number |
| search[name] | string Example: search[name]=John Doe Company Search by name |
| search[email] | |
| search[company_number] | string Example: search[company_number]=12345678901 Search by company number |
| search[vat_number] | string Example: search[vat_number]=FR12345678901 Search by VAT number |
[- {
- "id": 1,
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "tags": "tag1,tag2",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "language": "fr",
- "name": "John Doe Company",
- "company_number": 12345678901,
- "activity_number": 12345678901,
- "vat_number": "FR12345678901",
- "internal_notes": "Internal notes for the company"
}
]object (CompanyAttributes) |
{- "company": {
- "name": "John Doe Company",
- "vat_number": "FR12345678901",
- "company_number": 12345678901,
- "activity_number": 12345678901,
- "language": "fr",
- "internal_notes": "Internal notes for the client",
- "phones_attributes": [
- {
- "number": 33612345678
}
], - "address_attributes": [
- {
- "street": "1 rue de la Paix",
- "additional_address_lines": [
- "string"
], - "zip_code": 75001,
- "city": "Paris",
- "country": "France",
}
], - "client_ids": [
- 1
]
}
}{- "id": 1,
- "gid": "Z2lkOi8vZmFjdHVyZS9DbGllbnQvMzA3",
- "tags": "tag1,tag2",
- "street": "1 rue de la Paix",
- "additional_address_lines": "Bat. 1",
- "zip_code": 75001,
- "city": "Paris",
- "country": "France",
- "phone": 33612345678,
- "language": "fr",
- "name": "John Doe Company",
- "company_number": 12345678901,
- "activity_number": 12345678901,
- "vat_number": "FR12345678901",
- "internal_notes": "Internal notes for the company"
}A hook is a way to notify your application when an event occurs on a resource. For example, you can create a hook to be notified when a bill is created.
Find below which event can occur on which resource :
object (HookAttributes) |
{
}{- "hook": {
- "id": 1,
- "resource": "bills",
- "event": "created"
}, - "status": "created"
}