post https://example.com/programs//enrollments/linkedaccount
Enrolls a linked user into a Product and creates the Account and Card, then links this account with parent account.
Note: If POST /LinkedAccount is called with a valid request and enrollment fails during processing, the request will
be automatically completed if the customer clears OFAC.
Name | Comment |
---|---|
200 | Success |
400 | Bad request, such as unsupported operation |
401 | Unauthorized |
HttpStatus | Code | Sub Code | Description |
---|---|---|---|
400 | 200 | 0 | AccountIdentifier is required. |
400 | 350 | 0 | AccountIdentifier is invalid. |
400 | 200 | 0 | LinkedProductCode is required. |
400 | 200 | 0 | UserProfile is required. |
400 | 200 | 0 | EncryptedUserProfile object must include data. |
400 | 200 | 0 | EncryptedUserProfile object must include ephemeralPublicKey. |
400 | 200 | 0 | EncryptedUserProfile object must include publicKeyHash. |
400 | 200 | 0 | EncryptedUserProfile object must include version. |
400 | 600 | 0 | EncryptedUserProfile object must be a valid version. |
400 | 350 | 0 | EncryptedUserProfile object must include valid base64 ephemeralPublicKey. |
400 | 350 | 0 | EncryptedUserProfile object must include valid base64 publicKeyHash. |
400 | 350 | 0 | EncryptedUserProfile object must include valid base64 data. |
400 | 200 | 0 | TermsAcceptances is required. |
400 | 1000 | 0 | TermsIdentifier is required. |
400 | 720 | 0 | termsAcceptanceDateTime must be in UTC format if provided. |
400 | 200 | 0 | TermsAcceptanceFlag is required. |
400 | 620 | 0 | termsAcceptanceDateTime must be within 720 hours of the time it was submitted. |
400 | 200 | 501 | FirstName must be at least 1 character. |
400 | 400 | 501 | FirstName must be 35 or fewer characters. |
400 | 640 | 501 | Invalid character in User data. |
400 | 400 | 502 | LastName must be at least 2 characters. |
400 | 400 | 502 | LastName must be 35 or fewer characters. |
400 | 400 | 502 | LastName must be 35 or fewer characters. |
400 | 640 | 502 | Invalid character in User data. |
400 | 640 | 503 | Invalid character in User data. |
400 | 640 | 502 | Invalid character in User data. |
400 | 200 | 0 | DateOfBirth is required. |
400 | 700 | 0 | DateOfBirth must be in the form YYYY-MM-DD. |
400 | 200 | 0 | DateOfBirth is required. |
400 | 4 | 312 | Invalid Product Material type. |
400 | 600 | 5008 | Can not get a ProductTier by the product code and productMaterialType. |
400 | 600 | 5009 | A virtual card only account is not allowed for this product. |
200 | 1000 | 0 | The product code {productCode} is unknown for program code {programCode}. |
404 | 10 | 0 | Account Not Found. |
400 | 600 | 0 | Parent account status must be healthy. |
400 | 700 | 0 | DOB is invalid, the maximum age must be 18. |