201Successful Response
Schema: SuccessEnvelope_MccAllowlistApplyResponse_
successbooleanmessagestringcodestringdataMccAllowlistApplyResponse
/api/v1/credit/programs/{program_id}/mcc-allowlist/applyWrites codes as the program's allowed_mcc_codes, pushes the restriction to every live DayZero-managed card on the program's lines (as the Ramp categories the MCCs fall under), and records the source and, for an upload, the file's SHA-256 in the audit log. A card the issuer refuses is reported in cards and does not undo the list. codes: [] with unrestricted: true clears the list as a recorded decision. Operator action.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
program_idstringrequiredSchema: MccAllowlistApplyRequest
codesarray · stringThe allow list: four-digit MCCs. Duplicates are dropped and the list is stored sorted. Empty only with unrestricted: true.
sourcestringrequiredWhere the list came from: the preview source it was chosen in, or manual for a list typed or edited by hand.
One of: upload, settlements, preset, manual
file_sha256stringRequired with source: upload: the file_sha256 the preview returned. Not accepted with any other source.
unrestrictedbooleanSend true with empty codes to clear the allow list on purpose. Recorded as a decision, so the program reads as deliberately unrestricted rather than never set.
Schema: SuccessEnvelope_MccAllowlistApplyResponse_
successbooleanmessagestringcodestringdataMccAllowlistApplyResponseSchema: 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.