This endpoint allows you to create an Asset Program Membership.
billingBankAccountIdoptional stringThe id of the Bank Account to set as the billing bank account for the Asset Program Membership.
billingBankAccountIdstringThe id of the Bank Account to set as the billing bank account for the Asset Program Membership.
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.ACCOUNT_TYPE_INVALIDThe Account must be typeorg.ALREADY_A_MEMBER_OF_ASSET_PROGRAMThe Account is already a member of the Asset Program.BILLING_BANK_ACCOUNT_REQUIREDA billing bank account is required before the membership can be accepted or approved.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.LIVENESS_MISMATCHThe liveness of the Account doesn't match the liveness of the Asset Program.
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/asset-program-memberships \-H 'content-type: application/json' \-H 'x-api-key: <TOKEN>' \-d '{ "accept": true, "accountId": "Jaim1Cu1Q55uooxSens6yk", "approve": false, "assetProgramId": "ap_WRhAxxWpTKb5U7pXyxQjjY", "billingBankAccountId": "WRhAxxWpTKb5U7pXyxQjjY"}'{ "accountId": "Jaim1Cu1Q55uooxSens6yk", "assetProgramId": "ap_WRhAxxWpTKb5U7pXyxQjjY", "billingBankAccountId": "WRhAxxWpTKb5U7pXyxQjjY", "createdAt": "2021-08-25T00:02:49.488Z", "createdBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99", "id": "apm_Xv990BzkgfoDS7bBls50pd", "status": "created", "test": true, "tosAcceptedAt": "2021-08-25T00:03:15.123Z", "updatedAt": "2021-08-25T00:03:15.123Z", "updatedBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "ACCOUNT_TYPE_INVALID", "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}