A bill_switch job completed. Pinwheel sends this event to your webhook endpoint when the merchant attempts to update your customer's payment method. The event is delivered whether the attempt ultimately succeeds or fails. Check the outcome field in the payload to determine if the payment migration was successful or failed.
Payload Schema
Payload Param
Type
Description
account_id
string
UUID of the account connected by the end user.
end_user_id
string
The user identifier you provided when initializing Link for this user (if provided).
outcome
string
The outcome of the job, either success, error, or pending. If pending you will receive another webhook with outcome as success or error within 24 hours.
error_code (optional)
string
On error, a string describing the error.
error_type (optional)
string
On error, a high level classification of the error.
timestamp
string
ISO 8601 timestamp of job completion.
name
string
Name of the job, which is bill_switch.
link_token_id
string
UUID of the Link token used to initialize Link. You should use account_id as the main identifier.
params (optional)
object
Parameters of the job, if applicable. Contains payment method information when available.
params.type (optional)
string
The type of payment method switch, such as card for card-based payments.
params.payment (optional)
object
Payment method details. See Payment Schema below for object structure.
id
string
Deprecated. UUID of the job. You should use account_id as the main identifier.
Payment Schema
Parameter
Type
Description
card_name (optional)
string
Name on the card for card-based payments.
last_four_card_number (optional)
string
Last four digits of the card number for card-based payment
A bill_cancellation job completed. Pinwheel sends this event to your webhook endpoint when the merchant attempts to cancel a stored payment method or a recurring payment for your customer. The event is delivered whether the attempt ultimately succeeds or fails. Check the outcome field in the payload to determine if the payment cancellation was successful or failed.
Payload Schema
Payload Param
Type
Description
account_id
string
UUID of the account connected by the end user.
end_user_id
string
The user identifier you provided when initializing Link for this user (if provided).
outcome
string
The outcome of the job, either success, error, or pending. If pending you will receive another webhook with outcome as success or error within 24 hours.
error_code (optional)
string
On error, a string describing the error.
error_type (optional)
string
On error, a high level classification of the error.
timestamp
string
ISO 8601 timestamp of job completion.
name
string
Name of the job, which is bill_cancellation.
link_token_id
string
UUID of the Link token used to initialize Link. You should use account_id as the main identifier.
id
string
Deprecated. UUID of the job. You should use account_id as the main identifier.