Description
A request made with an enrollment link session token sent a subaccountId other than the subaccount the link was created for. A link session works only in its own subaccount. POST /card-subscriptions and POST /enrollment-methods answer 403 before anything is read or created.
{
"detail": "subaccountId is not the subaccount of the enrollment link session",
"title": "Forbidden",
"type": "https://docs.astrada.co/reference/errors-session_subaccount_mismatch",
"errorCode": "card_subscription.session_subaccount_mismatch"
}How to solve
Send the subaccountId of the link the session was started from. Astrada's hosted enrollment page does this for you. To enroll in another subaccount, create a link for that subaccount with POST /enrollment-links.
