This endpoint allows you to set the onboarding status of a Business.
activeIdentifies businesses that have been activated for Centrapay services successfully (i.e. they have successfully created a Payment Request).appliedIdentifies businesses that have registered to be activated for the Centrapay service.archivedIdentifies businesses that have been removed from the Centrapay service.deactivatedIdentifies businesses that have been de-registered for the Centrapay service.Allowed Reasons: data-quality-issues, change-of-ownership, centrapay-discontinued, duplicate, blocked, lapsed
on-holdIdentifies businesses that have been placed on hold.Allowed Reasons: seasonal-business-closure, no-response
provisioningIdentifies businesses that are in the process of being activated for the Centrapay service.
blockedThe business has been blocked from using Centrapay.centrapay-discontinuedThe business is no longer using Centrapay.change-of-ownershipThe business has changed ownership.data-quality-issuesData quality issues are preventing the business from onboarding.duplicateThe business already exists in the Centrapay system.lapsedThe business's Centrapay service has lapsed.no-responseNo response has been received from the business.seasonal-business-closureThe business has closed temporarily.
activeIdentifies businesses that have been activated for Centrapay services successfully (i.e. they have successfully created a Payment Request).appliedIdentifies businesses that have registered to be activated for the Centrapay service.archivedIdentifies businesses that have been removed from the Centrapay service.deactivatedIdentifies businesses that have been de-registered for the Centrapay service.Allowed Reasons: data-quality-issues, change-of-ownership, centrapay-discontinued, duplicate, blocked, lapsed
on-holdIdentifies businesses that have been placed on hold.Allowed Reasons: seasonal-business-closure, no-response
provisioningIdentifies businesses that are in the process of being activated for the Centrapay service.
blockedThe business has been blocked from using Centrapay.centrapay-discontinuedThe business is no longer using Centrapay.change-of-ownershipThe business has changed ownership.data-quality-issuesData quality issues are preventing the business from onboarding.duplicateThe business already exists in the Centrapay system.lapsedThe business's Centrapay service has lapsed.no-responseNo response has been received from the business.seasonal-business-closureThe business has closed temporarily.
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.
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/businesses/DKTs3U38hdhfEqwF1JKoT2/set-onboarding-status \-H 'content-type: application/json' \-H 'x-api-key: <TOKEN>' \-d '{ "onboardingStatus": "deactivated", "onboardingStatusReason": "change-of-ownership"}'{ "activityNumber": "2", "businessId": "DKTs3U38hdhfEqwF1JKoT2", "createdAt": "2020-06-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "onboardingStatus": "deactivated", "onboardingStatusReason": "change-of-ownership", "type": "set-onboarding-status"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "Forbidden", "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}