---
updatedAt: 2025-06-02T22:32:49.000Z
agentTools:
  projectIndex: https://docs.helloaria.eu/llms.txt
---

# Request a Loan payment retry

Use this endpoint in cases where a Loan is in the PAYMENT_FAILED status and has one of its paymentFailureReasons as PAYMENT_DESTINATION_NOT_VALID. This will allow you to make a retry for payment using a different payment destination.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Aria API",
    "description": "This document is a reference for Aria API.\n\n**Base URLs:**\n- Production server baseURL: https://api.helloaria.eu\n- Sandbox server baseURL: https://api.sandbox.helloaria.eu",
    "contact": {
      "name": "Aria Support",
      "email": "support@helloaria.eu"
    },
    "version": ""
  },
  "servers": [
    {
      "description": "Sandbox environement (to test your integration)",
      "url": "https://api.sandbox.helloaria.eu"
    },
    {
      "description": "Production environement",
      "url": "https://api.helloaria.eu"
    }
  ],
  "paths": {
    "/companies/{companyId}/loans/{loanId}/retry-payment": {
      "post": {
        "tags": [
          "Loans"
        ],
        "summary": "Request a Loan payment retry",
        "operationId": "requestLoanPaymentRetry",
        "description": "Use this endpoint in cases where a Loan is in the PAYMENT_FAILED status and has one of its paymentFailureReasons as PAYMENT_DESTINATION_NOT_VALID. This will allow you to make a retry for payment using a different payment destination.",
        "parameters": [
          {
            "$ref": "#/components/parameters/EndUserIpHeader"
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "default": "me"
            }
          },
          {
            "name": "loanId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "options": {
                    "type": "object",
                    "properties": {
                      "paymentDestination": {
                        "description": "Update Payment Destination for Retry.",
                        "$ref": "#/components/schemas/PaymentDestination"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "Successfully requested a Loan payment retry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Loan"
                }
              }
            }
          },
          "400": {
            "description": "Invalid payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Not permitted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "OAuth2ApplicationAuth": []
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "Entity": {
        "required": [
          "id",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Opaque identifier"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Creation date in ISO 8601 UTC format"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last update date in ISO 8601 UTC format"
          }
        }
      },
      "Currency": {
        "type": "string",
        "enum": [
          "EUR",
          "GBP",
          "USD",
          "CHF"
        ]
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "labels": {
            "type": "object"
          }
        },
        "required": [
          "url"
        ]
      },
      "ReasonWithDescription": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "A helpful comment written by our operational team to assist you in solving a case."
          }
        },
        "required": [
          "code"
        ]
      },
      "Reason": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "required": [
          "code"
        ]
      },
      "PaymentDestinationBankAccountIBAN": {
        "type": "object",
        "description": "Bank account identified by IBAN (SEPA zone). Use this variant for EUR loans and any other currency with IBAN-routed payouts.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "BANK_ACCOUNT"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "description": "Optional human-readable label for this payment destination."
          },
          "accountNumberType": {
            "type": "string",
            "enum": [
              "IBAN"
            ]
          },
          "accountNumber": {
            "type": "string",
            "format": "iban",
            "description": "Account IBAN (European format)."
          },
          "routingNumberType": {
            "type": "string",
            "enum": [
              "BIC"
            ]
          },
          "routingNumber": {
            "type": "string",
            "format": "bic",
            "description": "BIC / SWIFT code of the receiving bank. Optional when an IBAN is provided."
          }
        },
        "required": [
          "type",
          "accountNumberType",
          "accountNumber"
        ]
      },
      "PaymentDestinationBankAccountAccountNumber": {
        "type": "object",
        "description": "Bank account identified by account number + routing number (e.g. UK Faster Payments / sort code). Use this variant for GBP loans paid through FPS.",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "BANK_ACCOUNT"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "description": "Optional human-readable label for this payment destination."
          },
          "accountNumberType": {
            "type": "string",
            "enum": [
              "ACCOUNT_NUMBER"
            ]
          },
          "accountNumber": {
            "type": "string",
            "minLength": 1,
            "description": "Local account number."
          },
          "routingNumberType": {
            "type": "string",
            "enum": [
              "SORT_CODE"
            ]
          },
          "routingNumber": {
            "type": "string",
            "minLength": 1,
            "description": "Routing number (e.g. UK sort code)."
          }
        },
        "required": [
          "type",
          "accountNumberType",
          "accountNumber",
          "routingNumberType",
          "routingNumber"
        ]
      },
      "PaymentDestination": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/PaymentDestinationBankAccountIBAN"
          },
          {
            "$ref": "#/components/schemas/PaymentDestinationBankAccountAccountNumber"
          }
        ],
        "discriminator": {
          "propertyName": "accountNumberType",
          "mapping": {
            "IBAN": "#/components/schemas/PaymentDestinationBankAccountIBAN",
            "ACCOUNT_NUMBER": "#/components/schemas/PaymentDestinationBankAccountAccountNumber"
          }
        }
      },
      "LoanUpdatePayload": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount to be paid to the beneficiary. May differ from invoice amount."
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "description": "Unique Id of the User (beneficiary) being paid."
          },
          "invoiceId": {
            "format": "uuid",
            "description": "Unique Id of the Invoice.",
            "type": "string",
            "nullable": true
          },
          "receivableId": {
            "format": "uuid",
            "description": "Unique Id of the Receivable. Only use this if you created a Receivable yourself.",
            "type": "string",
            "nullable": true
          },
          "paymentDestination": {
            "description": "Bank account where Aria will send the funds. Required when `currency` is `USD` (and any future currency outside `EUR`/`GBP`/`CHF`); for those three currencies it can be omitted to fall back on the User's existing payment destinations. Will also upsert the provided destination on the `User`.",
            "$ref": "#/components/schemas/PaymentDestination"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional identifier of your choosing"
          },
          "payoutLabel": {
            "type": "string",
            "description": "Optional label, will be mentioned as a bank transfer reference."
          },
          "paymentReconciliationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "attachments": {
            "type": "array",
            "description": "Deprecated, use `proofIds` on creation or the `proof` endpoints instead. Lists the non-archived proofs linked to this Loan with `source: COMPANY`. On `PATCH` the list you send replaces the current one: a new file becomes a proof of `type: UNKNOWN`, a dropped one is archived. Omit the field and nothing changes. See the Proof guide.",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            },
            "deprecated": true
          },
          "guarantor": {
            "type": "string",
            "description": "Specifies the role of the entity assuming financial responsibility for the Loan. Set this field to `company` if you wish to act as the guarantor for the Loan. Our teams will be notified. This feature is disabled by default and needs to be activated on your account.",
            "enum": [
              "company"
            ]
          },
          "quoteOfferId": {
            "type": "string",
            "format": "uuid",
            "description": "Id of an offer that was returned in a Quote you created."
          },
          "preferInstantPayment": {
            "type": "boolean",
            "nullable": true,
            "description": "Specifies whether to enable instant payment for transactions in `EUR`. This feature requires prior activation. Please contact your Key Account Manager to enable this feature and for further assistance."
          },
          "payoutIBAN": {
            "deprecated": true,
            "format": "iban",
            "type": "string",
            "description": "To fill if you want to override the default User IBAN. Must match IBAN European format."
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "description": "We may ask you to provide specific properties in this field to enable automation on our side. If we activate this in your account, the required format and properties are defined with you during onboarding."
          }
        }
      },
      "LoanCreationPayload": {
        "allOf": [
          {
            "$ref": "#/components/schemas/LoanUpdatePayload"
          },
          {
            "type": "object",
            "properties": {
              "proofIds": {
                "type": "array",
                "maxItems": 20,
                "description": "Ids of proofs created beforehand, linked to the new Loan. Always optional: a Loan is never gated on proofs. Create each proof first through `POST /companies/{companyId}/proofs` with no `targets`. Cannot be combined with the deprecated `attachments` in the same call. Accepted on creation only: afterwards use the `proof` endpoints.",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "required": [
              "amount",
              "currency",
              "userId",
              "paymentDestination"
            ]
          }
        ]
      },
      "Loan": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/Entity"
          },
          {
            "$ref": "#/components/schemas/LoanCreationPayload"
          },
          {
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "CREATED",
                  "BLOCKED",
                  "ACCEPTED",
                  "REFUSED",
                  "CANCELED",
                  "PAYMENT_ORDERED",
                  "PAYMENT_FAILED",
                  "PAYMENT_RETRY_REQUESTED",
                  "PAYMENT_CANCELED",
                  "TO_REPAY",
                  "PAST_DUE",
                  "REPAID"
                ]
              },
              "paymentOrderedAt": {
                "format": "date-time",
                "description": "Date by which we requested the payment to our bank.",
                "type": "string"
              },
              "paymentFailedAt": {
                "format": "date-time",
                "description": "Last date by which the Loan passed in `PAYMENT_FAILED` status",
                "type": "string"
              },
              "paidAt": {
                "format": "date-time",
                "description": "Payment date, when the loan passed in `TO_REPAY` status. ISO 8601 format.",
                "type": "string"
              },
              "repaidAt": {
                "format": "date-time",
                "description": "Date on which we received your repayment. ISO 8601 format.",
                "type": "string"
              },
              "acceptedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "refusedAt": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "repaymentReference": {
                "type": "string",
                "description": "Unique reference that can be specified during the repayment. Should be specified in the label of the bank transfer made by you or the debtor to instantly set your loan in `REPAID` status once we received the funds."
              },
              "companyId": {
                "minLength": 1,
                "type": "string"
              },
              "activeBlockReasons": {
                "type": "array",
                "description": "List of active reasons why we have blocked your Loan.",
                "items": {
                  "$ref": "#/components/schemas/ReasonWithDescription"
                }
              },
              "paymentFailureReasons": {
                "type": "array",
                "description": "List of reasons why the payment once failed",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "OTHER_REASON",
                        "PAYMENT_DESTINATION_NOT_VALID"
                      ]
                    }
                  },
                  "required": [
                    "code"
                  ]
                }
              },
              "refusalReasons": {
                "type": "array",
                "description": "List of reasons why we have refused your Loan.",
                "items": {
                  "$ref": "#/components/schemas/Reason"
                }
              },
              "instantPaymentSuccess": {
                "type": "boolean",
                "nullable": true,
                "description": "Indicates whether instant payment was successful for your payment in EUR. When it's set to `false`, it means the transaction shifted to a traditional bank transfer. If you did not request an instant payment in EUR, this will be returned as `null`."
              }
            },
            "required": [
              "companyId",
              "status",
              "attachments"
            ]
          }
        ]
      },
      "Error": {
        "required": [
          "code",
          "message",
          "status"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Text representating status code (e.g `FORBIDDEN`, `NOT_FOUND`, `SERVER_ERROR`, `BAD_REQUEST`, etc...)"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "status": {
            "type": "integer",
            "description": "HTTP Status Code (e.g 400, 403, 404, 500, etc...)"
          },
          "userInfo": {
            "type": "object",
            "properties": {},
            "description": "Optional informations concerning the error. Does not obey to any schema."
          }
        }
      }
    },
    "parameters": {
      "EndUserIpHeader": {
        "name": "x-end-user-ip",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "IP of the end-user doing the action resulting in the API call."
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      },
      "OAuth2ApplicationAuth": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://auth.helloaria.eu/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```