200A dry run: the plan, written nothing.
Schema: SuccessEnvelope_PartnerExportResponse_
successbooleanmessagestringcodestringdataPartnerExportResponse
/api/v1/credit/sandbox/partner-exportSandbox only. multipart/form-data with a transactions file and optional merchants and payments files (DynamoDB export or scan output, a JSON list, or a CSV), or a pull_id from POST /credit/sandbox/partner-pulls in their place (both, or neither, is CREDIT_684; roles says which table of the pull is which when it could not be worked out), the program_id to seed, and an optional mapping (JSON naming the partner's fields, or auto). The merchants file may carry disbursement_fee_bps, rate_bps and merchant_legal_name, used to open new lines (a line the merchant already has keeps its own terms; the plan lists any the file contradicts). Two optional files, uploaded with files or with a pull_id: opening_loans (loans open before the export starts, with their fee, paid buckets and interest to date, loaded through the loan import as at opening_as_of, which is then required and must be before every transaction, payment and write-off: CREDIT_755, CREDIT_756) and write_offs (merchant, the loan's transaction id, written_off_on, optional amount; applied in date order with the payments, interest stopping on the day). Returns the plan as figures and as text, and warnings for any value that looks like a real person's email or phone number. A dry run (200) unless dry_run is false: then everything a run would refuse is refused here, and the book is written by a sandbox job (202 with the job; poll GET /credit/sandbox/jobs/{id} until succeeded, when result is this response with counts, including each payment, opening loan or write-off the engine refused and why). One seed at a time per program (CREDIT_757). Applying is refused while warnings stand unless allow_unredacted is true with a reason, which is logged and audited.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: SuccessEnvelope_PartnerExportResponse_
successbooleanmessagestringcodestringdataPartnerExportResponseSchema: SuccessEnvelope_SandboxJobResponse_
successbooleanmessagestringcodestringdataSandboxJobResponseSchema: 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.