v1

latestOpenAPI 3.1.02026-07-241642423.7 KB

Retry a payment

post/payments/{payment}/retry

Path parameters

paymentstring required

ID of the payment desired for retry.

Request body

use_wireboolean

Boolean parameter indicating whether a wire retry is desired

bank_accountstring

Parameter to accept a new bank account to use to retry this payment.

payment_typestring

Response

200

idstring
statusstring
amountstring
typestring
parent_typestring
parent_idstring
can_retryboolean
can_refundboolean
directionstring

Example response

{
  "id": "pyt_vIFHhvyGN47ej1upyIT8",
  "status": "failed",
  "amount": "4522.0400",
  "type": "company_cash_requirement",
  "parent_type": "payroll",
  "parent_id": "pay_ENA4k8LMHbgpV07GLGSv",
  "payment_attempts": [
    {
      "id": "pya_GaeJoEAzbqqc2D9GMfOF",
      "created_at": "2022-02-18T21:32:44.957364Z",
      "expected_completion_date": "2022-02-25",
      "status": "failed",
      "payment_method": "wire",
      "wire_details": {
        "account_number": "3302826020",
        "routing_number": "121140399",
        "bank_name": "Silicon Valley Bank",
        "account_name": "SVB for benefit of CHECK TECHNOLOGIES",
        "account_address": "3003 Tasman Drive, Santa Clara, CA 95054",
        "amount": 4522.04
      }
    }
  ],
  "direction": "debit"
}