---
updatedAt: 2026-05-26T21:31:12.000Z
agentTools:
  projectIndex: https://docs.astrada.co/llms.txt
---

# Update subaccount configurations

Update a subaccount name and configurations.
All updated configurations are validated against the capabilities of the main account to ensure compliance.
It is possible to add new networks and/or regions but it is not possible to remove any configurations that were previously set.

Each network's `countries` can be set to either an array of specific ISO 3166 alpha-3 country codes, or the string `"*"` to inherit all countries from the parent account's capabilities for that network.

When using `"*"`, the subaccount will automatically reflect the parent account's current country list. If the parent account's capabilities change, subaccounts configured with `"*"` will inherit the updated countries.

The single and bulk enrollment configurations are not required when creating a subaccount, but if not provided they will default to the same country list as the main countries property for that network. The supported card types for single and bulk enrollment is CONSUMER, while the supported funding card types is DEBIT. If not provided, the block rules for both card types will default to the parent account's default block rule for that network and enrollment level. Visa consumer debit and prepaid cards are blocked at the network level regardless of these settings; see `networkBlockedCards` on the subaccount.

To set the default rule on the parent account, please reach out to your account manager or support.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Astrada API",
    "version": "2024-02-28",
    "contact": {
      "email": "developer@astrada.co"
    },
    "description": "Welcome to our API Reference. 👋\n"
  },
  "servers": [
    {
      "url": "https://api.astrada.co"
    }
  ],
  "tags": [
    {
      "name": "subaccounts",
      "description": "Subaccount resource"
    }
  ],
  "externalDocs": {
    "description": "Find out more about Astrada API.",
    "url": "https://docs.astrada.co/reference"
  },
  "paths": {
    "/subaccounts/{subaccountId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/subaccount-id-2"
        }
      ],
      "patch": {
        "tags": [
          "subaccounts"
        ],
        "summary": "Update subaccount configurations",
        "description": "Update a subaccount name and configurations.\nAll updated configurations are validated against the capabilities of the main account to ensure compliance.\nIt is possible to add new networks and/or regions but it is not possible to remove any configurations that were previously set.\n\nEach network's `countries` can be set to either an array of specific ISO 3166 alpha-3 country codes, or the string `\"*\"` to inherit all countries from the parent account's capabilities for that network.\n\nWhen using `\"*\"`, the subaccount will automatically reflect the parent account's current country list. If the parent account's capabilities change, subaccounts configured with `\"*\"` will inherit the updated countries.\n\nThe single and bulk enrollment configurations are not required when creating a subaccount, but if not provided they will default to the same country list as the main countries property for that network. The supported card types for single and bulk enrollment is CONSUMER, while the supported funding card types is DEBIT. If not provided, the block rules for both card types will default to the parent account's default block rule for that network and enrollment level. Visa consumer debit and prepaid cards are blocked at the network level regardless of these settings; see `networkBlockedCards` on the subaccount.\n\nTo set the default rule on the parent account, please reach out to your account manager or support.\n",
        "operationId": "UpdateSubaccount",
        "security": [
          {
            "main-auth": [
              "subaccounts:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "configurations": {
                    "$ref": "#/components/schemas/create-subaccount-configurations"
                  },
                  "name": {
                    "type": "string"
                  },
                  "verificationPolicy": {
                    "description": "Set or clear the subaccount's card verification policy. Customers may set any\nlevel above LOW (MEDIUM, HIGH, HIGHEST), send a null level to clear the\noverride, and toggle the `sandbox` test flag. LOW is internal-only and is\nrejected on this endpoint.\n",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/verification-policy"
                      }
                    ]
                  },
                  "enrollmentPolicy": {
                    "$ref": "#/components/schemas/customer-enrollment-policy"
                  }
                }
              },
              "examples": {
                "Update Subaccount Request Example (ignored enrollmentPolicy fields)": {
                  "value": {
                    "enrollmentPolicy": {
                      "bankEnrollment": "on",
                      "bulkEnrolment": "suggested",
                      "spinwheelEnabled": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Specified subaccount updated successfully. The body is the same effective read\nmodel `GET /subaccounts/{subaccountId}` returns (`enrollmentPolicy`,\n`bankLinkingPolicy`, `plaidEndCustomer` and `enforceIssuerCountry` resolved\nagainst the parent account, and `networkBlockedCards` resolved from the platform\nnetwork configuration), so it may include account-level and platform-level\nsettings that were not part of the request and that the subaccount stores no\nvalue for.\n\nWhen the request's `enrollmentPolicy` holds keys this endpoint does not accept, the\nbody also carries `ignoredFields`, which names each of them.\n",
            "content": {
              "application/hal+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/subaccount"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "ignoredFields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The keys of the request's `enrollmentPolicy` that this endpoint\nignored, each written as `enrollmentPolicy.<key>`: every key other than\n`cardEnrollment`, `bankEnrollment` and `bulkEnrollment`, such as a\nmisspelled key or a field Astrada manages. Nothing is stored for them,\nand the accepted keys are applied as usual. Absent when no key was\nignored.\n"
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "Example Update Subaccount Response": {
                    "$ref": "#/components/examples/subaccount"
                  },
                  "Example Update Subaccount Response (ignored enrollmentPolicy fields)": {
                    "$ref": "#/components/examples/subaccount-ignored-fields"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/bad-request"
          },
          "401": {
            "$ref": "#/components/responses/unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/forbidden"
          },
          "404": {
            "$ref": "#/components/responses/not-found"
          },
          "500": {
            "$ref": "#/components/responses/server-error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "main-auth": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://api.astrada.co/auth/realms/{accountId}/protocol/openid-connect/token",
            "refreshUrl": "https://api.astrada.co/auth/realms/{accountId}/protocol/openid-connect/token",
            "scopes": {
              "accounts:write": "Accounts write resource",
              "accounts:read": "Accounts read resource",
              "subaccounts:write": "Subaccounts write resource",
              "subaccounts:read": "Subaccounts read resource",
              "card-connector-data-links:write": "card-connector-data-link resource",
              "card-connector-consents:read": "Card Consent read resource",
              "card-connector-consents:write": "Card Consent write resource",
              "webhooks:read": "Read Webhook resources",
              "webhooks:write": "Write Webhook resources",
              "card-subscriptions:write": "Create card subscription",
              "card-subscriptions:read": "Read card subscription",
              "card-verifications:write": "Create card verification",
              "card-verifications:read": "Read Card verification",
              "cards:read": "Read Card resources",
              "cardholder:read": "Read Cardholder resources",
              "cardholder:write": "Write Cardholder resources",
              "transactions:read": "Read Transaction resources",
              "transaction-messages:read": "Read Transaction Message resources",
              "network-bulk-feeds:read": "Read network bulk feed",
              "network-bulk-feeds:write": "Write network bulk feed",
              "network-bulk-enrollments:read": "Read network bulk enrollment",
              "network-bulk-enrollments:write": "Write network bulk enrollment and confirmation",
              "network-links:write": "Write network link",
              "enrollment-methods:write": "Write enrollment methods",
              "simulation:write": "Write sandbox simulations",
              "banking:read": "Read banking resources",
              "banking:write": "Write banking resources",
              "banking:admin": "Admin banking operations",
              "appstore:enrollment:write": "Enroll cards via the appstore B2C flow",
              "appstore:cards:read": "View enrolled cards in the appstore",
              "appstore:transactions:read": "View synced transactions in the appstore",
              "appstore:transactions:sync": "Trigger transaction sync in the appstore",
              "appstore:sessions:read": "Read appstore session state",
              "appstore:sessions:write": "Write or delete appstore session state",
              "appstore:tokens:read": "Read appstore stored tokens and connections",
              "appstore:tokens:write": "Write appstore stored tokens and connections"
            }
          }
        }
      }
    },
    "parameters": {
      "subaccount-id-2": {
        "in": "path",
        "name": "subaccountId",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "24c4f90d-ab3b-4f6e-8a1d-d251a4fcf34c"
      }
    },
    "schemas": {
      "link": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string"
          },
          "templated": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "deprecation": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "hreflang": {
            "type": "string"
          }
        },
        "required": [
          "href"
        ]
      },
      "subaccount-configuration": {
        "type": "object",
        "additionalProperties": false,
        "description": "Subaccount network and regional configurations which determine the available networks and geographies during card enrollment.",
        "properties": {
          "VISA": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "type": "array",
                "description": "List of contracted regional areas for Visa",
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "enum": [
                    "USA",
                    "CAN",
                    "IRL",
                    "DEU",
                    "CZE",
                    "SWE",
                    "NLD",
                    "LTU",
                    "GBR",
                    "SVN",
                    "LUX",
                    "POL",
                    "SVK",
                    "HUN",
                    "ITA",
                    "ROU",
                    "FIN",
                    "DNK",
                    "MLT",
                    "LVA",
                    "GRC",
                    "AUT",
                    "HRV",
                    "CHE",
                    "NOR",
                    "ISL",
                    "FRA",
                    "ESP",
                    "ISR",
                    "SMR",
                    "VAT",
                    "AND",
                    "GIB",
                    "AUS",
                    "NZL",
                    "PRT",
                    "BEL",
                    "SGP"
                  ],
                  "description": "Country Code following ISO 3166 alpha-3"
                }
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for Visa single enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "IRL",
                        "DEU",
                        "CZE",
                        "SWE",
                        "NLD",
                        "LTU",
                        "GBR",
                        "SVN",
                        "LUX",
                        "POL",
                        "SVK",
                        "HUN",
                        "ITA",
                        "ROU",
                        "FIN",
                        "DNK",
                        "MLT",
                        "LVA",
                        "GRC",
                        "AUT",
                        "HRV",
                        "CHE",
                        "NOR",
                        "ISL",
                        "FRA",
                        "ESP",
                        "ISR",
                        "SMR",
                        "VAT",
                        "AND",
                        "GIB",
                        "PRT",
                        "BEL"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Visa single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Visa single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for Visa bulk enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "IRL",
                        "DEU",
                        "CZE",
                        "SWE",
                        "NLD",
                        "GBR",
                        "SVN",
                        "LUX",
                        "POL",
                        "SVK",
                        "HUN",
                        "ITA",
                        "ROU",
                        "FIN",
                        "MLT",
                        "AUT",
                        "FRA",
                        "ESP",
                        "NOR",
                        "CHE",
                        "AUS",
                        "NZL",
                        "PRT",
                        "BEL",
                        "SGP"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Visa bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Visa bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              }
            },
            "required": [
              "countries",
              "single-enrollment",
              "bulk-enrollment"
            ]
          },
          "MASTERCARD": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "type": "array",
                "description": "List of contracted regional areas for Mastercard",
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "enum": [
                    "USA",
                    "CAN",
                    "GBR",
                    "IRL",
                    "SWE",
                    "DEU",
                    "NLD",
                    "DNK",
                    "ITA",
                    "POL",
                    "FIN",
                    "BEL",
                    "ESP",
                    "FRA",
                    "PRT",
                    "AUT",
                    "GRC",
                    "MLT",
                    "NOR",
                    "CHE",
                    "ISR",
                    "AUS",
                    "NZL",
                    "SGP"
                  ],
                  "description": "Country Code following ISO 3166 alpha-3"
                }
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for Mastercard single enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "IRL",
                        "SWE",
                        "DEU",
                        "NLD",
                        "DNK",
                        "ITA",
                        "POL",
                        "FIN",
                        "BEL",
                        "ESP",
                        "FRA",
                        "PRT",
                        "AUT",
                        "GRC",
                        "MLT",
                        "NOR",
                        "CHE",
                        "ISR",
                        "AUS",
                        "NZL"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Mastercard single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Mastercard single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for Mastercard bulk enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "IRL",
                        "SWE",
                        "DEU",
                        "NLD",
                        "DNK",
                        "ITA",
                        "POL",
                        "FIN",
                        "BEL",
                        "ESP",
                        "FRA",
                        "AUT",
                        "NOR",
                        "CHE",
                        "ISR",
                        "AUS",
                        "NZL",
                        "SGP"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Mastercard bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Mastercard bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              }
            },
            "required": [
              "countries",
              "single-enrollment",
              "bulk-enrollment"
            ]
          },
          "AMEX": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "type": "array",
                "description": "List of contracted regional areas for American Express",
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "enum": [
                    "USA",
                    "CAN",
                    "GBR",
                    "ITA",
                    "SWE",
                    "AUS",
                    "NZL"
                  ],
                  "description": "Country Code following ISO 3166 alpha-3"
                }
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for AMEX single enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "ITA",
                        "SWE"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for AMEX single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for AMEX single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "countries": {
                    "type": "array",
                    "description": "List of countries supported for AMEX bulk enrollment",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "ITA",
                        "SWE",
                        "AUS",
                        "NZL"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for AMEX bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for AMEX bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                },
                "required": [
                  "countries",
                  "blockedCardTypes",
                  "blockedFundingCardTypes"
                ]
              }
            },
            "required": [
              "countries",
              "single-enrollment",
              "bulk-enrollment"
            ]
          }
        },
        "example": {
          "VISA": {
            "countries": [
              "USA",
              "CAN"
            ],
            "single-enrollment": {
              "countries": [
                "USA"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "countries": [
                "CAN"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          },
          "MASTERCARD": {
            "countries": [
              "USA"
            ],
            "single-enrollment": {
              "countries": [
                "USA"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "countries": [
                "GBR"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          },
          "AMEX": {
            "countries": [
              "ITA"
            ],
            "single-enrollment": {
              "countries": [
                "ITA"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "countries": [
                "SWE"
              ],
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          }
        }
      },
      "verification-policy": {
        "type": "object",
        "description": "Admin-managed overrides controlling how card verification is performed for an account or subaccount.\nFields are optional and nullable; absent fields leave the current value unchanged, explicit `null` clears an override.\n",
        "properties": {
          "stripeValidationLevel": {
            "type": "string",
            "nullable": true,
            "enum": [
              "HIGHEST",
              "HIGH",
              "MEDIUM",
              "LOW"
            ],
            "description": "Routes card verifications through Stripe at the specified risk tier when set.\n`null` (or absent) routes through the default TokenEx/IXOPAY (Visa) or TNS (Mastercard) path.\n\nTiers (increasing strictness):\n  * `LOW` — internal-only; 3DS engaged only when risk/regulation requires it; issuer-unsupported\n    soft declines are tolerated. Cannot be self-assigned via this endpoint.\n  * `MEDIUM` — 3DS always requested (challenge preferred); the standard tier to opt into.\n  * `HIGH` — 3DS plus a transient authorization hold (no settled charge) and added fraud signals.\n  * `HIGHEST` — 3DS challenge; if the issuer approves frictionlessly, a two-hold confirmation\n    becomes a mandatory second factor. See the \"HIGHEST Verification\" guide.\n\nNetwork note: Visa uses Stripe at every set tier; Mastercard uses its network 3DS at all tiers and\nengages Stripe only at `HIGHEST` (for the two-hold second factor).\n\nResolution: the subaccount value is operative at request time; the account-level value is the\ninheritance source applied when a subaccount is created, not a live fallback.\n"
          },
          "sandbox": {
            "type": "boolean",
            "nullable": true,
            "description": "Test flag, settable by the customer via `PATCH /subaccounts` (and internally via the\nverification-policy endpoints). When `true`, card verifications on this subaccount route KNOWN\ntest PANs through the Stripe/TNS sandbox (real cards still go live), and new bank links are\ncreated against Plaid Sandbox (Plaid test fixtures only — real bank credentials require the\nflag off), so an integrator can deterministically test against a provisioned subaccount.\nAbsent / `null` / `false` → live processing only.\n"
          },
          "failedAttemptLockout": {
            "type": "boolean",
            "nullable": true,
            "description": "When `true`, ENFORCE the cross-network attempt lockout for this tenant: a card with too many recent\nhard verification failures is refused at create (`400` `verification.attempts_locked`) before any\nprovider is called. Account-level fallback (set once for all partner subaccounts), overridable per\nsubaccount. Absent / `null` / `false` → not enforced (failures are still recorded; only enforcement\nis gated).\n"
          }
        }
      },
      "enrollment-policy": {
        "type": "object",
        "description": "Enrollment policy for an account or subaccount. Two groups of fields:\n\n**Unified-SDK rails** (`cardEnrollment`, `bankEnrollment`, `bulkEnrollment`): which\nenrollment options the unified SDK renders. Customer-writable per subaccount via\n`PATCH /subaccounts/{subaccountId}`; account-level defaults are admin-managed. Rails\nresolve live per field (subaccount value if set, else account) and reads are SPARSE:\nonly explicitly-configured rail fields are returned: an absent field means \"not\nconfigured here\" and the SDK falls back to the host page's client configuration, then\nits card-only default.\n\n**Admin fields** (`spinwheelEnabled`, `programBins`, `linkAnotherCard`): whether the\nSpinwheel enrollment option is offered, which card-program BINs identify the customer's\nprogram, and whether the success screen offers the \"Link another card\" CTA. The lock on\n`bankEnrollment` (`bankEnrollmentLocked`) is an admin field too.\nManaged only on the internal enrollment-policy endpoints.\n\nFields are optional and nullable; absent fields leave the current value unchanged, explicit\n`null` clears a field.\n",
        "properties": {
          "spinwheelEnabled": {
            "type": "boolean",
            "nullable": true,
            "description": "Master gate for offering Spinwheel enrollment. Absent / `null` / `false` → disabled.\n\nResolution: the account-level value is the master switch. A subaccount's stored value only\ntakes effect while the account's is also `true`: subaccount GETs return this **effective**\nvalue, not the stored one. Disabling at the account level is non-destructive: stored\nsubaccount values are unchanged, so re-enabling the account automatically restores\nsubaccounts whose stored value is `true`.\n\nSetting `true` on a subaccount while the parent account's gate is off is rejected with\n`400` (no escalation past the account).\n"
          },
          "linkAnotherCard": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the unified SDK's success screen offers the \"Link another card\" secondary CTA.\nAbsent / `null` = not configured: enabled by default (the SDK falls back to the host\npage's `open()` configuration, then its built-in default: shown).\n\nResolution (fail-open, unlike `spinwheelEnabled`): subaccount GETs return the **effective**\nvalue: `false` when either the account or the subaccount stores an explicit `false`,\n`true` when either side stores `true` and neither stores `false`, omitted when neither\nlevel sets it. Resolves live on every read (no create-time snapshot), so an account-level\n`false` immediately hides the CTA for every subaccount and clearing it restores stored\nsubaccount values. No account gate on writes: any value is accepted on the subaccount\nregardless of the account's value.\n"
          },
          "bulkEnrollmentEnabled": {
            "type": "boolean",
            "nullable": true,
            "deprecated": true,
            "description": "**Deprecated:** superseded by the `bulkEnrollment` tri-state rail (the SDK maps\n`true` to `suggested`, `false` to `off`, and prefers the tri-state when present).\n\nWhether the unified enrollment SDK offers bulk-enrollment steering (BIN eligibility\ncheck + bulk feed wizard) for this account/subaccount. `false` = the SDK skips the\neligibility check entirely and opens the card form directly (American Express cards\npivot to the bank-linking flow). Absent / `null` = not configured: the SDK falls\nback to the host page's client configuration, then its card-only default (bulk off).\n\nResolution: plain override-fallback: a subaccount value overrides the account value\nwhen set (no master gate; unlike `spinwheelEnabled`). An explicit `bulkEnrollment`\nflag in the SDK's `open()` config wins over this policy in SDK v1. In SDK v2 the\nserver value wins field by field over `open()`; the boolean is read only when\n`bulkEnrollment` is absent (`true` is `suggested`, `false` is `off`), and a boolean\n`bulkEnrollment` in `open()` is itself read as a set of rails (`true` is card on,\nbank `on`, bulk `suggested`; `false` is card on, bank `amex-only`, bulk `off`).\n"
          },
          "cardEnrollment": {
            "type": "boolean",
            "nullable": true,
            "description": "Unified-SDK rail: offer manual card enrollment (PAN entry + 3DS verification).\nResolution: live per-field override-fallback (subaccount value if set, else account).\n"
          },
          "bankEnrollment": {
            "type": "string",
            "nullable": true,
            "enum": [
              "off",
              "amex-only",
              "amex-visa",
              "on"
            ],
            "description": "Unified-SDK rail: offer bank linking. `on` = offered for every network that can\nlink a bank (a route after the card number in SDK v2, a chooser tile in SDK v1);\n`amex-only` = reachable only via the American Express card number; `amex-visa` = the\nAmerican Express route plus the same route for credit Visa BINs (an\ninterim mode while a program's Visa approval is pending; still reachable only\nthrough the card number; expected to be retired once approval lands: do not build\nlong-lived integrations on it); `off` = disabled. Resolution: live per-field\noverride-fallback.\n\nRollout note for `amex-visa`: SDK bundles released before this value treat it as\n`off` (lenient parsing turns an unknown rail value into the safest mode), and\n`off` disables bank linking ENTIRELY: a program sitting on `amex-only` that is\nflipped early does not merely miss the new Visa pivot, it loses its existing\nAmerican Express pivot and Amex cards cannot enroll at all. The SDK deploy must\nprecede flipping any account or subaccount to this value, and rolling the SDK\nbundle back while accounts still carry `amex-visa` re-opens the same hazard in\nreverse.\n\nAstrada can lock the account's value: while `bankEnrollmentLocked` is `true`, the\naccount's `bankEnrollment` applies to every subaccount.\n"
          },
          "bankEnrollmentLocked": {
            "type": "boolean",
            "nullable": true,
            "description": "Astrada-admin lock on the account's `bankEnrollment`. Customers cannot set it: it is\nread-only on subaccounts, and `PATCH /subaccounts/{subaccountId}` ignores it.\n\nSet on the account only, together with an account-level `bankEnrollment`. While it is\n`true`, the account's `bankEnrollment` applies to every subaccount, whatever value a\nsubaccount stores. Stored subaccount values are kept and apply again once the lock is\ncleared.\n\nSubaccount reads return `bankEnrollmentLocked: true` while the lock is on and omit the\nfield otherwise. Account reads return the stored value. While the lock is on,\n`POST /bank-links` can refuse a link that the account's `bankEnrollment` does not allow,\nwith `403` and the code `BANK_ENROLLMENT_DISABLED`.\n"
          },
          "bulkEnrollment": {
            "type": "string",
            "nullable": true,
            "enum": [
              "off",
              "suggested",
              "forced"
            ],
            "description": "Unified-SDK rail: offer network bulk-feed enrollment for bulk-capable programs.\n`suggested` = the bulk flow (the kickoff form in SDK v2, a wizard in SDK v1) offered\nnext to a connect-this-card-now option; `forced` = the bulk flow\nis the only path for bulk-capable cards; `off` = no bulk routing (direct card\nform). Supersedes the deprecated `bulkEnrollmentEnabled` boolean; when both are\nset, the SDK prefers this field. Resolution: live per-field override-fallback.\n"
          },
          "programBins": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "pattern": "^\\d{6,8}$"
            },
            "description": "The customer's card-program BIN prefixes (tier-2 manual registry), used to match cards to\nthe program during enrollment-option resolution. 6–8 digit numeric strings: both legacy\n6-digit and ISO 8-digit prefixes are accepted. Managed via customer onboarding; returned\nas stored on the subaccount (not resolved against the account).\n"
          }
        }
      },
      "subaccount-enrollment-policy": {
        "allOf": [
          {
            "$ref": "#/components/schemas/enrollment-policy"
          },
          {
            "type": "object",
            "properties": {
              "bankEnrollmentLocked": {
                "type": "boolean",
                "nullable": true,
                "readOnly": true,
                "description": "Read-only. `true` while the account has locked `bankEnrollment`, and the account's\n`bankEnrollment` then applies whatever value the subaccount stores. Absent otherwise.\nA subaccount accepts no value for it: the lock is set on the account only.\n"
              }
            }
          }
        ]
      },
      "plaid-end-customer": {
        "type": "object",
        "description": "Admin-managed policy controlling whether an account's bank links are created under the\naccount's own Plaid reseller End-Customer (EC) client instead of the shared legacy client.\nFields are optional and nullable; absent fields leave the current value unchanged, explicit\n`null` clears a field.\n",
        "properties": {
          "enabled": {
            "type": "boolean",
            "nullable": true,
            "description": "Master gate for routing this account's bank links through its own Plaid reseller\nEnd-Customer client. Absent / `null` / `false` → disabled (legacy shared client).\n\nAdmin-set, account-level. When `true`, the account's bank links are created under the\naccount's own Plaid reseller End-Customer client; once that client is provisioned and\nPlaid's registration with the relevant institutions has completed, the hosted Link\nexperience carries the account's own branding (display name and Link customization)\nrather than Astrada's. Enabling an account whose End-Customer client is not yet\nprovisioned fails link creation rather than silently falling back to the shared client.\n\nResolution is passthrough from the account onto the effective subaccount read: this\nobject is account-level only in v1 — there is no subaccount-level override — and\nsubaccount GETs return the account's stored value as their **effective** value.\n"
          }
        }
      },
      "bank-linking-policy": {
        "type": "object",
        "description": "Admin-managed policy controlling which account types and institutions are offered when\nlinking bank accounts via the hosted (Plaid) flow. Fields are optional and nullable;\nabsent fields leave the current value unchanged, explicit `null` clears a field.\n\nResolution is per-field and LIVE: a subaccount field applies when set; when absent/`null`\nthe parent account's value applies; when neither is set the field reads `null` and the\nsystem default is applied downstream at bank-link creation\n(`accountTypes: [credit]` — credit-card accounts only, the historical behavior).\nSubaccount GETs return these EFFECTIVE resolved values (nulls included — the default is\nnever materialized in reads).\n",
        "properties": {
          "accountTypes": {
            "type": "array",
            "nullable": true,
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "checking",
                "savings",
                "credit"
              ]
            },
            "description": "Account types selectable during bank linking. Enforced by the provider at link-token\ncreation (Plaid account_filters: checking/savings → depository subtypes, credit →\ncredit card); institutions offering none of the allowed types are hidden from\ninstitution search. Default: `[credit]`.\n"
          },
          "pinnedInstitutionId": {
            "type": "string",
            "nullable": true,
            "pattern": "^ins_[A-Za-z0-9]+$",
            "description": "Provider institution id to pre-select at link creation (e.g. `ins_10` for American\nExpress). NOTE: Plaid's `institution_id` pre-selection is currently rejected on\nproduction (`INVALID_INSTITUTION`) — this field is stored and forwarded only behind a\nprovider capability flag; until the provider supports it, institution limiting is\nachieved with `plaidLinkCustomizationName` plus account-type filtering.\n"
          },
          "plaidLinkCustomizationName": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "description": "Name of a Plaid Dashboard Link customization to pin on created link tokens\n(institution shortlist, Account Select mode). The customization must already exist for\nthe account's Plaid client in the Plaid Dashboard. A `POST /bank-links` may name\n`amex_only` in `filters.linkCustomizationName`, which then takes this value's place,\nand a policy `amex_only` is not applied to a link whose `bin6` does not start with `3`.\nIf Plaid refuses the name, `POST /bank-links` answers `403`\n`PLAID_CUSTOMIZATION_NOT_PROVISIONED`, except for `amex_only`, which is first retried\nonce with the environment's pinned customization in its place, or with none.\n"
          },
          "providers": {
            "type": "array",
            "nullable": true,
            "minItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "plaid",
                "mastercard"
              ]
            },
            "description": "Open-banking provider allowlist for bank-link creation. Unset/`null` = unrestricted:\nthe client's requested `provider` governs, bounded only by which providers are\nenabled on the platform. Set: a `POST /bank-links` requesting a provider outside the\nlist is rejected with `400`.\n\nThe `mastercard` rail is not yet generally available; requesting it on an\nenvironment where it is not enabled is rejected with `400`.\n"
          },
          "defaultProvider": {
            "type": "string",
            "nullable": true,
            "enum": [
              "plaid",
              "mastercard"
            ],
            "description": "Provider used when `POST /bank-links` doesn't name one. Unset/`null` = the system\ndefault (`plaid`).\n"
          },
          "defaultCountryCode": {
            "type": "string",
            "nullable": true,
            "pattern": "^[A-Z]{3}$",
            "description": "ISO 3166-1 alpha-3 country used when `POST /bank-links` doesn't name one.\nUnset/`null` = the system default (`USA`).\n"
          }
        }
      },
      "consent-policy": {
        "type": "object",
        "readOnly": true,
        "description": "Which consent records `POST /card-subscriptions` accepts for this subaccount. Astrada\nsets it, on the account as a default and on the subaccount as an override; there is no\nroute to change it. The value is the effective one: each field comes from the\nsubaccount when it sets one, otherwise from the account, except that an account `mode`\nof `off` turns the mode off for every subaccount. Absent when neither level sets a\nfield. The field is then left out of the read, never `null`. A subaccount with no\n`consentPolicy` behaves as mode `log` with every channel allowed: a consent sent to\n`POST /card-subscriptions` is checked and recorded, and nothing is refused.\n",
        "properties": {
          "allowedChannels": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "description": "The channels a consent may come from. A consent from any other channel fails with `consent_channel_not_allowed`.",
            "items": {
              "type": "string",
              "enum": [
                "sdk-unified",
                "sdk-legacy",
                "api"
              ]
            }
          },
          "mode": {
            "type": "string",
            "enum": [
              "off",
              "log",
              "enforce"
            ],
            "description": "- `off`: consent is not checked and not recorded.\n- `log`: consent is checked and the result recorded, and no request is refused.\n- `enforce`: a request whose consent fails the checks is refused.\n"
          }
        },
        "example": {
          "allowedChannels": [
            "sdk-unified",
            "api"
          ],
          "mode": "log"
        }
      },
      "subaccount": {
        "type": "object",
        "description": "A subaccount. Every representation of this resource (`GET /subaccounts/{subaccountId}`,\n`GET /subaccounts`, and the `POST /subaccounts` / `PATCH /subaccounts/{subaccountId}`\nresponses) reports the same EFFECTIVE read model: `enforceIssuerCountry`,\n`enrollmentPolicy`, `bankLinkingPolicy`, `plaidEndCustomer` and `consentPolicy` are resolved\nlive against the parent account rather than echoed as stored on the subaccount, and\n`networkBlockedCards` is resolved live from the platform network configuration. A write\nresponse therefore matches the subaccount you would read back immediately afterwards, and\ncan surface account-level and platform-level settings the subaccount stores nothing for.\n\nException: `enforceIssuerCountry` is omitted from the `GET /subaccounts` list items.\n",
        "properties": {
          "_links": {
            "type": "object",
            "required": [
              "self"
            ],
            "properties": {
              "self": {
                "$ref": "#/components/schemas/link"
              },
              "team-link": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/link"
                  }
                ],
                "description": "Only on `GET /subaccounts/{subaccountId}`: `POST /subaccounts/{subaccountId}/team-link`,\nwhich creates a team link for the subaccount, the \"Invite your team\" action. Present\nwhen enrollment links are enabled for the account, the token holds\n`card-subscriptions:write` or `subaccounts:write`, and the subaccount's card\nenrollment is on (its `enrollmentPolicy.cardEnrollment` is not `false`). Never\noffered to an enrollment link session's token. If the check cannot be made, the link\nis left out and the read still succeeds.\n"
              }
            }
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the account related to this entity."
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of this subaccount entity."
          },
          "name": {
            "type": "string",
            "description": "The name of this subaccount entity."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when this resource was created, in UTC, following ISO 8601 format."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when this resource was last updated, in UTC, following ISO 8601 format."
          },
          "configurations": {
            "$ref": "#/components/schemas/subaccount-configuration"
          },
          "verificationPolicy": {
            "$ref": "#/components/schemas/verification-policy",
            "nullable": true,
            "description": "Admin-managed card verification policy for this subaccount. Overrides the parent account's policy when set. `null` or absent means no subaccount-level override."
          },
          "enforceIssuerCountry": {
            "type": "boolean",
            "description": "Whether card enrollment is restricted to issuer countries within the account's\ncapabilities. Account-level setting, resolved onto the subaccount at read time —\nthere is no subaccount-level override, so the subaccount never stores its own\nvalue. Absent on the subaccount list; `false` when the account has not enabled it.\n"
          },
          "networkBlockedCards": {
            "type": "object",
            "readOnly": true,
            "description": "Platform-level enrollment rules resolved from the network configuration at read time.\nApplied before the subaccount's own block lists and not configurable per account or\nsubaccount. Keyed by network (`VISA`, `MASTERCARD`, `AMEX`); a network with no rules is\nomitted. A rule matches a card when `cardType` equals the BIN's `type` and\n`fundingTypes` contains the BIN's `fundingType`. An omitted or empty `fundingTypes`\nmatches every funding type. Enrolling a matching card fails with\n`card_subscription.network_blocking_card`.\n",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "single-enrollment": {
                  "type": "array",
                  "description": "Rules applied to single (SDK or API) enrollment on this network.",
                  "items": {
                    "type": "object",
                    "required": [
                      "cardType"
                    ],
                    "properties": {
                      "cardType": {
                        "type": "string",
                        "description": "The BIN `type` this rule blocks.",
                        "enum": [
                          "COMMERCIAL",
                          "CORPORATE",
                          "CONSUMER",
                          "SMALL_BUSINESS"
                        ]
                      },
                      "fundingTypes": {
                        "type": "array",
                        "description": "The BIN `fundingType` values this rule blocks. Omitted or empty means every funding type.",
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "enum": [
                            "CREDIT",
                            "DEBIT",
                            "PREPAID"
                          ]
                        }
                      }
                    }
                  }
                },
                "bulk-enrollment": {
                  "type": "array",
                  "description": "Rules applied to bulk enrollment on this network.",
                  "items": {
                    "type": "object",
                    "required": [
                      "cardType"
                    ],
                    "properties": {
                      "cardType": {
                        "type": "string",
                        "description": "The BIN `type` this rule blocks.",
                        "enum": [
                          "COMMERCIAL",
                          "CORPORATE",
                          "CONSUMER",
                          "SMALL_BUSINESS"
                        ]
                      },
                      "fundingTypes": {
                        "type": "array",
                        "description": "The BIN `fundingType` values this rule blocks. Omitted or empty means every funding type.",
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "enum": [
                            "CREDIT",
                            "DEBIT",
                            "PREPAID"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            },
            "example": {
              "VISA": {
                "single-enrollment": [
                  {
                    "cardType": "CONSUMER",
                    "fundingTypes": [
                      "DEBIT",
                      "PREPAID"
                    ]
                  }
                ],
                "bulk-enrollment": [
                  {
                    "cardType": "CONSUMER",
                    "fundingTypes": [
                      "DEBIT",
                      "PREPAID"
                    ]
                  }
                ]
              }
            }
          },
          "enrollmentPolicy": {
            "type": "object",
            "nullable": true,
            "description": "Enrollment policy. Fields are the EFFECTIVE values: `spinwheelEnabled`\nis the stored subaccount value resolved against the parent account's master switch\n(false when either side is off); the unified-SDK rails (`cardEnrollment`,\n`bankEnrollment`, `bulkEnrollment`) and the deprecated `bulkEnrollmentEnabled`\nresolve as subaccount-overrides-account, and are SPARSE — only\nexplicitly-configured fields appear; `linkAnotherCard` resolves live to `false`\nwhen either level stores an explicit `false` (absent everywhere = enabled, field\nomitted); `programBins` is returned as stored. `bankEnrollmentLocked` is read-only: it\nappears, as `true`, only while the account has locked `bankEnrollment`, and\n`bankEnrollment` is then the account's value. `null` means the subaccount stores\nno policy and neither a rail nor `linkAnotherCard` is set at the account level\n(account-level admin snapshot fields do not surface through a `null` here).\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/subaccount-enrollment-policy"
              }
            ]
          },
          "plaidEndCustomer": {
            "type": "object",
            "nullable": true,
            "description": "Plaid End-Customer routing. `enabled` is the EFFECTIVE value — resolved\nfrom the parent account. This object is account-level only: there is no\nsubaccount-level override, so the subaccount never stores its own value. `null` means\nthe account has Plaid End-Customer routing disabled.\n",
            "allOf": [
              {
                "$ref": "#/components/schemas/plaid-end-customer"
              }
            ]
          },
          "bankLinkingPolicy": {
            "$ref": "#/components/schemas/bank-linking-policy",
            "nullable": true,
            "description": "Admin-managed bank-linking policy. Fields are the EFFECTIVE values —\nper-field live resolution against the parent account (subaccount field if set,\nelse account, else `null`). A whole-`null` policy means neither level has one\nset. The credit-only system default (`accountTypes: [credit]`) is applied\ndownstream at bank-link creation, not materialized in this read.\n"
          },
          "consentPolicy": {
            "$ref": "#/components/schemas/consent-policy"
          }
        },
        "required": [
          "_links",
          "accountId",
          "id",
          "name",
          "createdAt",
          "updatedAt",
          "configurations"
        ]
      },
      "create-subaccount-configurations": {
        "type": "object",
        "additionalProperties": false,
        "description": "Subaccount network and regional configurations which determine the available networks and geographies during card enrollment.\n\nThe `countries` property for each network accepts either:\n- An array of ISO 3166 alpha-3 country codes (e.g. `[\"USA\", \"CAN\"]`)\n- The string `\"*\"` to inherit all countries from the parent account's capabilities for that network\n\nWhen `\"*\"` is used, the subaccount automatically reflects the parent account's current country list. If the parent account's capabilities change, subaccounts using `\"*\"` will inherit the updated countries. API responses always return the resolved country list, never the `\"*\"` literal.\n\nThe single and bulk enrollment configurations are not required when creating a subaccount, but if not provided they will default to the same country list as the main countries property for that network. The supported card types for single and bulk enrollment is CONSUMER, while the supported funding card types is DEBIT. If not provided, the block rules for both card types will default to the parent account's default block rule for that network and enrollment level. Visa consumer debit and prepaid cards are blocked at the network level regardless of these settings; see `networkBlockedCards` on the subaccount.\n\nTo set the default rule on the parent account, please reach out to your account manager or support.\n",
        "properties": {
          "VISA": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "oneOf": [
                  {
                    "type": "array",
                    "description": "List of contracted regional areas for Visa",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "IRL",
                        "DEU",
                        "CZE",
                        "SWE",
                        "NLD",
                        "LTU",
                        "GBR",
                        "SVN",
                        "LUX",
                        "POL",
                        "SVK",
                        "HUN",
                        "ITA",
                        "ROU",
                        "FIN",
                        "DNK",
                        "MLT",
                        "LVA",
                        "GRC",
                        "AUT",
                        "HRV",
                        "CHE",
                        "NOR",
                        "ISL",
                        "FRA",
                        "ESP",
                        "ISR",
                        "SMR",
                        "VAT",
                        "AND",
                        "GIB",
                        "AUS",
                        "NZL",
                        "PRT",
                        "BEL",
                        "SGP"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  {
                    "type": "string",
                    "enum": [
                      "*"
                    ],
                    "description": "Wildcard value that inherits all countries from the parent account's VISA capabilities.\n"
                  }
                ]
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Visa single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Visa single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Visa bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Visa bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "countries"
            ]
          },
          "MASTERCARD": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "oneOf": [
                  {
                    "type": "array",
                    "description": "List of contracted regional areas for Mastercard",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "IRL",
                        "SWE",
                        "DEU",
                        "NLD",
                        "DNK",
                        "ITA",
                        "POL",
                        "FIN",
                        "BEL",
                        "ESP",
                        "FRA",
                        "PRT",
                        "AUT",
                        "GRC",
                        "MLT",
                        "NOR",
                        "CHE",
                        "ISR",
                        "AUS",
                        "NZL",
                        "SGP"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  {
                    "type": "string",
                    "enum": [
                      "*"
                    ],
                    "description": "Wildcard value that inherits all countries from the parent account's MASTERCARD capabilities.\n"
                  }
                ]
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Mastercard single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Mastercard single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for Mastercard bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for Mastercard bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "countries"
            ]
          },
          "AMEX": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "countries": {
                "oneOf": [
                  {
                    "type": "array",
                    "description": "List of contracted regional areas for American Express",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "USA",
                        "CAN",
                        "GBR",
                        "ITA",
                        "SWE",
                        "AUS",
                        "NZL"
                      ],
                      "description": "Country Code following ISO 3166 alpha-3"
                    }
                  },
                  {
                    "type": "string",
                    "enum": [
                      "*"
                    ],
                    "description": "Wildcard value that inherits all countries from the parent account's AMEX capabilities.\n"
                  }
                ]
              },
              "single-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for AMEX single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for AMEX single enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              },
              "bulk-enrollment": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "blockedCardTypes": {
                    "type": "array",
                    "description": "Card types blocked for AMEX bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONSUMER"
                      ]
                    }
                  },
                  "blockedFundingCardTypes": {
                    "type": "array",
                    "description": "Funding card types blocked for AMEX bulk enrollment. The account's defaults for this network and enrollment mode are always added, so the stored list can include values that were not sent.",
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "DEBIT"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "countries"
            ]
          }
        },
        "example": {
          "VISA": {
            "countries": [
              "USA",
              "CAN"
            ],
            "single-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          },
          "MASTERCARD": {
            "countries": [
              "USA"
            ],
            "single-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          },
          "AMEX": {
            "countries": [
              "ITA"
            ],
            "single-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            },
            "bulk-enrollment": {
              "blockedCardTypes": [
                "CONSUMER"
              ],
              "blockedFundingCardTypes": [
                "DEBIT"
              ]
            }
          }
        }
      },
      "customer-enrollment-policy": {
        "type": "object",
        "description": "The customer-writable subset of the enrollment policy: the three unified-SDK\nrails. All other fields (`spinwheelEnabled`, `programBins`, `linkAnotherCard`,\n`bankEnrollmentLocked`, and the deprecated `bulkEnrollmentEnabled`) are managed\non the internal enrollment-policy endpoints and are ignored if sent here. The\n`200` names every ignored key, these and misspelled ones alike, in `ignoredFields`.\n\nFields are optional and nullable; absent fields leave the current value\nunchanged, explicit `null` clears the subaccount-level value. A cleared\nrail falls back to the account-level value when one is set; only when\nneither level sets the rail does it disappear from reads, letting the\nhost page's client configuration and then the SDK's card-only default\napply.\n",
        "properties": {
          "cardEnrollment": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the unified SDK offers manual card enrollment (PAN entry + 3DS\nverification).\n"
          },
          "bankEnrollment": {
            "type": "string",
            "nullable": true,
            "enum": [
              "off",
              "amex-only",
              "amex-visa",
              "on"
            ],
            "description": "Whether the unified SDK offers bank linking. In SDK v2 the bank link is a\nroute after the card number, not a separate tile: `on` offers it for every\nnetwork that can link a bank (SDK v1 shows a chooser tile instead);\n`amex-only` keeps it reachable only via the American Express card number;\n`amex-visa` is the American Express route plus the same route for credit Visa\nBINs (a temporary mode for programs whose Visa approval is pending: expect it to be\nretired once approval lands; do not build long-lived integrations on\nit); `off` disables it (American Express cards then can't enroll unless\na bulk program qualifies).\n\nBefore setting `amex-visa`, confirm with your Astrada contact that the\nSDK release supporting it is live: older SDK bundles treat unknown rail\nvalues as `off`, which disables bank linking entirely, the existing\nAmerican Express pivot included.\n\nAstrada can lock the account's `bankEnrollment`: the subaccount's\n`enrollmentPolicy` then returns `bankEnrollmentLocked: true`. While it is\nlocked, the account's value applies. The value you set here is kept, and\nhas no effect until the lock is removed.\n"
          },
          "bulkEnrollment": {
            "type": "string",
            "nullable": true,
            "enum": [
              "off",
              "suggested",
              "forced"
            ],
            "description": "Whether the unified SDK offers network bulk-feed enrollment for\nbulk-capable programs. In SDK v2 the bulk flow is the kickoff form, reached\nfrom the program screen or the callout after the card number (SDK v1 shows a\nbulk wizard). `suggested` offers it next to a connect-this-card-now option;\n`forced` makes it the only path for bulk-capable cards; `off` skips bulk\nrouting entirely (direct card form).\n"
          }
        }
      }
    },
    "responses": {
      "bad-request": {
        "description": "The server cannot or will not process the request due to something that is perceived to be a client error",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Bad Request"
                  ]
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "detail": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "detail"
                    ]
                  }
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "examples": {
              "Example Generic Bad Request Payload Response": {
                "value": {
                  "title": "Bad Request",
                  "detail": "Request object failed validation."
                }
              },
              "Example Generic Bad Request Parameters Response": {
                "value": {
                  "title": "Bad Request",
                  "detail": "Request parameters are invalid."
                }
              }
            }
          }
        }
      },
      "unauthorized": {
        "description": "Authentication credentials were either missing or incorrect",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Unauthorized"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Unauthorized",
              "detail": "Authentication credentials were either missing or incorrect."
            }
          }
        }
      },
      "forbidden": {
        "description": "Authentication credentials used do not have have permissions to perform the request",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Forbidden"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Forbidden",
              "detail": "You do not have permission to access the requested resource."
            }
          }
        }
      },
      "server-error": {
        "description": "The server encountered an unexpected condition that prevented it from fulfilling the request",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Internal Server Error"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Internal Server Error",
              "detail": "The server encountered an unexpected condition that prevented it from fulfilling the request."
            }
          }
        }
      },
      "not-found": {
        "description": "The requested resource was not found on the server",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "instance": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "enum": [
                    "Not Found"
                  ]
                }
              },
              "required": [
                "detail",
                "title"
              ]
            },
            "example": {
              "title": "Not Found",
              "detail": "The requested resource was not found on the server."
            }
          }
        }
      }
    },
    "examples": {
      "subaccount": {
        "description": "Example of Subaccount resource",
        "value": {
          "_links": {
            "self": {
              "href": "/subaccounts/81e7c267-0927-4234-a2bd-78cef799de54"
            }
          },
          "accountId": "073fe1bb-3350-46ad-b3a6-32afb3780994",
          "id": "81e7c267-0927-4234-a2bd-78cef799de54",
          "name": "Subaccount A",
          "createdAt": "2024-05-01T17:08:43.810Z",
          "updatedAt": "2024-05-01T17:08:43.810Z",
          "configurations": {
            "VISA": {
              "countries": [
                "USA",
                "CAN"
              ],
              "single-enrollment": {
                "countries": [
                  "USA"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              },
              "bulk-enrollment": {
                "countries": [
                  "CAN"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              }
            },
            "MASTERCARD": {
              "countries": [
                "USA"
              ],
              "single-enrollment": {
                "countries": [
                  "USA"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              },
              "bulk-enrollment": {
                "countries": [
                  "GBR"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              }
            },
            "AMEX": {
              "countries": [
                "ITA"
              ],
              "single-enrollment": {
                "countries": [
                  "ITA"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              },
              "bulk-enrollment": {
                "countries": [
                  "SWE"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              }
            }
          }
        }
      },
      "subaccount-ignored-fields": {
        "description": "Example of an updated Subaccount whose request sent enrollmentPolicy keys the endpoint ignores (a misspelled bulkEnrolment and the Astrada-managed spinwheelEnabled)",
        "value": {
          "_links": {
            "self": {
              "href": "/subaccounts/81e7c267-0927-4234-a2bd-78cef799de54"
            }
          },
          "accountId": "073fe1bb-3350-46ad-b3a6-32afb3780994",
          "id": "81e7c267-0927-4234-a2bd-78cef799de54",
          "name": "Subaccount A",
          "createdAt": "2024-05-01T17:08:43.810Z",
          "updatedAt": "2026-11-03T18:20:11.402Z",
          "configurations": {
            "VISA": {
              "countries": [
                "USA"
              ],
              "single-enrollment": {
                "countries": [
                  "USA"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              },
              "bulk-enrollment": {
                "countries": [
                  "USA"
                ],
                "blockedCardTypes": [
                  "CONSUMER"
                ],
                "blockedFundingCardTypes": [
                  "DEBIT"
                ]
              }
            }
          },
          "enrollmentPolicy": {
            "bankEnrollment": "on"
          },
          "ignoredFields": [
            "enrollmentPolicy.bulkEnrolment",
            "enrollmentPolicy.spinwheelEnabled"
          ]
        }
      }
    }
  }
}
```