This endpoint allows you to create a Bank Account Connection Intent.
bankAccountIdoptional stringThe id of the associated Bank Account. Required if type isenduring-payment-consent.testoptional booleanA flag which is present if the intention is to connect with a Bank Account used for testing.account-information-consentInitiates an authorization flow for authorizing access to bank account details. After a Bank Account Connection Intent has been authorized, one or more Centrapay Bank Account resources may be created.enduring-payment-consentInitiates an authorization flow for authorizing access to create payments.
testbooleanA flag which is present if the intention is to connect with a Bank Account used for testing.account-information-consentInitiates an authorization flow for authorizing access to bank account details. After a Bank Account Connection Intent has been authorized, one or more Centrapay Bank Account resources may be created.enduring-payment-consentInitiates an authorization flow for authorizing access to create payments.
errorstringThe name of the HTTP status. AlwaysBad Request.messageenumThe error code, or for a 400 a description of what's wrong with the request.Bad RequestThe request is malformed or missing required fields. The message says what's wrong, egamount is required. See 400 Malformed Request.
statusCodeintegerThe HTTP status code. Always400.
errorstringThe name of the HTTP status. AlwaysUnauthorized.messageenumThe error code, or for a 400 a description of what's wrong with the request.Missing authenticationAPI key or JWT is missing, expired or invalid. See Auth.
statusCodeintegerThe HTTP status code. Always401.
errorstringThe name of the HTTP status. AlwaysForbidden.messageenumThe error code, or for a 400 a description of what's wrong with the request.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.LIVENESS_MISMATCHOnly Bank Account Connection Intents with thetestflag can be associated with test Bank Accounts, and vice versa.
statusCodeintegerThe HTTP status code. Always403.
errorstringThe name of the HTTP status. AlwaysNot Found.messageenumThe error code, or for a 400 a description of what's wrong with the request.Not FoundThe route doesn't exist. Check the URL and HTTP method against the examples. See 404 Route Not Found.
statusCodeintegerThe HTTP status code. Always404.
errorstringThe name of the HTTP status. AlwaysToo Many Requests.messageenumThe error code, or for a 400 a description of what's wrong with the request.RATE_LIMIT_EXCEEDEDCentrapay API rate limits have been exceeded. See Rate Limits.
statusCodeintegerThe HTTP status code. Always429.
errorstringThe name of the HTTP status. AlwaysInternal Server Error.messageenumThe error code, or for a 400 a description of what's wrong with the request.An internal server error occurredSomething went wrong on our end. Retrying should solve the issue. See 5xx Server Error.
statusCodeintegerThe HTTP status code. Always500.
curl -X POST https://service.centrapay.com/api/bank-account-connection-intents \-H 'content-type: application/json' \-H 'x-api-key: <TOKEN>' \-d '{ "accountId": "B4u4WZCu3joZFVWT3XjWW3", "test": true, "type": "account-information-consent"}'{ "accountId": "B4u4WZCu3joZFVWT3XjWW3", "authorizationUrl": "https://example.com/authorization-url", "createdAt": "2022-03-31T02:56:29.000Z", "createdBy": "crn:B4u4WZCu3joZFVWT3XjWW3:api-key:MyApiKey", "id": "3KVjuKW2CZCJeJVqPxwkX7", "status": "created", "test": true, "type": "account-information-consent", "updatedAt": "2022-03-31T02:56:29.000Z", "updatedBy": "crn:B4u4WZCu3joZFVWT3XjWW3:api-key:MyApiKey"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "LIVENESS_MISMATCH", "statusCode": 403}{ "error": "Not Found", "message": "Not Found", "statusCode": 404}{ "error": "Too Many Requests", "message": "RATE_LIMIT_EXCEEDED", "statusCode": 429}{ "error": "Internal Server Error", "message": "An internal server error occurred", "statusCode": 500}