{"openapi":"3.0.3","info":{"title":"All In One Nonprofit API","version":"1.3.0","description":"Per-organization REST API. Create a key on My Organization (https://aio-staging-site.pages.dev/team/#api-keys, owner or admin, paid plans) and send it as Authorization: Bearer aio_live_... Each key belongs to one organization and carries scopes. 120 requests a minute per key. Money is in cents. Ids are assigned by All In One Nonprofit; store your own id in external_id."},"servers":[{"url":"https://aio-staging-site.pages.dev/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"aio_live_... key from My Organization"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"status":{"type":"integer"}}}}},"Address":{"type":"object","properties":{"line1":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"}}},"Organization":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"legal_name":{"type":"string"},"ein":{"type":"string"},"tier":{"type":"string"},"phone":{"type":"string"},"website":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"}}},"Donor":{"type":"object","properties":{"id":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"organization_name":{"type":"string"},"type":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"tags":{"type":"array","items":{"type":"string"}},"do_not_solicit":{"type":"boolean"},"pipeline_stage":{"type":"string"},"employer":{"type":"string"},"notes":{"type":"string"},"archived":{"type":"boolean"},"external_system":{"type":"string"},"external_id":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"integer"}}},"Gift":{"type":"object","properties":{"id":{"type":"string"},"donor_id":{"type":"string"},"date":{"type":"string","format":"date"},"amount_cents":{"type":"integer"},"currency":{"type":"string"},"method":{"type":"string"},"appeal":{"type":"string"},"designation":{"type":"string"},"restriction_class":{"type":"string"},"fund":{"type":"string"},"acknowledged":{"type":"boolean"},"notes":{"type":"string"},"tribute_type":{"type":"string"},"honoree_name":{"type":"string"},"external_system":{"type":"string"},"external_id":{"type":"string"}}},"Contact":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"kind":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"}}},"Guardian":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"relationship":{"type":"string"},"consent_date":{"type":"string","format":"date"},"consent_program":{"type":"boolean"},"consent_provider":{"type":"boolean"}}},"Client":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"date_of_birth":{"type":"string","format":"date"},"address":{"$ref":"#/components/schemas/Address"},"household_size":{"type":"integer","nullable":true},"status":{"type":"string","enum":["active","inactive"]},"notes":{"type":"string"},"is_minor":{"type":"boolean"},"age_or_grade":{"type":"string"},"guardian":{"$ref":"#/components/schemas/Guardian"},"external_system":{"type":"string"},"external_id":{"type":"string"},"created_at":{"type":"integer"},"updated_at":{"type":"integer"}}},"Assistance":{"type":"object","description":"Read-only through the API.","properties":{"estimate":{"type":"number"},"requested":{"type":"number"},"approved":{"type":"number"},"other":{"type":"number"},"other_note":{"type":"string"},"payee":{"type":"string"},"invoice_received":{"type":"boolean"},"paid_directly":{"type":"boolean"},"paid":{"type":"number"},"paid_date":{"type":"string"},"paid_ref":{"type":"string"},"note":{"type":"string"}}},"Case":{"type":"object","properties":{"id":{"type":"string"},"client_id":{"type":"string"},"title":{"type":"string"},"program":{"type":"string"},"status":{"type":"string","enum":["open","pending","closed"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"assigned_email":{"type":"string"},"assigned_name":{"type":"string"},"presenting_need":{"type":"string"},"opened_date":{"type":"string","format":"date"},"closed_date":{"type":"string","format":"date"},"close_reason":{"type":"string"},"assistance":{"$ref":"#/components/schemas/Assistance"},"external_system":{"type":"string"},"external_id":{"type":"string"},"created_at":{"type":"integer"},"updated_at":{"type":"integer"}}},"CaseNote":{"type":"object","properties":{"id":{"type":"string"},"case_id":{"type":"string"},"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["Note","Phone call","Home visit","Office visit","Email","Referral","Assessment","Case plan","Closing summary"]},"body":{"type":"string"},"author_email":{"type":"string"},"author_name":{"type":"string"},"created_at":{"type":"integer"}}},"Service":{"type":"object","properties":{"id":{"type":"string"},"case_id":{"type":"string"},"client_id":{"type":"string"},"date":{"type":"string","format":"date"},"service_type":{"type":"string"},"units":{"type":"number"},"unit_label":{"type":"string"},"program":{"type":"string"},"funder":{"type":"string"},"notes":{"type":"string"},"recorded_by":{"type":"string"},"created_at":{"type":"integer"}}},"Member":{"type":"object","properties":{"id":{"type":"integer"},"email":{"type":"string"},"role":{"type":"string","enum":["owner","member"]},"access":{"type":"string"},"apps":{"type":"array","items":{"type":"string"}},"joined_at":{"type":"integer"}}},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"description":{"type":"string"},"secret":{"type":"string","description":"Only in the create response."},"last_delivery_at":{"type":"integer"},"last_status":{"type":"integer"},"failures":{"type":"integer"}}},"Invoice":{"type":"object","description":"Read-only. The same camelCase shape as the invoice.* webhook payloads. Money in cents.","properties":{"id":{"type":"string"},"object":{"type":"string","example":"invoice"},"number":{"type":"string"},"status":{"type":"string","enum":["draft","sent","partial","paid","void"]},"overdue":{"type":"boolean"},"customer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}}},"issueDate":{"type":"string","format":"date"},"dueDate":{"type":"string","format":"date"},"subtotalCents":{"type":"integer"},"discountCents":{"type":"integer"},"taxCents":{"type":"integer"},"totalCents":{"type":"integer"},"paidCents":{"type":"integer"},"balanceCents":{"type":"integer"},"link":{"type":"string","description":"The hosted page the customer opens and pays from."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"qty":{"type":"number"},"unitCents":{"type":"integer"},"taxable":{"type":"boolean"},"amountCents":{"type":"integer"}}}},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","format":"date"},"amountCents":{"type":"integer"},"method":{"type":"string"},"reference":{"type":"string"},"stripe":{"type":"boolean"}}}},"sentAt":{"type":"integer","nullable":true},"paidAt":{"type":"integer","nullable":true},"createdAt":{"type":"integer","nullable":true},"updatedAt":{"type":"integer","nullable":true}}},"Event":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"starts_at":{"type":"string"},"ends_at":{"type":"string"},"status":{"type":"string"}}}}},"paths":{"/organization":{"get":{"summary":"The organization this key belongs to (org:read)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/donors":{"get":{"summary":"List donors (donors:read)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."},{"name":"email","in":"query","schema":{"type":"string"}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"external_system","in":"query","schema":{"type":"string","default":"api"}},{"name":"include_archived","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Donor"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a donor (donors:write). 409 if external_id already exists.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Donor"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Donor"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/donors/{id}":{"get":{"summary":"One donor (donors:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Donor"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Update the fields you send (donors:write)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Donor"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Donor"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/gifts":{"get":{"summary":"List gifts (gifts:read)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."},{"name":"donor_id","in":"query","schema":{"type":"string"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date"}},{"name":"external_id","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Gift"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}},"post":{"summary":"Record a gift (gifts:write). Also booked as income in Financial Management.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gift"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gift"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/gifts/{id}":{"get":{"summary":"One gift (gifts:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Gift"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/contacts":{"get":{"summary":"Organization contacts (contacts:read)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"email","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}}},"/contacts/{id}":{"get":{"summary":"One contact (contacts:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events":{"get":{"summary":"Events (events:read)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}}},"/events/{id}":{"get":{"summary":"One event (events:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/clients":{"get":{"summary":"People your organization serves (clients:read). Case Management is held tighter than other apps; a key reads every client, so grant clients:read deliberately.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."},{"name":"email","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["active","inactive"]}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"external_system","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}},"post":{"summary":"Add a client (clients:write). 409 if external_id already exists. A minor (is_minor: true) is kept as first name and last initial with no contact fields of their own; send the guardian.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/clients/{id}":{"get":{"summary":"One client (clients:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Update the fields you send (clients:write)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cases":{"get":{"summary":"Cases (cases:read)","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."},{"name":"client_id","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["open","pending","closed"]}},{"name":"external_id","in":"query","schema":{"type":"string"}},{"name":"external_system","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Case"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}},"post":{"summary":"Open a case for a client (cases:write). 409 if external_id already exists. The assistance block is read-only through the API.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cases/{id}":{"get":{"summary":"One case (cases:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Update the fields you send (cases:write). Setting status to closed stamps closed_date.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cases/{id}/notes":{"get":{"summary":"Case notes (cases:notes). Notes marked confidential in the app are never returned.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CaseNote"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add a note (cases:notes). Notes are never edited or deleted through the API; a correction is a new note.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseNote"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseNote"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/cases/{id}/services":{"get":{"summary":"Services delivered on this case (cases:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Record a service delivered (cases:write)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services":{"get":{"summary":"The service log across every case (cases:read), for grant reporting","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"funder","in":"query","schema":{"type":"string"}},{"name":"program","in":"query","schema":{"type":"string"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}}},"/invoices":{"get":{"summary":"Invoices from Invoicing (invoices:read), read-only. Create, send and record payments in the app.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"Cursor: the next_cursor of the previous page."},{"name":"updated_since","in":"query","schema":{"type":"integer"},"description":"Unix seconds."},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","sent","partial","paid","void"]}},{"name":"customer_id","in":"query","schema":{"type":"string"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date"},"description":"Issue date on or after."},{"name":"date_to","in":"query","schema":{"type":"string","format":"date"},"description":"Issue date on or before."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invoices/{id}":{"get":{"summary":"One invoice with its lines and payments (invoices:read)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/members":{"get":{"summary":"The people who can sign in to this organization (members:read), read-only","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Member"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}}},"/webhooks":{"get":{"summary":"Your webhook endpoints (webhooks:manage). The response also lists the event types.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","example":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string","nullable":true,"description":"Pass as starting_after for the next page."}}}}}}}},"post":{"summary":"Register an https endpoint (webhooks:manage). The secret is returned once. Events: donor.created, donor.updated, gift.created, gift.received, contact.created, client.created, client.updated, case.created, case.updated, case_note.created, service.created, invoice.created, invoice.sent, invoice.payment, invoice.paid, test.ping, or * for all. Each delivery is signed X-AIO-Signature: t=<unix>,v1=<hex HMAC-SHA256 of t + \".\" + body> with the secret; the delivery id is the idempotency key and failed deliveries retry hourly with backoff, eight attempts in all.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/{id}":{"get":{"summary":"One webhook (webhooks:manage)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Change url, events or active (webhooks:manage)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove a webhook and its delivery history (webhooks:manage)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}