Fields
Use fields to document parameters, request body properties, headers, attributes, nested objects, defaults, and validation notes.
Fields make structured data scanable. Use them when a page needs to explain request parameters, component props, response objects, or configuration attributes.
Pair fields with examples
Fields explain the contract. A request or response example shows the contract in motion. On API pages, use both inside an ApiEndpoint.
Parameter field
Use ParamField to define API or SDK parameters. Set one location prop such as path, query, body, or header; the prop value becomes the field name and the location badge tells the reader where the value belongs.
paramstringrequiredAn example of a parameter field.
<ParamField path="param" type="string" required>
An example of a parameter field.
</ParamField>
Response field
Use ResponseField to define API return values when a page needs to show a response shape alongside request fields.
responsestringrequiredA response field example.
<ResponseField name="response" type="string" required>
A response field example.
</ResponseField>
Request fields
Create checkout session body
offerstringrequiredPublished offer slug, Sqid route key, or UUID.
›bodycustomerobject
Buyer context to attach to the checkout session when your app already knows the visitor.
customer.emailstringrequiredEmail address used for receipts, account matching, and follow-up automation.
customer.external_idstringYour app’s stable customer or account identifier.
metadataobjectOptional implementation metadata, such as source page or account ID.
Acceptstringdefault: application/jsonAsk the route to return JSON.
<Fields title="Create checkout session body" variant="list">
<ParamField body="offer" type="string" required>
Published offer slug, Sqid route key, or UUID.
</ParamField>
<ParamField body="customer" type="object" expandable>
Buyer context to attach to the checkout session.
<ParamField name="customer.email" type="string" required>
Email address used for receipts and account matching.
</ParamField>
</ParamField>
<ParamField header="Accept" type="string" default="application/json">
Ask the route to return JSON.
</ParamField>
</Fields>
Locations
Use location props when the same endpoint has path, query, body, and header fields. The location badge helps readers distinguish where each value belongs.
Endpoint inputs
offerstringrequiredOffer route key from the URL.
includeproducts | prices | componentsOptional related records to include in the response.
modemodal | hosted | inlinedefault: modalCheckout presentation mode.
Parameter field properties
Mintlify documents the ParamField API with body rows because these are props of the component, not endpoint parameters.
ParamField properties
query, path, body, or headerstringWhether the parameter is a query, path, body, or header value. The prop value becomes the parameter name.
typestringExpected type of the parameter’s value. Arrays use the [] suffix, such as string[].
requiredbooleanIndicate whether you require the parameter.
deprecatedbooleanIndicate whether you have deprecated the parameter.
defaultanyDefault value populated when the request value is empty.
placeholderstringPlaceholder text for the input in a playground or request builder.
childrenstringMarkdown-enabled description of the parameter.
Field states
Use state props to communicate required values, defaults, placeholders, deprecations, and labels without writing that information into prose.
Field state examples
success_urlstringrequiredplaceholder: https://example.com/thanksRedirect destination after a completed checkout.
cancel_urlstringoptionalRedirect destination when the buyer closes checkout.
legacy_tokenstringdeprecatedOlder URL-token integrations should move behind server-side bearer authentication.
modestringdefault: modalSDKDefault checkout presentation when no explicit mode is supplied.
Props
Mintlify documents ParamField properties with ParamField rows and ResponseField properties with ResponseField rows. Plandalf keeps that split so copied MDX reads the same way.
ResponseField properties
namestringrequiredThe name of the response value.
typestringrequiredExpected type of the response value. This can be any arbitrary string.
defaultstringThe default value.
requiredbooleanIndicate whether you require the response.
deprecatedbooleanWhether you have deprecated a field.
prestring[]Labels that appear before the name of the field.
poststring[]Labels that appear after the name of the field.
Plandalf field group extensions
titlestringSection heading shown above the field list or inside the panel header.
descriptionstringShort context for the whole group.
variantpanel | listdefault: panelUse panel for standalone API blocks and list inside ApiEndpoint sections.
icon | iconTypestringOptional shared docs icon props for the group header.
optionalbooleandefault: falseMarks a field as optional when the page wants to be explicit.
expandablebooleandefault: falseLets nested ParamField or ResponseField children collapse under an object or array field.
defaultOpenbooleandefault: falseOpens an expandable field on first render.
idstringStable anchor for direct links to a field.
class | classNamestringOptional classes for layout adjustments.
Authoring rules
- Use
variant="list"inside endpoint sections so the API block stays compact. - Use
expandablefor object and array fields with meaningful children. - Prefer
path,query,body, andheaderover encoding the location in the field text. - Do not document fake fields just to make a schema look complete.