Register a webhook for a client
Changed onEndpoint to register a new URL where the specified client will receive webhooks. Requires Authorization: Bearer <token> headers.
Request
- Base URLhttps://apicore.stg.finch.lat
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Client UUID for which the webhook is being registered.
Request body
Example request
{
"client_id": "c2d1d1e3-3340-4170-980e-e9269bbbc551",
"url": "https://example.com/webhook",
"token": "secretToken0123",
"webhook_type": "MONEY_IN",
"auth_type": "AUTH"
}Response
Webhook successfully created
Example response
{
"id": "29806117-2b15-4682-87f0-350e6695fe91",
"clientId": "c2d1d1e3-3340-4170-980e-e9269bbbc551",
"url": "https://example.com/webhook",
"token": "secretToken0123",
"webhookType": "MONEY_IN",
"webhookStatus": "ACTIVE",
"createdAt": "2025-04-03 13:40:54.056794-06:00",
"updatedAt": "2025-04-03 13:40:54.056794-06:00"
}Changes
- breaking
added the new required request property
- breaking
the
request property format changed from no format touuid - warning
added the new
ACTIVEenum value to theresponse property for the response status - warning
added the new
CEPenum value to theresponse property for the response status - warning
added the new
INACTIVEenum value to theresponse property for the response status - warning
added the new
MONEY_INenum value to theresponse property for the response status - warning
added the new
REFUNDenum value to theresponse property for the response status - warning
added the new
REPORTenum value to theresponse property for the response status - warning
added the new
STATUS_UPDATEenum value to theresponse property for the response status - info
api tag
Webhooksadded - info
added the new
REFUNDenum value to the request property - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- breaking