This endpoint allows you to request a Bank Account Approval.
account-information-consentAnapprovedBank Account Approval of typeaccount-information-consentprovides an access token to read account details from a third-party.enduring-payment-consentAnapprovedBank Account Approval of typeenduring-payment-consentprovides an access token for creating payments with a third-party.settlementAnapprovedBank Account Approval of typesettlementis required for the funds in a Settlement Wallet Asset to be released. A Media Upload is uploaded by the user to provide evidence of ownership of the Bank Account to be approved.
approvalActivitiesarray of objectsAn array of Bank Account Approval Activities associated with the Bank Account Approval.approvedThe approval was accepted and is being finalised.createdThe approval has been requested and isn't queued for review yet.declinedThe approval was declined and is being finalised.doneProcessing is complete. The outcome is shown in the Bank Account's approval summary.pendingWaiting for Centrapay to review the approval.
account-information-consentAnapprovedBank Account Approval of typeaccount-information-consentprovides an access token to read account details from a third-party.enduring-payment-consentAnapprovedBank Account Approval of typeenduring-payment-consentprovides an access token for creating payments with a third-party.settlementAnapprovedBank Account Approval of typesettlementis required for the funds in a Settlement Wallet Asset to be released. A Media Upload is uploaded by the user to provide evidence of ownership of the Bank Account to be approved.
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.APPROVAL_ALREADY_IN_PROGRESSThere is already a Bank Account Approval in progress that is awaiting review from Centrapay.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.
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-approvals \-H 'content-type: application/json' \-H 'x-api-key: <TOKEN>' \-d '{ "bankAccountId": "WRhAxxWpTKb5U7pXyxQjjY", "mediaUploadId": "uooxSens6ykJaim1Cu1Q55", "type": "settlement"}'{ "accountId": "Jaim1Cu1Q55uooxSens6yk", "bankAccountId": "WRhAxxWpTKb5U7pXyxQjjY", "createdAt": "2021-11-08T21:52:39.915Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "id": "DcTs3U38HdhfEqwF1GKoT3", "mediaUploadId": "uooxSens6ykJaim1Cu1Q55", "modifiedAt": "2021-11-08T21:52:39.915Z", "modifiedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "status": "created", "type": "settlement"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "APPROVAL_ALREADY_IN_PROGRESS", "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}