openapi: 3.0.2 info: title: Finix Authorizations Webhooks API description: $ref: api-descriptions/main.md contact: name: Finix url: https://finix.com email: support@finixpayments.com version: '2022-02-01' servers: - description: Sandbox server to be used for testing and development url: https://finix.sandbox-payments-api.com security: - BasicAuth: [] tags: - name: Webhooks description: $ref: api-descriptions/tags/webhooks.md paths: /webhooks: post: tags: - Webhooks description: Create a `Webhook` to specify an endpoint where Finix can send events. summary: Create a Webhook operationId: createWebhook requestBody: $ref: '#/components/requestBodies/CreateWebhookRequest' responses: '201': $ref: '#/components/responses/Webhook' '400': $ref: '#/components/responses/ErrorUnprocessableEntity' '401': $ref: '#/components/responses/ErrorUnauthorized' '403': $ref: '#/components/responses/ErrorForbidden403' '406': $ref: '#/components/responses/Error406NotAcceptable' '422': $ref: '#/components/responses/Error422InvalidField' x-java-method-name: create parameters: - schema: type: string default: '2018-01-01' example: '2022-02-01' in: header name: Finix-Version description: Specify the API version of your request. For more details, see [Versioning.](/guides/developers/versioning/) x-python-method-name: create get: tags: - Webhooks description: Retrieve a list of `Webhooks`. summary: List Webhooks operationId: listWebhooks parameters: - $ref: '#/components/parameters/QueryLimit' - $ref: '#/components/parameters/QueryAfterCursor' - $ref: '#/components/parameters/QueryBeforeCursor' responses: '200': $ref: '#/components/responses/WebhooksList' '401': $ref: '#/components/responses/ErrorUnauthorized' '403': $ref: '#/components/responses/ErrorForbidden403' '406': $ref: '#/components/responses/Error406NotAcceptable' x-java-method-name: list x-group-parameters: true x-codeSamples: - lang: cURL label: curl source: "curl \"https://finix.sandbox-payments-api.com/webhooks\" \\\n -H \"Finix-Version: 2022-02-01\" \\\n -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e\n" x-python-method-name: list x-returns-list: true /webhooks/{webhook_id}: parameters: - description: ID of `Webhook` object. required: true in: path name: webhook_id schema: type: string get: tags: - Webhooks description: Retrieve the details of a `Webhook`. summary: Fetch a Webhook operationId: getWebhook responses: '200': $ref: '#/components/responses/Webhook' '401': $ref: '#/components/responses/ErrorUnauthorized' '403': $ref: '#/components/responses/ErrorForbidden403' '404': $ref: '#/components/responses/ErrorNotFound' '406': $ref: '#/components/responses/Error406NotAcceptable' x-java-method-name: get x-codeSamples: - lang: cURL label: curl source: "curl \"https://finix.sandbox-payments-api.com/webhooks/WHN6HuqRqTV3mDCxoFLrRvP\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Finix-Version: 2022-02-01\" \\\n -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e\n" x-python-method-name: get put: tags: - Webhooks description: 'Update an existing `Webhook`to: - Disable or enable an endpoint URL to recieve webhook events. - Add [authentication to a `Webhook`](/guides/developers/webhooks/#authenticating-webhooks). - Filter the [webhook events sent to an endpoint URL](/guides/developers/webhooks/#webhook-event-filtering).' summary: Update a Webhook operationId: updateWebhook requestBody: $ref: '#/components/requestBodies/UpdateWebhookRequest' responses: '200': $ref: '#/components/responses/Webhook' '401': $ref: '#/components/responses/ErrorUnauthorized' '403': $ref: '#/components/responses/ErrorForbidden403' '404': $ref: '#/components/responses/ErrorNotFound' '406': $ref: '#/components/responses/Error406NotAcceptable' x-java-method-name: update parameters: - schema: type: string default: '2018-01-01' example: '2022-02-01' in: header name: Finix-Version description: Specify the API version of your request. For more details, see [Versioning.](/guides/developers/versioning/) x-python-method-name: update components: headers: x-request-id: description: A unique ID for this specific API request attempt. schema: type: string date: schema: type: string finix-apiuser-role: schema: type: string enum: - ROLE_ADMIN - ROLE_PLATFORM - ROLE_PARTNER - ROLE_MERCHANT schemas: Error422InvalidFieldList: type: object description: Invalid field title: '' properties: total: type: integer _embedded: type: object properties: errors: type: array items: type: object properties: code: type: string enum: - INVALID_FIELD field: type: string logref: $ref: '#/components/schemas/LogRef' message: type: string _links: type: object properties: source: type: object properties: href: type: string ErrorGeneric: type: object properties: total: type: integer _embedded: type: object properties: errors: type: array items: type: object additionalProperties: true properties: code: type: string enum: - FORBIDDEN logref: $ref: '#/components/schemas/LogRef' message: type: string _links: type: object properties: source: type: object properties: href: type: string Error403ForbiddenList: type: object properties: total: type: integer _embedded: type: object properties: errors: type: array items: type: object additionalProperties: true properties: code: type: string enum: - FORBIDDEN logref: $ref: '#/components/schemas/LogRef' message: type: string _links: type: object properties: source: type: object properties: href: type: string description: '' title: '' UpdatedAt: type: string title: UpdatedAt format: date-time description: Timestamp of when the object was last updated. WebhookEnabledEvents: title: WebhookEnabledEvents x-stoplight: id: ux7v2p72v0shw type: array description: A list of events the [webhook is explicitly enabled for](/guides/developers/webhooks/#webhook-event-filtering). items: type: object properties: entity: type: string description: The entity type for the enabled event. There can only be one enabled event object for a given entity. types: type: array description: A list of event types you want to receive for the specified `entity`. items: type: string PageCursor: title: PageCursor x-stoplight: id: 8v9on8n2939z2 type: object properties: limit: type: integer description: The number of entries to return. next_cursor: type: string description: The cursor to use for the next page of results. nullable: true description: Details the page that's returned. Webhook: type: object properties: id: type: string example: WHxxxxxxxxxxxxxxxxxx description: The ID of the `Webhook` resource. created_at: $ref: '#/components/schemas/CreatedAt' updated_at: $ref: '#/components/schemas/UpdatedAt' application: type: string description: The ID of the `Application` resource the `Webhook` was created under. authentication: type: object description: The [authentication settings](/guides/developers/webhooks/#authenticating-webhooks) that are used to send webhook events. properties: type: type: string enum: - NONE - BASIC - BEARER description: 'The type of authentication the webhook will use: - NONE: No authentication will be used. - BASIC: Basic authentication. - BEARER: Oauth2''s Bearer Token.' enabled: type: boolean description: 'Details if the `Webhook` is enabled: