Integrate with Valtor
Another system can hand Valtor what it knows: a won deal with its signed contract, or a usage figure. Valtor reads the contract and proposes; people in the workspace approve and send. Webhooks tell your system what happened next.
- Base URL
https://api.valtor.io- Sign-in
Authorization: Bearer vk_…X-Tenant-Slug: your-workspace- A key can
- Hand over deals and contractsReport usage figuresRead what it handed over
- A key cannot
- Approve terms or figuresSend or cancel an invoice
1. Create a key
Section titled “1. Create a key”A finance owner or tenant admin creates the key under Settings, Advanced, API keys. It is shown once, as vk_<prefix>_<secret>; store it as a secret. A key belongs to one workspace, and sent with another workspace’s slug it fails like a wrong key. API keys need the API access module in your plan.
Check the setup with the first call an integration makes. It answers with the workspace and the role the key acts as (integration).
curl https://api.valtor.io/v1/integration/identity \ -H "Authorization: Bearer $VALTOR_API_KEY" \ -H "X-Tenant-Slug: your-workspace"2. Hand over a won deal
Section titled “2. Hand over a won deal”Send the deal when it is won, with the signed contract as base64. external_ref is the deal’s id in your system: the same deal sent again returns the same intake with created: false, so a retry never makes a second one. With a document the state is document_received, Valtor reads the contract and a reviewer gets a task; once the terms are approved the intake shows contract_created and its contract_id.
curl https://api.valtor.io/v1/intake/contracts \ -H "Authorization: Bearer $VALTOR_API_KEY" \ -H "X-Tenant-Slug: your-workspace" \ -H "Content-Type: application/json" \ -d '{ "external_ref": "48213", "source_system": "hubspot", "company_name": "Nordlicht GmbH", "owner_email": "finance@example.de", "document": { "filename": "rahmenvertrag.pdf", "mime_type": "application/pdf", "content_base64": "JVBERi0xLjcK…" } }'stated_value and deal_closed_on are optional and kept for reference: a term is only ever read from the contract. Follow an intake with:
3. Report usage figures
Section titled “3. Report usage figures”For a usage or percentage charge, list what is open and push a figure for it. The figure waits for finance like an uploaded one; nothing here bills. Send an Idempotency-Key so a retry replays the first answer.
{ "obligation_id": "0192f1c2-7a3b-7c1d-9e2f-3a4b5c6d7e8f", "value": "1250", "unit": "hours", "source_system": "jira"}4. Hear back through webhooks
Section titled “4. Hear back through webhooks”Under Settings, Advanced, Webhooks, add an HTTPS URL and pick the events to hear. Each delivery is a POST with this body:
{ "id": "0192f1c2-7a3b-7c1d-9e2f-3a4b5c6d7e8f", "type": "invoice.issued", "occurred_at": "2026-11-15T09:41:00+00:00", "data": { "invoice_id": "…", "contract_id": "…", "official_number": "RE-2026-0118" }}Deliveries are signed by the Standard Webhooks scheme, so any Standard Webhooks library verifies them. The headers are webhook-id (the event id, the same on every retry: deduplicate on it), webhook-timestamp and webhook-signature: v1,<signature>, the base64 HMAC-SHA256 of id.timestamp.body under the subscription’s whsec_ secret. Answer with any 2xx. Anything else is retried up to twelve times over about forty minutes, and a failed delivery can be sent again from the screen.
| Event | When |
|---|---|
contract_intake.received |
A deal was handed over by another system |
contract_intake.document_received |
A deal’s contract arrived and reading was queued |
contract.review_ready |
A contract was read and its terms wait for review |
contract.rules_approved |
A contract’s commercial terms were approved |
contract.renewal_due |
A contract’s notice deadline is within sixty days |
invoice.details_missing |
An upcoming invoice lacks a figure or the client’s details, and people were asked |
invoice.ready_to_send |
An invoice was approved and cleared, and waits for someone to send it |
invoice.issued |
An invoice was issued |
invoice.delivery_failed |
An invoice could not be delivered |
invoice.overdue |
An invoice passed its due date unpaid |
invoice.paid |
An invoice became fully paid, counting Skonto and credits |
invoice.corrected |
A correction (Rechnungskorrektur or Stornorechnung) was issued |
payment.received |
A payment was recorded, from the bank feed, a file or by hand |
payment.allocated |
A payment was matched to an invoice and approved |
dunning.notice_ready |
A reminder or dunning notice was drafted and waits for review |
refund.approved |
Money paid back to a customer was approved |
ledger.posting_blocked |
An invoice could not be posted to the accounting system |
commitment.true_up_proposed |
A commitment period closed with a true-up for review |
client_request.answered |
A client answered a request in the portal |
valtor.ping |
A test delivery sent from the settings screen |
Errors
Section titled “Errors”Errors carry a stable code and a message for people: 401 invalid_api_key for a wrong key or workspace, 403 for a call a key may not make, 404 usage_obligation_not_found when no open usage charge matches. Every route’s codes are on its page in the Integration API.