Resolve payer names against a schema's required inputs
Given a schema and a batch of payer names, returns the schema’s own required/optional inputs plus the per-payer required inputs for each name, so you can assemble the complete input set for a specific payer before calling POST /v1/requests, instead of discovering a payer-specific field from an INVALID_INPUTS rejection. The schema-level requiredInputs/optionalInputs are identical in shape and meaning to GET /v1/schemas/{schemaId}/required-inputs; payers adds the per-payer detail.
The response carries one payers entry per payerNames entry, in input order, with no de-duplication (positionally aligned 1:1 with the request array). Each entry is either matched (inputPayerName, matchedPayerName, payerRequiredInputs.fields) or a per-payer error (inputPayerName, errorCode, message). Discriminate on the presence of errorCode. A per-payer failure never fails the whole request; whole-request failures use the uniform {error, message} envelope.
Opt-in. Gated on the enforcePayerRequiredInputs account feature. When it is off the endpoint returns 403 PAYER_REQUIRED_INPUTS_DISABLED. This is the schema-keyed twin of POST /v1/scripts/{scriptId}/required-payer-inputs. See the Per-Payer Required Inputs guide.
Authorizations
Bearer token obtained from the /v1/auth endpoint
Path Parameters
The schema ID (from GET /v1/schemas). Must be non-blank, ≤1500 characters, contain no /, and must not start with _ or ..
Body
Request body for POST /v1/schemas/{schemaId}/required-payer-inputs.
Payer names to resolve, 1–50 per request. Resolved independently, in order, with no de-duplication. The response's payers array is positionally aligned 1:1 with this array. More than 50 entries returns 400 INVALID_REQUEST (no truncation). A blank/whitespace-only entry is not a whole-request error. It comes back as a per-payer INVALID_PAYER_NAME entry in payers.
1 - 50 elementsResponse
Schema required/optional inputs plus one payers entry per requested name.
Success body from POST /v1/schemas/{schemaId}/required-payer-inputs. Carries the schema's own requiredInputs/optionalInputs (identical shape and semantics to GET /v1/schemas/{schemaId}/required-inputs) plus a payers array with one entry per requested name.
Echoes the path parameter.
One entry per payerNames entry, in input order, with no de-duplication (positionally aligned 1:1 with the request). Each item is either a MatchedPayerEntry or a PayerInputError. Discriminate on the presence of errorCode.
A payers[] entry for a name that resolved to a canonical payer. The resolved phone number is intentionally omitted: dialing happens server-side and is never echoed back.
- Option 1
- Option 2