Custom headers configured for a webhook endpoint.
Summary
Types
Parameters for webhook_headers_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/webhooks/headers.ts declaration HeaderUpdateParams.
Functions
Calls Dodo operation webhook_headers_retrieve (GET /webhooks/{webhook_id}/headers). Required parameters: none.
Calls Dodo operation webhook_headers_update (PATCH /webhooks/{webhook_id}/headers). Required parameters: :headers.
Calls Dodo operation webhook_headers_update (PATCH /webhooks/{webhook_id}/headers). Required parameters: :headers.
Types
@type update_params() :: %{ :headers => DodoPayments.RequestTypes.string_map(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for webhook_headers_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/webhooks/headers.ts declaration HeaderUpdateParams.
Functions
@spec retrieve(DodoPayments.Client.t(), String.t() | integer(), keyword()) :: {:ok, DodoPayments.WebhookHeaders.t() | DodoPayments.Response.t(DodoPayments.WebhookHeaders.t())} | {:error, Exception.t()}
Calls Dodo operation webhook_headers_retrieve (GET /webhooks/{webhook_id}/headers). Required parameters: none.
Options are request-local.
@spec update(DodoPayments.Client.t(), String.t() | integer(), update_params()) :: {:ok, nil} | {:error, Exception.t()}
Calls Dodo operation webhook_headers_update (PATCH /webhooks/{webhook_id}/headers). Required parameters: :headers.
API parameters must be supplied as a map.
@spec update( DodoPayments.Client.t(), String.t() | integer(), update_params(), keyword() ) :: {:ok, nil | DodoPayments.Response.t(nil)} | {:error, Exception.t()}
Calls Dodo operation webhook_headers_update (PATCH /webhooks/{webhook_id}/headers). Required parameters: :headers.
The final argument contains request-local options.