This is an opt-in capability. Ask your account team to enable it. When it’s off, a request’s required inputs are exactly the fields returned by
GET /v1/schemas/{schemaId}/required-inputs.What changes
Which inputs are required can depend on the payer you name ininputs.payerName. A field that’s optional for one payer may be required for another, so the schema’s required-input list is the baseline, not always the complete list for a specific payer.
How to handle it
If a request is missing an input a payer requires,POST /v1/requests returns INVALID_INPUTS with the field listed in details.missingInputs, the same response as any other missing required input:
- Add whatever appears in
details.missingInputsand retry. That list tells you exactly what the request still needs. - Send every input you have. Populating the optional fields from the schema lookup, not just the required ones, avoids most payer-specific rejections.
- Ask your account team which payers have additional requirements if you’d like to supply them up front.
Look up per-payer required inputs up front
To avoid the reject-and-retry loop entirely, resolve the payers you’re about to submit before creating requests withPOST /v1/schemas/{schemaId}/required-payer-inputs. Post a batch of payer names and get back the extra inputs each payer requires on top of the schema baseline:
- The top-level
requiredInputs/optionalInputsare the same schema baseline you get fromGET /v1/schemas/{schemaId}/required-inputs. payerRequiredInputs.fieldslists only the additional inputs that payer requires beyond the baseline, not the full set. Union it withrequiredInputs.fieldsto get everything a request for that payer needs. In the example,Sample Insurance Company, Inc.needsclaimNumberon top of the schema’smemberId,payerName, andphoneNumber.- Each
payersentry lines up 1:1 with the names you sent, in order. A matched entry carriespayerRequiredInputs; an unmatched entry carries anerrorCode(INVALID_PAYER_NAME,PAYER_NOT_FOUND, orPAYER_LOOKUP_FAILURE) instead. Check forerrorCodeto tell them apart. - A payer that fails to resolve doesn’t fail the whole call: only that entry reports an error.
Same opt-in as above. When the capability is off, this endpoint returns
403 PAYER_REQUIRED_INPUTS_DISABLED.