Transactions
Process card sales, refunds, voids, authorizations and captures. Batch close operations for settlement timing.
x-cresora-status: planned in the canonical contract: they have no route on any host and return 404 (or 501 for reserved discriminator variants) until released. There is no separate preview stream, no feature flag to enable one, and no enrollment — the badge on each operation tells you whether it is served. See the stable /api/v1 reference for what you can call today. Like the stable API, these operations are server-to-server: there is no interactive console here. Download the preview spec (YAML)./transactionsAuthorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Query Parameters
Opaque pagination cursor from previous response. Do not parse.
length <= 256Items per page (1–100).
1 <= value <= 10025uuidFree-text search over opaque identifiers, trimmed before matching: case-insensitive substring on gateway_transaction_id; exact match on the transaction id or merchant_id when the value parses as a UUID; exact match on the ACH routing_number_last4 or account_number_last4 when the value is exactly 4 digits. Amount, state and type are not searched — use their dedicated parameters.
length <= 200Transaction lifecycle state. Maps to domain TransactionState. THREE_DS_PENDING, THREE_DS_FAILED, DISPUTED, CHARGED_BACK
and VERIFIED are reserved: nothing sets them today. Treat
each as a value a future release may start setting, not as a
state to wait for.
INITIATED— created and not yet submitted to the gateway, or submitted with an outcome Cresora has not yet confirmed.THREE_DS_PENDING— reserved, not set today. Would mean a 3DS challenge is outstanding, waiting for the customer to complete. The design: thethree_dsprojection would carrychallenge_url, the customer browser would be redirected there, and the ISV would then callPOST /transactions/{id}/three-ds/complete; after a 15-minute TTL a server-side sweep would move the row toTHREE_DS_FAILEDwiththree_ds_failure_reason = callback_timeout. No currentPOST /transactionscreate path issues a step-up: the saved-cardSALEcharges a vault token and sends no 3-D Secure data. This state and the completion endpoint are kept for a future card-authentication flow, and thethree_ds.*webhook types arereserveduntil one ships.THREE_DS_FAILED— reserved, not set today: it follows onlyTHREE_DS_PENDING. Terminal 3DS authentication failure. Thethree_ds_failure_reasonfield carries one of:challenge_failed,challenge_abandoned,callback_timeout,signature_invalid,unsupported_card,issuer_declined. The transaction is not authorized — no funds are held. Distinct from the genericFAILEDstate so chargeback / retry logic can dispatch on the 3DS-specific cause.AUTHORIZED— funds held, not yet capturedCAPTURED— capture submitted, awaiting settlementSUBMITTED— ACH entry accepted into the ODFI origination batch (T-4.2). Distinct fromCAPTUREDbecause card-rail void / refund / auth-reverse rules don't map onto ACH semantics. Clearing happens 1-3 banking days later via the settlement webhook (SUBMITTED → SETTLEDon cleared; a NACHA return drivesSUBMITTED → RETURNED/SETTLED → RETURNEDwith an R-code — see thetransaction.returnedwebhook).SETTLED— REPORTED settled by the gateway. Not yet verified, and not a funding confirmation. Card: the gateway's batch settlement notification; whether Cresora has verified the batch against WinkPG's settlement report is the batch's ownstateonGET /settlement/batches(RECONCILEDis the only state that asserts the money is real). ACH: the gateway reports the debit cleared; a NACHA return can still move it toRETURNED.RETURNED— terminal: the ACH entry came back with a NACHA R-code, fromSUBMITTEDorSETTLEDVOIDED— cancelled pre-settlementREFUNDED— fully refunded post-settlement (cumulative refund equals original amount)PARTIALLY_REFUNDED— one or more partial refunds issued, remaining refundable capacity > 0. Re-entrant: additional partial refunds are accepted until cumulative == original amount, at which point the state advances toREFUNDED.REVERSED— authorization released (card) or NACHA reversal (ACH)FAILED— terminal failure state; seedecline_codefor cause (covers both 3DS-specific and non-3DS failures)DISPUTED— reserved, not set today. Would mean a chargeback opened against a SETTLED transaction. Cresora does not take in chargebacks yet: a dispute opened at the gateway leaves the transaction's state unchanged, andtransaction.disputedis areservedwebhook type.CHARGED_BACK— reserved, not set today. Would mean a chargeback lost or resolved against the merchant; nothing records a chargeback outcome yet.VERIFIED— reserved, not set today. Would be the terminal state of aCARD_VERIFICATION($0 auth);POST /transactionsanswers501forCARD_VERIFICATION, so no transaction reaches it.
Value in
- "INITIATED"
- "THREE_DS_PENDING"
- "THREE_DS_FAILED"
- "AUTHORIZED"
- "CAPTURED"
- "SUBMITTED"
- "SETTLED"
- "VOIDED"
- "REFUNDED"
- "PARTIALLY_REFUNDED"
- "REVERSED"
- "RETURNED"
- "FAILED"
- "DISPUTED"
- "CHARGED_BACK"
- "VERIFIED"
Transaction type. Lists every type a stored transaction can
carry; some listed values are reserved and not produced today. RECURRING is an installment charged on a card recurring
contract: it is created by the contract's schedule, never by
POST /transactions, and settles like a sale. An ACH contract's
installment is an ACH_DEBIT. recurring_contract_id identifies
an installment on either rail.
Value in
- "AUTHORIZATION"
- "SALE"
- "CAPTURE"
- "PARTIAL_CAPTURE"
- "CAPTURE_ALL"
- "AUTH_REVERSAL"
- "PARTIAL_AUTH_REVERSAL"
- "VOID"
- "REFUND"
- "PARTIAL_REFUND"
- "CARD_VERIFICATION"
- "SURCHARGE"
- "ACH_DEBIT"
- "ACH_REFUND"
- "ACH_REVERSAL"
- "ACH_VOID"
- "ACH_RETURN"
- "RECURRING"
- "RECURRING_CREATE"
- "RECURRING_UPDATE"
- "RECURRING_CANCEL"
- "RECURRING_RETRY"
- "RECURRING_PAUSE"
- "RECURRING_RESUME"
- "RECURRING_COMPLETION"
- "REPEAT_SALE"
- "ADJUSTMENT"
- "BATCH_CLOSE"
Value in
- "ACH"
- "CARD"
Inclusive ISO-8601 lower bound on created_at. Timestamps are stored to the microsecond, so digits past the sixth fractional place are rounded up to the next microsecond: 2026-08-10T00:00:00.0000004Z is read as 2026-08-10T00:00:00.000001Z.
date-timeInclusive ISO-8601 upper bound on created_at. Timestamps are stored to the microsecond, so digits past the sixth fractional place are dropped: 2026-08-10T23:59:59.9999995Z is read as 2026-08-10T23:59:59.999999Z.
date-timeInclusive lower bound on amount (dollars).
Inclusive upper bound on amount (dollars).
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/transactions"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea", "merchant_name": "string", "type": "AUTHORIZATION", "rail": "CARD", "amount": 0, "surcharge_amount": 0, "convenience_fee_amount": 0, "currency": "USD", "state": "INITIATED", "approval_code": "string", "decline_code": "ach_returned", "decline_reason": "string", "card_last4": "string", "card_brand": "VISA", "routing_last4": "string", "account_last4": "string", "account_type": "CHECKING", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "created_at": "2019-08-24T14:15:22Z" } ], "pagination": { "next_cursor": "string", "has_more": true, "total_count": 0 }}/transactionsAuthorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Header Parameters
Client-generated unique key — a UUIDv4 is the recommended form. Cresora deduplicates within a 24-hour window scoped to the partner. On an admin console operation the 24-hour response cache is scoped to the operator instead; an operation that also records the key with the resource it creates or changes answers that key from that record, whichever operator sends it.
Format: 1–128 characters of letters, digits, . _ : -. On every write, a key over 128 characters is rejected with
400 idempotency_key_too_long and a blank or missing key with
400 idempotency_key_required. A character outside that set is
rejected with 400 validation_error by the endpoints that record or
forward the key, such as transaction creates. The character
set is narrower than base64: padded base64 (+ / =) is NOT
accepted, base64url is. The key is forwarded verbatim to the payment
gateway on transaction creates, so it must satisfy the gateway's key
contract too — rejecting locally gives you an actionable error instead
of an opaque upstream failure mid-request.
Reserved prefixes — rejected with 400 idempotency_key_reserved:
hpp:,hpp-contract:,recurring:— Cresora's own server-minted deterministic keys, rejected on any write. A client key in these namespaces could collide with a platform-generated record.rb:,inv-charge:,inv-installment:— reserved by the payment gateway for its internally-minted keys, rejected on the transaction creates, which forward the key to the gateway, and on some other writes.
Replay semantics:
- Same key + same request body → Cresora returns the cached
response from the original call. Response includes header
X-Idempotent-Replay: trueso the client can distinguish replays from fresh executions. Status code, body and side effects are identical to the original call. - Same key + different body →
422 idempotency_key_reused. Generate a new key and retry, or re-send the original body. - Key older than 24 hours → the response cache has expired.
On a create that persists the key, the created resource still
answers for as long as it exists: the same request replays it,
a different one answers
422 idempotency_key_reused.POST /transactionsis such a create: it replays from the transaction it recorded under the key, matched on key andpartner_id, which does not expire. (3-D Secure completion answers a repeat from the transaction's current state instead.) Elsewhere the key is treated as fresh.
After an indeterminate outcome. 502 gateway_outcome_unknown
means the outcome is unknown, not that the request failed: it may
have been processed. It is always retryable: false — never resend
it automatically, and never under a fresh key (a fresh key risks a
double charge or a double refund).
- Body carries
replay: "same_idempotency_key"— Cresora recorded the attempt as pending (state: INITIATED) and reconciles it automatically. Resend the identical request with the SAME key to obtain the transaction: it is not sent to the gateway again, and the answer is200with the transaction in its state at that moment, never a second charge. ThenGET /transactions/{transactionId}for its final state. That200is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what anACH_DEBIT/ACH_REFUNDgets when the gateway answers a result code Cresora does not recognise (for example one the gateway added later), or none. A card sale, refund or partial refund answeredSubmit/Pend, an unrecognised result code or none gets it too, but only while the card park flag is on, which it is in no environment. - No
replaymember — Cresora does not promise that a resend is safe. Do not resend automatically, never under a new key, and if the outcome cannot be established contact support quoting theerror_id. The core service answers this way onACH_VOID,ACH_REVERSALandCAPTURE_ALLonPOST /transactions, 3-D Secure completion,POST /merchants/{merchantId}/customersandPOST /contracts, whosedetailsays the outcome of the attempt was not recorded (a resend may repeat it). Cresora's edge answers this way for any POST, PUT or PATCH under this API whose call to its core service failed in any way that does not prove it never left (a timeout or a lost connection included), or when the load balancer in front of the core service answered a5xxitself, even when the core service went on to record the transaction.
Gateway faults on writes Cresora does not record. ACH_VOID,
ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure
completion, POST /merchants/{merchantId}/customers and POST /contracts send the
gateway a call that a resend may repeat, and no Cresora row records
the attempt. Any fault after that call may have been sent answers
502 gateway_outcome_unknown, retryable: false, without replay:
a timeout or a lost connection, a gateway 5xx, or a reply Cresora cannot read (an unparseable 2xx, a 3xx, since redirects are not followed, or a non-JSON body such as a maintenance page). Its detail says the outcome of the attempt was
not recorded. One exception, on the POST /transactions types and 3-D Secure completion: a reply carrying the gateway's create-dedup-store-unavailable error code answers the retryable gateway_unavailable whatever its HTTP status, a 5xx included. A fault that proves the call was never sent
(such as an open circuit, a full concurrency limit, a refused connection, an unresolvable host, a connect timeout, a failed TLS handshake) keeps its retryable gateway_circuit_open,
gateway_unavailable or gateway_timeout, and a resend under the
same key is safe. A gateway 4xx refusal keeps its own code, except a
408: the gateway stopped waiting on a request it may have applied, so
it answers gateway_outcome_unknown too. On
POST /contracts this is the create call: a fault in the activation
call that follows a recorded create keeps its retryable code, and a
resend under the same key resumes that contract. The hosted-page configuration writes and the
admin gateway-provisioning writes describe their own
gateway_outcome_unknown under their 502. On any write, resend
after a retryable code only under the same key, never a new one,
with one exception: retry an hpp_url_missing under a NEW key, since
the same key may return the first session again.
Cresora's edge session-auth routes (/api/auth/*) and webhook
ingress (/api/v1/webhooks/*) answer their own gateway_unavailable,
retryable: true, when their call to the core service fails, sent
or not, and when the load balancer in front of the core service answered a 5xx itself. In both cases POST /api/auth/magic-link and POST /api/auth/logout
answer 204 instead. Every 204 from POST /api/auth/magic-link
carries Retry-After: the configured sign-in cooldown length in seconds,
the same value whatever the address or the outcome, so a client can
wait it out before asking again. The gateway_unavailable answer is retryable
by design. No auth call moves money, though a resend can count a
failed password or TOTP check twice toward the lockout. The core
service deduplicates WinkPG webhook events on (provider, event_id)
and DocuSign Connect events on their event reference, and records no
Salesforce event yet, so a redelivery is safe. See
createTransaction.
Do NOT reuse keys across different partners. Scope is enforced
per partner_id so the same key in partner A and partner B
is independent.
^[A-Za-z0-9._:\-]+$1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Polymorphic request body for POST /transactions,
discriminated on type. The wire format is one flat JSON
object (mirrors the gateway's POST /api/transactions); the
variants below pin per-operation required fields so
generated SDKs stay typed.
AUTHORIZATION and CARD_VERIFICATION on card are reserved and
currently return 501 — the only card instrument is a Cresora
vault token (cvt_, delivered by an HPP save-card flow), and the
gateway wire shapes for a vault-token authorize / $0-verify are
not yet vendor-confirmed. They carry no request variant until then.
Authorize + capture in one step on a saved card, referenced by
its Cresora vault token (cvt_…) — the opaque, partner-scoped
handle returned on an hpp_session.completed webhook (or via the
stored-credentials API). Raw PAN and raw gateway tokens are never
accepted at this boundary (ADR-014 — the Cresora-identity-only
surface): a card is first captured through an HPP save-card flow,
which vaults it and yields the cvt_… reference.
use_type declares the reuse intent and drives the network
CIT/MIT classification. It must be one of the uses the credential
was vaulted with — the credential_usages declared on the HPP
session that saved the card (readable as scope on the
stored-credentials API); an intent outside that scope is refused
with 422 stored_credential_scope_violation. Every credential
carries at least one usage: the session that saves it must declare
credential_usages (enforced at session create since 2026-08):
ONE_TIME_FUTURE— cardholder-initiated (the customer is present, paying with their saved card). The convenience fee is computed server-side and the partner account's AVS policy is applied. While the merchant's surcharge program is active on the API channel, the request must carrysurcharge_disclosure_acknowledged_atandsurcharge_disclosure_channel.RECURRING/INSTALLMENT/UNSCHEDULED_COF— merchant-initiated; no convenience fee, no AVS policy and no surcharge disclosure are required or applied — the payer is not at the checkout to satisfy a step-up.custom_fields,level2_dataandlevel3_dataare validated and carried on everyuse_type.
Cresora computes no surcharge on either kind of charge. The
gateway assesses any surcharge from the merchant's surcharge
program, and surcharge_amount on the response reports what it
assessed. Whether the gateway surcharges a saved-card charge,
cardholder- or merchant-initiated, is not yet confirmed.
A declined charge is still a 200 with state = FAILED and a
decline_code. A 422 stored_credential_not_chargeable with
retryable: true means the vault entry's owning-customer link is
still being established — retry shortly, do not re-enrol the payer. With retryable: false the vault entry predates the current
charge-identity requirements — the payer must re-establish the
payment method through a save hosted-page flow.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/transactions" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "merchant_id": "01885fec-8c0f-7a31-9bbb-3e5b9a1f8c42", "type": "SALE", "amount": "50.00", "currency": "USD", "vault_token": "cvt_01885fec-4444-7a31-9bbb-3e5b9a1f8c42", "use_type": "ONE_TIME_FUTURE" }'{ "id": "01918a2f-3e7c-7219-bbb3-d8f1e2c3a4b6", "transaction_id": "01918a2f-3e7c-7219-bbb3-d8f1e2c3a4b6", "merchant_id": "01885fec-8c0f-7a31-9bbb-3e5b9a1f8c42", "type": "SALE", "state": "CAPTURED", "amount": "50.00", "currency": "USD", "entry_mode": "ECOMMERCE", "decline_code": null, "avs_response_code": "Y", "cv_response_code": null, "surcharge_amount": "0.00", "convenience_fee_amount": "0.00", "convenience_fee_disclosure_acknowledged_at": null, "convenience_fee_disclosure_channel": null, "surcharge_disclosure_acknowledged_at": null, "surcharge_disclosure_channel": null, "surcharge_applied_rate": null, "surcharge_reversed_amount": null, "tax_amount": "0.00", "three_ds": null, "three_ds_failure_reason": null, "created_at": "2026-10-14T09:12:31Z", "customer_id": "01918a2f-1111-7219-bbb3-d8f1e2c3a4b6", "custom_fields": null, "level2_data": null, "level3_data": null}/transactions/summaryAuthorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Query Parameters
uuidFree-text search over opaque identifiers, trimmed before matching: case-insensitive substring on gateway_transaction_id; exact match on the transaction id or merchant_id when the value parses as a UUID. Unlike the list operation, a 4-digit value does NOT match ACH routing/account last-4 — this read model carries no such columns. Amount, state and type are not searched — use their dedicated parameters.
length <= 200Transaction lifecycle state. Maps to domain TransactionState. THREE_DS_PENDING, THREE_DS_FAILED, DISPUTED, CHARGED_BACK
and VERIFIED are reserved: nothing sets them today. Treat
each as a value a future release may start setting, not as a
state to wait for.
INITIATED— created and not yet submitted to the gateway, or submitted with an outcome Cresora has not yet confirmed.THREE_DS_PENDING— reserved, not set today. Would mean a 3DS challenge is outstanding, waiting for the customer to complete. The design: thethree_dsprojection would carrychallenge_url, the customer browser would be redirected there, and the ISV would then callPOST /transactions/{id}/three-ds/complete; after a 15-minute TTL a server-side sweep would move the row toTHREE_DS_FAILEDwiththree_ds_failure_reason = callback_timeout. No currentPOST /transactionscreate path issues a step-up: the saved-cardSALEcharges a vault token and sends no 3-D Secure data. This state and the completion endpoint are kept for a future card-authentication flow, and thethree_ds.*webhook types arereserveduntil one ships.THREE_DS_FAILED— reserved, not set today: it follows onlyTHREE_DS_PENDING. Terminal 3DS authentication failure. Thethree_ds_failure_reasonfield carries one of:challenge_failed,challenge_abandoned,callback_timeout,signature_invalid,unsupported_card,issuer_declined. The transaction is not authorized — no funds are held. Distinct from the genericFAILEDstate so chargeback / retry logic can dispatch on the 3DS-specific cause.AUTHORIZED— funds held, not yet capturedCAPTURED— capture submitted, awaiting settlementSUBMITTED— ACH entry accepted into the ODFI origination batch (T-4.2). Distinct fromCAPTUREDbecause card-rail void / refund / auth-reverse rules don't map onto ACH semantics. Clearing happens 1-3 banking days later via the settlement webhook (SUBMITTED → SETTLEDon cleared; a NACHA return drivesSUBMITTED → RETURNED/SETTLED → RETURNEDwith an R-code — see thetransaction.returnedwebhook).SETTLED— REPORTED settled by the gateway. Not yet verified, and not a funding confirmation. Card: the gateway's batch settlement notification; whether Cresora has verified the batch against WinkPG's settlement report is the batch's ownstateonGET /settlement/batches(RECONCILEDis the only state that asserts the money is real). ACH: the gateway reports the debit cleared; a NACHA return can still move it toRETURNED.RETURNED— terminal: the ACH entry came back with a NACHA R-code, fromSUBMITTEDorSETTLEDVOIDED— cancelled pre-settlementREFUNDED— fully refunded post-settlement (cumulative refund equals original amount)PARTIALLY_REFUNDED— one or more partial refunds issued, remaining refundable capacity > 0. Re-entrant: additional partial refunds are accepted until cumulative == original amount, at which point the state advances toREFUNDED.REVERSED— authorization released (card) or NACHA reversal (ACH)FAILED— terminal failure state; seedecline_codefor cause (covers both 3DS-specific and non-3DS failures)DISPUTED— reserved, not set today. Would mean a chargeback opened against a SETTLED transaction. Cresora does not take in chargebacks yet: a dispute opened at the gateway leaves the transaction's state unchanged, andtransaction.disputedis areservedwebhook type.CHARGED_BACK— reserved, not set today. Would mean a chargeback lost or resolved against the merchant; nothing records a chargeback outcome yet.VERIFIED— reserved, not set today. Would be the terminal state of aCARD_VERIFICATION($0 auth);POST /transactionsanswers501forCARD_VERIFICATION, so no transaction reaches it.
Value in
- "INITIATED"
- "THREE_DS_PENDING"
- "THREE_DS_FAILED"
- "AUTHORIZED"
- "CAPTURED"
- "SUBMITTED"
- "SETTLED"
- "VOIDED"
- "REFUNDED"
- "PARTIALLY_REFUNDED"
- "REVERSED"
- "RETURNED"
- "FAILED"
- "DISPUTED"
- "CHARGED_BACK"
- "VERIFIED"
Transaction type. Lists every type a stored transaction can
carry; some listed values are reserved and not produced today. RECURRING is an installment charged on a card recurring
contract: it is created by the contract's schedule, never by
POST /transactions, and settles like a sale. An ACH contract's
installment is an ACH_DEBIT. recurring_contract_id identifies
an installment on either rail.
Value in
- "AUTHORIZATION"
- "SALE"
- "CAPTURE"
- "PARTIAL_CAPTURE"
- "CAPTURE_ALL"
- "AUTH_REVERSAL"
- "PARTIAL_AUTH_REVERSAL"
- "VOID"
- "REFUND"
- "PARTIAL_REFUND"
- "CARD_VERIFICATION"
- "SURCHARGE"
- "ACH_DEBIT"
- "ACH_REFUND"
- "ACH_REVERSAL"
- "ACH_VOID"
- "ACH_RETURN"
- "RECURRING"
- "RECURRING_CREATE"
- "RECURRING_UPDATE"
- "RECURRING_CANCEL"
- "RECURRING_RETRY"
- "RECURRING_PAUSE"
- "RECURRING_RESUME"
- "RECURRING_COMPLETION"
- "REPEAT_SALE"
- "ADJUSTMENT"
- "BATCH_CLOSE"
Value in
- "ACH"
- "CARD"
Inclusive ISO-8601 lower bound on the transaction's creation time as projected into reporting (source_created_at). Timestamps are stored to the microsecond, so digits past the sixth fractional place are rounded up to the next microsecond: 2026-08-10T00:00:00.0000004Z is read as 2026-08-10T00:00:00.000001Z.
date-timeInclusive ISO-8601 upper bound on the transaction's creation time as projected into reporting (source_created_at). Timestamps are stored to the microsecond, so digits past the sixth fractional place are dropped: 2026-08-10T23:59:59.9999995Z is read as 2026-08-10T23:59:59.999999Z.
date-timeResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/transactions/summary"{ "total_count": 0, "total_volume": 0, "surcharge_volume": 0, "convenience_fee_volume": 0, "count_by_state": { "property1": 0, "property2": 0 }, "count_by_rail": { "property1": 0, "property2": 0 }, "approved_count": 0, "declined_count": 0, "auth_rate": 0, "refund_count": 0, "refund_volume": 0, "open_dispute_count": 0}/transactions/exportAuthorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Query Parameters
uuidFree-text search over opaque identifiers, trimmed before matching: case-insensitive substring on gateway_transaction_id; exact match on the transaction id or merchant_id when the value parses as a UUID. Unlike the list operation, a 4-digit value does NOT match ACH routing/account last-4 — this read model carries no such columns. Amount, state and type are not searched — use their dedicated parameters.
length <= 200Transaction lifecycle state. Maps to domain TransactionState. THREE_DS_PENDING, THREE_DS_FAILED, DISPUTED, CHARGED_BACK
and VERIFIED are reserved: nothing sets them today. Treat
each as a value a future release may start setting, not as a
state to wait for.
INITIATED— created and not yet submitted to the gateway, or submitted with an outcome Cresora has not yet confirmed.THREE_DS_PENDING— reserved, not set today. Would mean a 3DS challenge is outstanding, waiting for the customer to complete. The design: thethree_dsprojection would carrychallenge_url, the customer browser would be redirected there, and the ISV would then callPOST /transactions/{id}/three-ds/complete; after a 15-minute TTL a server-side sweep would move the row toTHREE_DS_FAILEDwiththree_ds_failure_reason = callback_timeout. No currentPOST /transactionscreate path issues a step-up: the saved-cardSALEcharges a vault token and sends no 3-D Secure data. This state and the completion endpoint are kept for a future card-authentication flow, and thethree_ds.*webhook types arereserveduntil one ships.THREE_DS_FAILED— reserved, not set today: it follows onlyTHREE_DS_PENDING. Terminal 3DS authentication failure. Thethree_ds_failure_reasonfield carries one of:challenge_failed,challenge_abandoned,callback_timeout,signature_invalid,unsupported_card,issuer_declined. The transaction is not authorized — no funds are held. Distinct from the genericFAILEDstate so chargeback / retry logic can dispatch on the 3DS-specific cause.AUTHORIZED— funds held, not yet capturedCAPTURED— capture submitted, awaiting settlementSUBMITTED— ACH entry accepted into the ODFI origination batch (T-4.2). Distinct fromCAPTUREDbecause card-rail void / refund / auth-reverse rules don't map onto ACH semantics. Clearing happens 1-3 banking days later via the settlement webhook (SUBMITTED → SETTLEDon cleared; a NACHA return drivesSUBMITTED → RETURNED/SETTLED → RETURNEDwith an R-code — see thetransaction.returnedwebhook).SETTLED— REPORTED settled by the gateway. Not yet verified, and not a funding confirmation. Card: the gateway's batch settlement notification; whether Cresora has verified the batch against WinkPG's settlement report is the batch's ownstateonGET /settlement/batches(RECONCILEDis the only state that asserts the money is real). ACH: the gateway reports the debit cleared; a NACHA return can still move it toRETURNED.RETURNED— terminal: the ACH entry came back with a NACHA R-code, fromSUBMITTEDorSETTLEDVOIDED— cancelled pre-settlementREFUNDED— fully refunded post-settlement (cumulative refund equals original amount)PARTIALLY_REFUNDED— one or more partial refunds issued, remaining refundable capacity > 0. Re-entrant: additional partial refunds are accepted until cumulative == original amount, at which point the state advances toREFUNDED.REVERSED— authorization released (card) or NACHA reversal (ACH)FAILED— terminal failure state; seedecline_codefor cause (covers both 3DS-specific and non-3DS failures)DISPUTED— reserved, not set today. Would mean a chargeback opened against a SETTLED transaction. Cresora does not take in chargebacks yet: a dispute opened at the gateway leaves the transaction's state unchanged, andtransaction.disputedis areservedwebhook type.CHARGED_BACK— reserved, not set today. Would mean a chargeback lost or resolved against the merchant; nothing records a chargeback outcome yet.VERIFIED— reserved, not set today. Would be the terminal state of aCARD_VERIFICATION($0 auth);POST /transactionsanswers501forCARD_VERIFICATION, so no transaction reaches it.
Value in
- "INITIATED"
- "THREE_DS_PENDING"
- "THREE_DS_FAILED"
- "AUTHORIZED"
- "CAPTURED"
- "SUBMITTED"
- "SETTLED"
- "VOIDED"
- "REFUNDED"
- "PARTIALLY_REFUNDED"
- "REVERSED"
- "RETURNED"
- "FAILED"
- "DISPUTED"
- "CHARGED_BACK"
- "VERIFIED"
Transaction type. Lists every type a stored transaction can
carry; some listed values are reserved and not produced today. RECURRING is an installment charged on a card recurring
contract: it is created by the contract's schedule, never by
POST /transactions, and settles like a sale. An ACH contract's
installment is an ACH_DEBIT. recurring_contract_id identifies
an installment on either rail.
Value in
- "AUTHORIZATION"
- "SALE"
- "CAPTURE"
- "PARTIAL_CAPTURE"
- "CAPTURE_ALL"
- "AUTH_REVERSAL"
- "PARTIAL_AUTH_REVERSAL"
- "VOID"
- "REFUND"
- "PARTIAL_REFUND"
- "CARD_VERIFICATION"
- "SURCHARGE"
- "ACH_DEBIT"
- "ACH_REFUND"
- "ACH_REVERSAL"
- "ACH_VOID"
- "ACH_RETURN"
- "RECURRING"
- "RECURRING_CREATE"
- "RECURRING_UPDATE"
- "RECURRING_CANCEL"
- "RECURRING_RETRY"
- "RECURRING_PAUSE"
- "RECURRING_RESUME"
- "RECURRING_COMPLETION"
- "REPEAT_SALE"
- "ADJUSTMENT"
- "BATCH_CLOSE"
Value in
- "ACH"
- "CARD"
Inclusive ISO-8601 lower bound on the transaction's creation time as projected into reporting (source_created_at). Timestamps are stored to the microsecond, so digits past the sixth fractional place are rounded up to the next microsecond: 2026-08-10T00:00:00.0000004Z is read as 2026-08-10T00:00:00.000001Z.
date-timeInclusive ISO-8601 upper bound on the transaction's creation time as projected into reporting (source_created_at). Timestamps are stored to the microsecond, so digits past the sixth fractional place are dropped: 2026-08-10T23:59:59.9999995Z is read as 2026-08-10T23:59:59.999999Z.
date-timeResponse Body
text/csv
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/transactions/export""string"/transactions/{transactionId}Authorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Path Parameters
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/transactions/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea", "type": "AUTHORIZATION", "rail": "CARD", "state": "INITIATED", "amount": 0, "surcharge_amount": 0, "surcharge_reversed_amount": 0, "surcharge_applied_rate": 1, "surcharge_disclosure_acknowledged_at": "2019-08-24T14:15:22Z", "surcharge_disclosure_channel": "VIRTUAL_TERMINAL", "page_disclosure_accepted_at": "2019-08-24T14:15:22Z", "page_disclosure_text_version": "string", "convenience_fee_amount": 0, "tax_amount": 0, "currency": "USD", "entry_mode": "string", "approval_code": "string", "decline_code": "ach_returned", "decline_reason": "string", "avs_response_code": "string", "cv_response_code": "string", "billing_address": { "address1": "string", "address2": "string", "city": "string", "state": "string", "province": "string", "zip": "string", "postal_code": "string", "country": "string" }, "client_ip_address": "string", "card_last4": "string", "card_brand": "VISA", "card_funding": "CREDIT", "routing_last4": "string", "account_last4": "string", "account_type": "CHECKING", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "sec_code": "WEB", "idempotency_key": "string", "custom_fields": [ { "name": "patientId", "value": "PT48213" } ], "level2_data": { "po_number": "string", "merchant_zip": "string" }, "level3_data": { "ship_from_zip": "string", "destination_zip": "string", "destination_country_code": "string", "invoice_number": "string", "order_number": "string", "duty_amount": "string", "freight_amount": "string", "discount_amount": "string", "line_items": [ { "product_code": "string", "commodity_code": "string", "description": "string", "upc": "string", "invoice_number": "string", "tax_type": "string", "quantity": "string", "unit_of_measure": "string", "unit_price": "string", "discount_amount": "string", "total_amount": "string", "tax_amount": "string", "tax_rate": "string", "extended_amount": "string", "freight_amount": "string", "duty_amount": "string", "tax_included": true } ] }, "parent_transaction_id": "2862f816-fb62-4845-833b-6951bbef56b3", "recurring_contract_id": "06e8cf01-8f38-4d73-81db-510f9724f797", "settled_at": "2019-08-24T14:15:22Z", "settlement": { "batch_id": "01a0fb32-b700-7d4e-8f5a-6b7c8d9e0f1a", "batch_state": "RECONCILED", "verified": true, "reconciled_at": "2026-10-03T06:12:41.483921Z" }, "created_at": "2019-08-24T14:15:22Z", "available_actions": [ "capture" ], "refundable_balance": { "original": 0, "refunded_to_date": 0, "remaining": 0 }, "state_transitions": [ { "from_state": "string", "to_state": "string", "actor_type": "string", "reason": "string", "occurred_at": "2019-08-24T14:15:22Z" } ], "related_transactions": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "AUTHORIZATION", "rail": "CARD", "state": "INITIATED", "amount": 0, "parent_transaction_id": "2862f816-fb62-4845-833b-6951bbef56b3", "created_at": "2019-08-24T14:15:22Z" } ], "disputes": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "RECEIVED", "reason_category": "string", "reason_code": "string", "reason_description": "string", "amount": 0, "currency": "USD", "case_number": "string", "response_deadline": "2019-08-24", "open": true } ]}/transactions/{transactionId}/three-ds/completeAuthorization
BearerAuth Cresora API key, sent as an opaque bearer token in the
Authorization header. Format:
csk_<prefix>_<random><prefix>— 8 URL-safe chars, shown in UI and logs for identification without revealing the full key (e.g.csk_Ab3kX9mQ…). UseApiKey.prefixto match.<random>— 24+ cryptographically random URL-safe chars.
Obtain via Partner Portal → Settings → API keys. Keys are only shown in full at creation/rotation time — Cresora does not retain the full value in retrievable form. Rotate any key that may have been exposed via logs, client code, or source control.
In: header
Path Parameters
uuidHeader Parameters
Client-generated unique key — a UUIDv4 is the recommended form. Cresora deduplicates within a 24-hour window scoped to the partner. On an admin console operation the 24-hour response cache is scoped to the operator instead; an operation that also records the key with the resource it creates or changes answers that key from that record, whichever operator sends it.
Format: 1–128 characters of letters, digits, . _ : -. On every write, a key over 128 characters is rejected with
400 idempotency_key_too_long and a blank or missing key with
400 idempotency_key_required. A character outside that set is
rejected with 400 validation_error by the endpoints that record or
forward the key, such as transaction creates. The character
set is narrower than base64: padded base64 (+ / =) is NOT
accepted, base64url is. The key is forwarded verbatim to the payment
gateway on transaction creates, so it must satisfy the gateway's key
contract too — rejecting locally gives you an actionable error instead
of an opaque upstream failure mid-request.
Reserved prefixes — rejected with 400 idempotency_key_reserved:
hpp:,hpp-contract:,recurring:— Cresora's own server-minted deterministic keys, rejected on any write. A client key in these namespaces could collide with a platform-generated record.rb:,inv-charge:,inv-installment:— reserved by the payment gateway for its internally-minted keys, rejected on the transaction creates, which forward the key to the gateway, and on some other writes.
Replay semantics:
- Same key + same request body → Cresora returns the cached
response from the original call. Response includes header
X-Idempotent-Replay: trueso the client can distinguish replays from fresh executions. Status code, body and side effects are identical to the original call. - Same key + different body →
422 idempotency_key_reused. Generate a new key and retry, or re-send the original body. - Key older than 24 hours → the response cache has expired.
On a create that persists the key, the created resource still
answers for as long as it exists: the same request replays it,
a different one answers
422 idempotency_key_reused.POST /transactionsis such a create: it replays from the transaction it recorded under the key, matched on key andpartner_id, which does not expire. (3-D Secure completion answers a repeat from the transaction's current state instead.) Elsewhere the key is treated as fresh.
After an indeterminate outcome. 502 gateway_outcome_unknown
means the outcome is unknown, not that the request failed: it may
have been processed. It is always retryable: false — never resend
it automatically, and never under a fresh key (a fresh key risks a
double charge or a double refund).
- Body carries
replay: "same_idempotency_key"— Cresora recorded the attempt as pending (state: INITIATED) and reconciles it automatically. Resend the identical request with the SAME key to obtain the transaction: it is not sent to the gateway again, and the answer is200with the transaction in its state at that moment, never a second charge. ThenGET /transactions/{transactionId}for its final state. That200is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what anACH_DEBIT/ACH_REFUNDgets when the gateway answers a result code Cresora does not recognise (for example one the gateway added later), or none. A card sale, refund or partial refund answeredSubmit/Pend, an unrecognised result code or none gets it too, but only while the card park flag is on, which it is in no environment. - No
replaymember — Cresora does not promise that a resend is safe. Do not resend automatically, never under a new key, and if the outcome cannot be established contact support quoting theerror_id. The core service answers this way onACH_VOID,ACH_REVERSALandCAPTURE_ALLonPOST /transactions, 3-D Secure completion,POST /merchants/{merchantId}/customersandPOST /contracts, whosedetailsays the outcome of the attempt was not recorded (a resend may repeat it). Cresora's edge answers this way for any POST, PUT or PATCH under this API whose call to its core service failed in any way that does not prove it never left (a timeout or a lost connection included), or when the load balancer in front of the core service answered a5xxitself, even when the core service went on to record the transaction.
Gateway faults on writes Cresora does not record. ACH_VOID,
ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure
completion, POST /merchants/{merchantId}/customers and POST /contracts send the
gateway a call that a resend may repeat, and no Cresora row records
the attempt. Any fault after that call may have been sent answers
502 gateway_outcome_unknown, retryable: false, without replay:
a timeout or a lost connection, a gateway 5xx, or a reply Cresora cannot read (an unparseable 2xx, a 3xx, since redirects are not followed, or a non-JSON body such as a maintenance page). Its detail says the outcome of the attempt was
not recorded. One exception, on the POST /transactions types and 3-D Secure completion: a reply carrying the gateway's create-dedup-store-unavailable error code answers the retryable gateway_unavailable whatever its HTTP status, a 5xx included. A fault that proves the call was never sent
(such as an open circuit, a full concurrency limit, a refused connection, an unresolvable host, a connect timeout, a failed TLS handshake) keeps its retryable gateway_circuit_open,
gateway_unavailable or gateway_timeout, and a resend under the
same key is safe. A gateway 4xx refusal keeps its own code, except a
408: the gateway stopped waiting on a request it may have applied, so
it answers gateway_outcome_unknown too. On
POST /contracts this is the create call: a fault in the activation
call that follows a recorded create keeps its retryable code, and a
resend under the same key resumes that contract. The hosted-page configuration writes and the
admin gateway-provisioning writes describe their own
gateway_outcome_unknown under their 502. On any write, resend
after a retryable code only under the same key, never a new one,
with one exception: retry an hpp_url_missing under a NEW key, since
the same key may return the first session again.
Cresora's edge session-auth routes (/api/auth/*) and webhook
ingress (/api/v1/webhooks/*) answer their own gateway_unavailable,
retryable: true, when their call to the core service fails, sent
or not, and when the load balancer in front of the core service answered a 5xx itself. In both cases POST /api/auth/magic-link and POST /api/auth/logout
answer 204 instead. Every 204 from POST /api/auth/magic-link
carries Retry-After: the configured sign-in cooldown length in seconds,
the same value whatever the address or the outcome, so a client can
wait it out before asking again. The gateway_unavailable answer is retryable
by design. No auth call moves money, though a resend can count a
failed password or TOTP check twice toward the lockout. The core
service deduplicates WinkPG webhook events on (provider, event_id)
and DocuSign Connect events on their event reference, and records no
Salesforce event yet, so a redelivery is safe. See
createTransaction.
Do NOT reuse keys across different partners. Scope is enforced
per partner_id so the same key in partner A and partner B
is independent.
^[A-Za-z0-9._:\-]+$1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Completes a 3DS challenge after the customer returns from the
issuer's challenge page. The challenge_response is the
opaque token returned in the redirect query string (or
POSTed form parameter, depending on flow). merchant_id
is required so the use case can resolve the gateway
merchant context (gateway_merchant_id) without an
extra round-trip to the IAM key scope — the value MUST
match the merchant on the parent transaction, otherwise
the call is rejected as validation_error.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/transactions/497f6eca-6276-4993-bfeb-53cbbbba6f08/three-ds/complete" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "challenge_response": "string", "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482", "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea", "type": "AUTHORIZATION", "state": "INITIATED", "amount": "string", "currency": "USD", "entry_mode": "KEYED", "surcharge_amount": "string", "surcharge_reversed_amount": "string", "surcharge_applied_rate": 1, "convenience_fee_amount": "string", "convenience_fee_disclosure_acknowledged_at": "2019-08-24T14:15:22Z", "convenience_fee_disclosure_channel": "VIRTUAL_TERMINAL", "surcharge_disclosure_acknowledged_at": "2019-08-24T14:15:22Z", "surcharge_disclosure_channel": "VIRTUAL_TERMINAL", "tax_amount": "string", "decline_code": "ach_returned", "avs_response_code": "string", "cv_response_code": "string", "three_ds": { "challenge_url": "http://example.com", "acs_transaction_id": "string", "version": "2.1.0", "expires_at": "2019-08-24T14:15:22Z" }, "three_ds_failure_reason": "challenge_failed", "custom_fields": [ { "name": "patientId", "value": "PT48213" } ], "level2_data": { "po_number": "string", "merchant_zip": "string" }, "level3_data": { "ship_from_zip": "string", "destination_zip": "string", "destination_country_code": "string", "invoice_number": "string", "order_number": "string", "duty_amount": "string", "freight_amount": "string", "discount_amount": "string", "line_items": [ { "product_code": "string", "commodity_code": "string", "description": "string", "upc": "string", "invoice_number": "string", "tax_type": "string", "quantity": "string", "unit_of_measure": "string", "unit_price": "string", "discount_amount": "string", "total_amount": "string", "tax_amount": "string", "tax_rate": "string", "extended_amount": "string", "freight_amount": "string", "duty_amount": "string", "tax_included": true } ] }, "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e"}Merchants
Merchant lifecycle — create, submit for underwriting review, update, and close merchant accounts. Merchants progress through a state machine owned by Cresora Operations.
H P P
Hosted Payment Pages — Cresora-hosted checkout. PCI scope stays with Cresora + the gateway. The partner only handles the session redirect and the callback on completion.