Confirm a setup request
Confirm a setup request to complete the setup lifecycle. The setup request must be in RequiresPaymentMethod or RequiresAction status. This will validate the payment method and tokenize it. The setup request status updates based on the result.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the setup request.
Body
Optional description of the setup request
255"Updated setup request for customer"
ID of the payer to associate with this setup request
"pyr_AbC123XyZ"
Payment method data (e.g., payment_token, payment_method type)
When the setup request expires (ISO 8601 date-time string)
"2025-12-31T23:59:59Z"
IP address of the client making the request
"192.168.1.1"
User agent of the client making the request
"Mozilla/5.0..."
Optional metadata as key-value pairs
{ "custom_field": "value", "source": "api" }Response
Setup request completed successfully.
"ta_AbC123XyZ"
ID of the setup request this attempt belongs to
"trq_Def456UvW"
ID of the payer for this setup attempt
"pyr_GhI789JkL"
Current status of the setup attempt
Pending, Processing, Succeeded, Failed "Succeeded"
External transaction ID from the payment processor
"txn_processor_123"
Error code if the setup attempt failed
"validation_failed"
Human-readable error message if the setup attempt failed
"Payment method validation failed"
"2025-10-08T18:20:31Z"
"2025-10-08T18:25:00Z"