{"openapi":"3.1.0","info":{"title":"TazForm API","version":"1","description":"Read and write your TazForm forms, registrations and contacts. Authenticate with an API key from Settings → API keys as `Authorization: Bearer tzf_…`. Reads allow 100 requests a minute per key; writes 30, need a write scope on the key, an `Idempotency-Key` header, and a Pro plan or higher."},"servers":[{"url":"https://tixoolaapi.com/api/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Reads","description":"Need forms:read or registrations:read."},{"name":"Writes","description":"Need the write scope shown on each, and an Idempotency-Key."}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"tzf_ API key"}},"schemas":{"Error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"string"}}}}}},"paths":{"/forms":{"get":{"operationId":"listForms","summary":"List forms","description":"Published forms, oldest first.\n\nScope: `forms:read`.","tags":["Reads"],"parameters":[{"name":"page","in":"query","required":false,"description":"1-based page number (default 1).","schema":{"description":"1-based page number (default 1).","type":"integer"}},{"name":"pageSize","in":"query","required":false,"description":"Items per page, at most 100 (default 50).","schema":{"description":"Items per page, at most 100 (default 50).","type":"integer"}}],"responses":{"200":{"description":"`{ items, total, page, pageSize }`.","content":{"application/json":{"schema":{"type":"object"}}}}},"x-tazform-scope":"forms:read"}},"/forms/{publicationId}/submissions":{"get":{"operationId":"listSubmissions","summary":"List a form's responses","description":"Completed responses to one form, oldest first. Responses still waiting for a card payment are left out.\n\nScope: `forms:read`.","tags":["Reads"],"parameters":[{"name":"publicationId","in":"path","required":true,"description":"The form's id.","schema":{"description":"The form's id.","type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"Only rows created or changed at or after this UTC time.","schema":{"description":"Only rows created or changed at or after this UTC time.","type":"string","format":"date-time"}},{"name":"page","in":"query","required":false,"description":"1-based page number (default 1).","schema":{"description":"1-based page number (default 1).","type":"integer"}},{"name":"pageSize","in":"query","required":false,"description":"Items per page, at most 100 (default 50).","schema":{"description":"Items per page, at most 100 (default 50).","type":"integer"}}],"responses":{"200":{"description":"`{ items, total, page, pageSize }`.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Form not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"forms:read"}},"/events":{"get":{"operationId":"listEvents","summary":"List events","description":"Events by start date.\n\nScope: `registrations:read`.","tags":["Reads"],"parameters":[{"name":"page","in":"query","required":false,"description":"1-based page number (default 1).","schema":{"description":"1-based page number (default 1).","type":"integer"}},{"name":"pageSize","in":"query","required":false,"description":"Items per page, at most 100 (default 50).","schema":{"description":"Items per page, at most 100 (default 50).","type":"integer"}}],"responses":{"200":{"description":"`{ items, total, page, pageSize }`.","content":{"application/json":{"schema":{"type":"object"}}}}},"x-tazform-scope":"registrations:read"}},"/events/{eventId}/registrations":{"get":{"operationId":"listRegistrations","summary":"List an event's registrations","description":"Registrations for one event, oldest first, with status, payment and answers.\n\nScope: `registrations:read`.","tags":["Reads"],"parameters":[{"name":"eventId","in":"path","required":true,"description":"The event's id.","schema":{"description":"The event's id.","type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"Only rows created or changed at or after this UTC time.","schema":{"description":"Only rows created or changed at or after this UTC time.","type":"string","format":"date-time"}},{"name":"page","in":"query","required":false,"description":"1-based page number (default 1).","schema":{"description":"1-based page number (default 1).","type":"integer"}},{"name":"pageSize","in":"query","required":false,"description":"Items per page, at most 100 (default 50).","schema":{"description":"Items per page, at most 100 (default 50).","type":"integer"}}],"responses":{"200":{"description":"`{ items, total, page, pageSize }`.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Event not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"registrations:read"}},"/registrations/search":{"get":{"operationId":"searchRegistrations","summary":"Find registrations","description":"Registrations matching an email or a confirmation number.\n\nScope: `registrations:read`.","tags":["Reads"],"parameters":[{"name":"email","in":"query","required":false,"description":"Registrant email.","schema":{"description":"Registrant email.","type":"string"}},{"name":"confirmationNumber","in":"query","required":false,"description":"Confirmation number.","schema":{"description":"Confirmation number.","type":"string"}}],"responses":{"200":{"description":"A list of registrations.","content":{"application/json":{"schema":{"type":"object"}}}}},"x-tazform-scope":"registrations:read"}},"/me":{"get":{"operationId":"me","summary":"Test a key","description":"The key's organization, location and scopes.","tags":["Reads"],"parameters":[],"responses":{"200":{"description":"The key.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/submissions/{submissionId}/answers":{"patch":{"operationId":"updateSubmissionAnswers","summary":"Edit a response's answers","description":"Changes some answers on a form response. The form's rules validate the result, a change that would change the price is refused (409 `payment_change`), and the edit is audited.\n\nScope: `answers:write`.","tags":["Writes"],"parameters":[{"name":"submissionId","in":"path","required":true,"description":"The response's id.","schema":{"description":"The response's id.","type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The response, as in the list.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"answers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["answers","reason"],"properties":{"answers":{"description":"Field id → new value. Only these answers change; the rest are kept. The whole form is re-validated.","type":"object","additionalProperties":true},"reason":{"description":"Why it changed. Kept in the audit log with the before and after values.","type":"string"}}},"example":{"answers":{"shirt_size":"L"},"reason":"Swapped at pickup"}}}}}},"/registrations/{registrationId}/answers":{"patch":{"operationId":"updateRegistrationAnswers","summary":"Edit a registration's answers","description":"Changes some answers on a registration, validated against the event's registration form and audited.\n\nScope: `answers:write`.","tags":["Writes"],"parameters":[{"name":"registrationId","in":"path","required":true,"description":"The registration's id.","schema":{"description":"The registration's id.","type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The registration, as in the list.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"answers:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["answers","reason"],"properties":{"answers":{"description":"Field id → new value. Only these answers change; the rest are kept. The whole form is re-validated.","type":"object","additionalProperties":true},"reason":{"description":"Why it changed. Kept in the audit log with the before and after values.","type":"string"}}},"example":{"answers":{"jersey_number":10},"reason":"Coach assigned numbers"}}}}}},"/submissions/{submissionId}/payments":{"post":{"operationId":"recordSubmissionPayment","summary":"Record a response's offline payment","description":"Marks a response waiting on a pay-another-way payment (Venmo, Zelle, cash, check…) as paid. Its confirmation goes out as when staff mark it paid. 409 `not_awaiting_payment` if nothing is owed.\n\nScope: `payments:write`.","tags":["Writes"],"parameters":[{"name":"submissionId","in":"path","required":true,"description":"The response's id.","schema":{"description":"The response's id.","type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The response, now paid.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"payments:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"note":{"description":"Kept with the payment in the audit log.","type":"string"}}},"example":{"note":"Check #1042"}}}}}},"/registrations/{registrationId}/payments":{"post":{"operationId":"recordRegistrationPayment","summary":"Record a registration's offline payment","description":"Records what's owed on a registration as paid outside Stripe. On a pay-another-way checkout the whole family checkout is marked paid unless `wholeCheckout` is false. 409 `nothing_to_record` if nothing is owed or a card payment or plan handles it.\n\nScope: `payments:write`.","tags":["Writes"],"parameters":[{"name":"registrationId","in":"path","required":true,"description":"The registration's id.","schema":{"description":"The registration's id.","type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"`{ registration, recorded: { registrations, amount, checkoutsConfirmed } }`.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"payments:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"note":{"description":"Kept with the payment in the audit log.","type":"string"},"wholeCheckout":{"description":"Default true: everyone on the same pay-another-way checkout is marked paid. False: only this registration.","type":"boolean"}}},"example":{"note":"Zelle 4411","wholeCheckout":true}}}}}},"/registrations/{registrationId}/status":{"post":{"operationId":"setRegistrationStatus","summary":"Change a registration's status","description":"`approved` and `rejected` use the console's approval decision (rejecting cancels the registration and, unless `refund` is false, refunds card payments); `checked_in` and `not_checked_in` use check-in, including its document rules. Emails and webhooks go out as from the console.\n\nScope: `status:write`.","tags":["Writes"],"parameters":[{"name":"registrationId","in":"path","required":true,"description":"The registration's id.","schema":{"description":"The registration's id.","type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"The registration, as in the list.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"status:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"description":"The new status.","type":"string","enum":["approved","rejected","checked_in","not_checked_in"]},"note":{"description":"Approved or rejected: a note included in the registrant's email.","type":"string"},"refund":{"description":"Rejected only: refund card payments (default true).","type":"boolean"}}},"example":{"status":"approved","note":"See you Saturday!"}}}}}},"/contacts":{"post":{"operationId":"createContact","summary":"Add a contact","description":"Adds a TazCRM contact, matching first so there are no duplicates: the same email (any case), else the same first name, last name and phone. A match only fills in blank fields. Needs an email unless it matches.\n\nScope: `contacts:write`.","tags":["Writes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A unique string (a UUID works) per change. Retrying with the same key and body returns the first response with `Idempotent-Replayed: true` for 24 hours.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Matched: the existing contact, with `match: \"email\"` or `\"name_phone\"`.","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"Created: the contact, with `match: \"created\"`.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request, failed validation (`errors` lists fields), or no Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope (`insufficient_scope`), or the plan doesn't include the API (`plan_upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the key's organization and location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The change conflicts with the record's state, or the same Idempotency-Key is still being processed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request (`idempotency_key_reused`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-tazform-scope":"contacts:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"locationId":{"description":"Required for keys that cover every location.","type":"string","format":"uuid"},"email":{"description":"Email address.","type":"string"},"firstName":{"description":"First name.","type":"string"},"lastName":{"description":"Last name.","type":"string"},"phone":{"description":"Phone number.","type":"string"},"address":{"description":"Street address.","type":"string"},"city":{"description":"City.","type":"string"},"state":{"description":"State.","type":"string"},"zip":{"description":"ZIP or postal code.","type":"string"}}},"example":{"email":"sam@example.com","firstName":"Sam","lastName":"Rivera","phone":"555-010-2233"}}}}}}}}