201Successful Response
Schema: SuccessEnvelope_SandboxCardTransactionResponse_
successbooleanmessagestringcodestringdataSandboxCardTransactionResponse
/api/v1/credit/sandbox/card-transactionsSandbox only. Reports a transaction on a mock-issued card the way Ramp's webhook would, and sends it through the same ingest: a cleared purchase becomes a loan with no call from you, a negative amount is a refund, a voided one reverses the loan (or holds it when money was paid on it), a disputed one opens a hold. Returns what happened. A card on a live issuer program is CREDIT_710; a void or dispute of a transaction the book does not hold is CREDIT_711.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: SandboxCardTransactionRequest
card_idstringrequiredThe card's id from POST /credit/cards. The card must be on a program whose issuer is the mock issuer (CREDIT_710 otherwise).
kindstringcleared: the issuer reports a purchase (or, with a negative amount, a refund) as settled. voided: it now reports a cleared transaction voided. disputed: it lists a dispute on one.
One of: cleared, voided, disputed
amount_centsintegercleared only, required. Signed cents: positive is a purchase, negative a refund. Ignored for the other kinds, which read the amount from the transaction already recorded.
merchant_namestringcleared only. The merchant.
merchant_category_codestringcleared only. Four-digit merchant category code.
settled_onstring · datecleared only. The settlement date. Defaults to today, and may be later on a sandbox.
issuer_transaction_idstringThe issuer's transaction id. Optional for cleared (one is generated and returned; sending the same id again is a duplicate, not a second loan). Required for voided and disputed, which name a transaction recorded earlier (CREDIT_711 if there is none).
refund_of_issuer_transaction_idstringcleared with a negative amount: the transaction it refunds.
Schema: SuccessEnvelope_SandboxCardTransactionResponse_
successbooleanmessagestringcodestringdataSandboxCardTransactionResponseSchema: 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.