Agency
Payments
Agency payment request and response fields.
Base URL https://api.klockwork.org. Send X-Klockwork-Key or Authorization: Bearer kw_…. An agency key acts as the agency that created it. JSON bodies use these fields. A missing required field returns 400 with { "error": "Validation failed", "details": {} }.
List payments
GET /api/public/agency/payments
Response 200: { payments: Payment[] }
| Field | Type | Required |
|---|---|---|
id | string (uuid) | yes |
invoiceId | string (uuid) | yes |
invoiceDisplayNumber | string | yes |
talentId | string (uuid) | yes |
talentDisplayName | string | yes |
currency | string | yes |
amountCents | integer, min 0 | yes |
method | "wise" or "bank" or "gcash" or "maya" or "card" or "other" | yes |
paidAt | string | yes |
createdAt | string | yes |
Record payments
POST /api/public/agency/payments
Request body:
| Field | Type | Required |
|---|---|---|
invoiceIds | array of string (uuid) | yes |
method | "wise" or "bank" or "gcash" or "maya" or "card" or "other" | yes |
paidAt | string, min 1 | no |
Response 201: { payments: Payment[] }
| Field | Type | Required |
|---|---|---|
id | string (uuid) | yes |
invoiceId | string (uuid) | yes |
invoiceDisplayNumber | string | yes |
talentId | string (uuid) | yes |
talentDisplayName | string | yes |
currency | string | yes |
amountCents | integer, min 0 | yes |
method | "wise" or "bank" or "gcash" or "maya" or "card" or "other" | yes |
paidAt | string | yes |
createdAt | string | yes |
