201Successful Response
Schema: SuccessEnvelope_MccAllowlistPreviewResponse_
successbooleanmessagestringcodestringdataMccAllowlistPreviewResponse
/api/v1/credit/programs/{program_id}/mcc-allowlist/previewBuilds the allow-list table from one source: an uploaded card export (multipart/form-data with a file part, CSV or JSON), the program's own settlements over window_days (source: settlements), or a curated list (source: preset, preset: ad_spend). Every source returns the same table: per MCC its description, transactions, spend, the Ramp category it reaches the issuer as or unmapped, and whether it is suggested. Changes nothing. Operator action.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
program_idstringrequiredsourcestringrequiredsettlements builds the table from this program's own posted settlements; preset from a curated list.
One of: settlements, preset
window_daysintegerFor settlements: how many days back from today to read. Ignored for a preset.
presetstringFor preset: which curated list. Required with preset.
min_countintegerAn MCC is suggested only when it was seen at least this many times (and maps to a Ramp category). Every preset code is suggested.
Schema: SuccessEnvelope_MccAllowlistPreviewResponse_
successbooleanmessagestringcodestringdataMccAllowlistPreviewResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.