Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
---
openapi: post /v2/recovery
---
<RequestExample>
```bash cURL
curl --request POST \
--url https://sandbox.hyperswitch.io/v2/recovery \
--header 'Authorization: api-key=<API_KEY>' \
--header 'Content-Type: application/json' \
--header 'X-Profile-Id: pro_abcdefghijklmnop' \
--data '{
"amount_details": {
"currency": "USD",
"order_amount": 6540
},
"billing": {
"address": {
"city": "San Francisco",
"country": "US",
"first_name": "John",
"last_name": "Doe",
"line1": "1467 Harrison Street",
"state": "California",
"zip": "94122"
},
"email": "[email protected]"
},
"billing_merchant_connector_id": "mca_billing_1234567890",
"billing_started_at": "2022-09-10T10:11:12Z",
"connector_customer_id": "cust_12345",
"connector_transaction_id": "993672945374576J",
"error": {
"code": "card_declined",
"message": "The card was declined.",
"network_advice_code": "01",
"network_decline_code": "51",
"network_error_message": "Retry after some time",
"reason": "Insufficient funds"
},
"merchant_reference_id": "invoice_mbabizu24mvu3mela5njyh",
"payment_merchant_connector_id": "mca_payment_1234567890",
"payment_method_data": {
"payment_method_metadata": {
"card_exp_month": "01",
"card_exp_year": "2026",
"card_extended_bin": "42424242",
"card_isin": "424242",
"card_network": "Visa",
"card_type": "credit",
"last4": "4242"
},
"primary_processor_payment_method_token": "token_1234"
},
"payment_method_sub_type": "credit",
"payment_method_type": "card",
"transaction_created_at": "2022-09-10T10:11:12Z",
"transaction_status": "failure"
}'
```
</RequestExample>