API Developer Guide
Connect a system to send invoices and payments, then check its requests.
Create a Connection Key
- As an Owner, go to Settings → Integrations → CRM and find Make a key.
- Enter a name and tick Add and update invoices, Add and update payments, or both.
- Click Make key, then Copy. The full key appears once. Save it in the sending system’s secret store. If it’s lost, revoke it on the CRM page and make a new one.
Send a Request
Use your app’s HTTPS address and send the key in the Authorization header. The key identifies the account. A sign-in session is unnecessary.
Authorization: Bearer <connection-key>
Content-Type: application/jsonSend one JSON object or wrap a batch in { "records": [ ... ] }. Each request saves as a whole. If any record is refused, none of its records are saved.
source- Required. A name for your sending system. Start with a letter or digit and use up to 40 letters, digits, dots, dashes or underscores. The API lowercases it.
quickbooksis reserved. external_id- Required. Your system’s stable record reference. Send up to 100 plain-text characters or a safe JSON integer.
Use the same source and external_id when resending a record. The API creates it on the first send, returns unchanged if the data matches, and updates it if the data differs and the change is allowed. Send money as decimal strings such as "12000.00" and dates as YYYY-MM-DD.
POST /api/v1/invoices
Requires invoices.write. In addition to the common fields, send these invoice fields.
type- Required for Recruitment. Use
perm,temporcontract. Omit for General sales. invoice_number- Required. Use a number unique to this invoice.
invoice_date- Required. The app applies the tax rates in effect on this date.
client_code- Required. Use the client’s existing code.
pre_tax- Required. The invoice amount before tax.
candidate- Optional for Recruitment. Send the candidate’s name only.
gross_margin- Required for Temp. Send the amount billed minus pay including employer costs.
hours- Optional for Temp and Contract. Send up to four decimal places.
billing_start- Optional for Temp and Contract. First day billed.
billing_end- Optional for Temp and Contract. Last day billed, on or after billing_start.
salary- Optional for Perm in Recruitment. If sent with fee_pct, the resulting fee must equal pre_tax to the cent.
fee_pct- Optional for Perm in Recruitment. Send a percentage such as
"20"for 20%. credit_note_for- The number of the existing invoice a negative amount credits. Required for a negative Perm invoice (General sales also uses this rule). The original invoice must be positive and for the same client and type. The link cannot be added or changed later.
splits- Optional. A nonempty list of objects with
consultant_code(the existing code of the person credited) andsplit_pct(a percentage above 0 and at most 100). List each person once and make the shares total 100%. Omit this field to leave existing splits as they are.
Example Request Body for Recruitment
{
"source": "my-ats",
"external_id": "INV-1001",
"type": "perm",
"invoice_number": "123500",
"invoice_date": "2026-11-03",
"client_code": "CL0001",
"pre_tax": "12000.00",
"splits": [
{
"consultant_code": "C01",
"split_pct": "100"
}
]
}Example Response · 201 Created
{ "id": "9a1dd46a-08f4-45f0-9173-a4584b6796bd", "status": "created" }POST /api/v1/payments
Requires payments.write. Send the invoice before sending its payment.
received_date- Required. The date the money arrived and commission is earned.
amount- Required. Use a positive amount for a regular invoice and a negative amount for a credit note. The amount must fit the remaining balance.
invoice_external_id- Use either this or
invoice_number. This is the invoice’sexternal_idunder the samesourceas the payment. invoice_number- Use either this or
invoice_external_id. The number must identify a single invoice. reference- Optional. A reference from the sending system, such as an EFT or cheque reference.
method- Optional. Payment method, such as EFT, cheque or card.
Example Batch Request Body
{
"records": [
{
"source": "my-ats",
"external_id": "PAY-5001",
"received_date": "2026-11-12",
"amount": "6780.00",
"invoice_external_id": "INV-1001",
"reference": "EFT 1001",
"method": "EFT"
}
]
}Example Batch Response · 201 Created
{
"results": [
{
"source": "my-ats",
"external_id": "PAY-5001",
"id": "2eb0ce09-b600-492f-8042-3b066d6c4261",
"status": "created"
}
]
}Both endpoints return HTTP 201 when at least one record is created and HTTP 200 when all records are updated or unchanged. A single record returns id and status. A batch returns a results array with source, external_id, id and status for each record.
Errors
Read error for the code and message for the explanation. When present, the errors array gives record or field details. Each entry names a field (or null for a whole record) and a message. Batch entries can also name the 1-based record position.
{
"error": "invalid",
"message": "Some records need fixing. Nothing was saved.",
"errors": [
{
"field": "pre_tax",
"message": "Pre-tax amount \"abc\" is not an amount"
}
]
}Other refusals can return a fieldErrors object keyed by field name, as in this HTTP 409 example. Use message when the response has no field or record details.
{
"error": "duplicate",
"message": "That number or code is already used.",
"fieldErrors": {}
}400 invalid_json- The request is not valid JSON.
400 invalid- Send one record as a JSON object, or several as { "records": [ ... ] }. An empty batch gets “Send at least one record.”
401 key_required- Send your API key in the Authorization header, as: Bearer followed by the key.
401 key_refused- This API key is not valid. It may have been revoked. Ask the Owner for a key in Settings → Integrations → CRM.
403 permission_missing- This key may not add and update invoices. Ask the Owner for a key with that permission in Settings → Integrations → CRM. The payments endpoint names payments in the message.
409 duplicate- That number or code is already used.
413 too_large- The request is larger than 256 KB. Send fewer records at a time.
413 too_many_records- Send at most 500 records in one request.
415 json_needed- Send the records as JSON, with the header Content-Type: application/json.
422 invalid- Some records need fixing. Nothing was saved.
422 locked_period- This payment is in a locked pay period. Record a correction as an adjustment.
422 period_in_approval- This payment falls in a pay period that is being reviewed or approved. Send it again once that period is back in draft, or record a correction as an adjustment.
422 changed_in_app- This invoice was changed in the app since it was last sent, so it can no longer be updated this way. Make further changes in the app.
422 not_saved- Some records cannot be changed here. Nothing was saved. The batch was refused for multiple reasons.
429 too_many_requests- This key sent more than 120 requests in a minute. Wait a minute, then send the rest.
429 too_many_bad_keys- Too many requests with a missing, wrong or revoked key came from this address. Wait a minute, then try again with a valid key.
An unexpected server error can return HTTP 500. If it occurs while processing a known key’s records, the call log records a server problem.
Limits
- 256 KB (262,144 bytes) and up to 500 records per request.
- 120 requests per minute per key, shared across the two endpoints.
- 20 requests with missing, wrong or revoked keys per minute per sending address. Both rate-limit responses include
Retry-After: 60. Wait 60 seconds and use a valid key.
Find a Call in the Log
As an Owner, open Settings → Integrations → CRM and find Recent calls and expand the key’s name. You’ll see the time, endpoint, outcome and counts of records added, updated and unchanged. The list shows up to 50 calls per key. When a new call is logged for your account, entries older than 90 days are removed. Calls refused because the key was unrecognized or rate-limited are omitted.