201Successful Response
Schema: SuccessEnvelope_PortalSessionCreateResponse_
successbooleanmessagestringcodestringdataPortalSessionCreateResponse
/api/v1/credit/lines/{credit_line_id}/portal-sessionsReturns a URL to the hosted, lender-branded borrower portal for this line. The URL holds a secret token and is returned once. The link works for ttl_hours (1 to 720) or until revoked. Without scopes, a link minted while the line has a disclosure awaiting acknowledgement also carries acknowledge. A credit:read token may mint links with the read scopes only.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
credit_line_idstringrequiredSchema: PortalSessionCreateRequest
ttl_hoursintegerHow long the link works, in hours: 1 to 720 (30 days).
scopesarray · stringWhat the link may show or do. schedule, statements and payoff are read; autopay lets the merchant switch AutoPay, cards lets them freeze and unfreeze their cards, and acknowledge lets them acknowledge a disclosure (compliance programs). Omit for schedule, statements, payoff, autopay and cards, plus acknowledge while the line has a disclosure awaiting acknowledgement. A read-only token's default is the three read scopes, and it cannot grant autopay, cards or acknowledge.
Schema: SuccessEnvelope_PortalSessionCreateResponse_
successbooleanmessagestringcodestringdataPortalSessionCreateResponseSchema: 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.