Skip to main content
Skip to Content
Cresora Commerce

Merchants

Merchant lifecycle — create, submit for underwriting review, update, and close merchant accounts. Merchants progress through a state machine owned by Cresora Operations.

ℹServer-to-server API
Run the examples on this page from your backend against the sandbox host. The API sends no CORS headers, so browser JavaScript cannot read its responses, and an API key must never be exposed in a browser. There is no interactive console here. Generating a client instead? Download the OpenAPI spec (YAML).
ℹThe reference can be ahead of the sandbox
It is generated from the latest version of the API contract, so an operation, field or error code listed here may not be available on the sandbox yet.

List merchants

GET/merchants

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

cursor?string

Opaque pagination cursor from previous response. Do not parse.

Lengthlength <= 256
page_size?integer

Items per page (1–200).

Range1 <= value <= 200
Default50
q?string

Free-text search, trimmed, case-insensitive, matching at any position: the business name, DBA, contact name, contact email, city and MCC, and the merchant's active processor MIDs as typed or without separators. A whole merchant id, with or without its hyphens, matches that merchant alone; a partial id matches as text. %, _ and \ match only themselves. A + in a query string reads as a space: percent-encode it as %2B.

Refused with 400 validation_error on q, without repeating the value, when it is longer than 200 characters after trimming, holds a control or format character, or holds what looks like a card number (13 to 19 digits in whole groups that pass the Luhn check, or any one group of more than 19 digits) or a US tax id (an EIN like 12-3456789, an SSN or ITIN like 123-45-6789). Digits split by any run of characters that are neither letters nor digits count as one run, as do digits split by a modifier letter or by one letter that is not a Latin letter with case; fullwidth or other Unicode digits count as digits. A whole merchant id with a hex letter in it is never refused; one with no letter is screened like any text.

The refusal keeps the value out of Cresora's database, and out of its application logs unless the request crashes the API edge, but not out of its access logs: the load balancers and the WAF record the request URL, query included, before any service reads it, and production keeps those logs for 365 days. Never search for a card number or a tax id.

state?array<>

Merchants in any of these states. Closed merchants are never listed here: a close removes the merchant from the partner's list.

mcc?array<>

Merchants with any of these merchant category codes, matched exactly. At most 50 codes, duplicates counted.

Itemsitems <= 50
processor?array<>

Merchants with an active MID on any of these processors.

waiting_on?array<>

Merchants whose waiting_on is any of these values when the page is read. Each row's waiting_on comes from a second read just after it, so a merchant that changes in between shows its newer value, which can fall outside this filter.

status_changed_from?string

Merchants whose status_changed_at is at or after this instant (RFC 3339, with an offset). Percent-encode a + offset as %2B. Timestamps are stored to the microsecond, so digits past the sixth fractional place are rounded up to the next microsecond.

Formatdate-time
clarification_kind?array<>

Narrows the AWAITING_CLARIFICATION merchants to those whose clarification_kind is any of these; merchants in every other state pass. A merchant parked before the ask's kind was recorded has no kind and matches none.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants"
{  "data": [    {      "id": "01885fec-8c0f-7a31-9bbb-3e5b9a1f8c42",      "partner_id": "01885d7a-1234-7abc-8def-987654321fed",      "business_name": "Acme Pharmacy LLC",      "dba": "Acme Pharmacy",      "business_city": "Tulsa",      "contact_email": "owner@example.com",      "contact_name": "Sarah Chen",      "state": "LIVE",      "waiting_on": "NONE",      "status_changed_at": "2026-04-02T09:15:00Z",      "merchant_category_code": "5912",      "channel": "CNP_ONLY",      "processor_mids": [        {          "processor": "TSYS",          "mid": "880012345678"        }      ],      "gateway_merchant_id": "wpg_m_8745",      "location_count": 2,      "resubmission_count": 0,      "resubmission_limit": 3,      "resubmission_pending": false,      "created_at": "2026-03-12T14:23:45Z",      "version": 7    }  ],  "pagination": {    "next_cursor": "eyJpZCI6IjAxODg1ZmVjLThjMGYtN2EzMSJ9",    "has_more": true,    "total_count": 147  }}

Create merchant (DRAFT)

POST/merchants

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Create a merchant under the authenticated partner.

The DRAFT minimum is a legal business name and an MCC. Every other field here is optional at create, so a draft can be saved before the primary contact is known. Submit (DRAFT → SUBMITTED) then requires contact_email and the authorized signer, among the fields its 400 lists.

Whether a merchant transacts with real funds is governed by the gateway-side test flag on its reseller/merchant registration — the platform itself carries no per-merchant environment field. Onboarding a merchant for real processing requires partner certification to be CERTIFIED (see Capabilities.certification_status).

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

curl -X POST "https://example.com/merchants" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "business_name": "Acme Pharmacy LLC",    "contact_email": "owner@example.com",    "contact_name": "Sarah Chen",    "merchant_category_code": "5912"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}

Count merchants by state

GET/merchants/summary

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

q?string

Free-text search, trimmed, case-insensitive, matching at any position: the business name, DBA, contact name, contact email, city and MCC, and the merchant's active processor MIDs as typed or without separators. A whole merchant id, with or without its hyphens, matches that merchant alone; a partial id matches as text. %, _ and \ match only themselves. A + in a query string reads as a space: percent-encode it as %2B.

Refused with 400 validation_error on q, without repeating the value, when it is longer than 200 characters after trimming, holds a control or format character, or holds what looks like a card number (13 to 19 digits in whole groups that pass the Luhn check, or any one group of more than 19 digits) or a US tax id (an EIN like 12-3456789, an SSN or ITIN like 123-45-6789). Digits split by any run of characters that are neither letters nor digits count as one run, as do digits split by a modifier letter or by one letter that is not a Latin letter with case; fullwidth or other Unicode digits count as digits. A whole merchant id with a hex letter in it is never refused; one with no letter is screened like any text.

The refusal keeps the value out of Cresora's database, and out of its application logs unless the request crashes the API edge, but not out of its access logs: the load balancers and the WAF record the request URL, query included, before any service reads it, and production keeps those logs for 365 days. Never search for a card number or a tax id.

state?array<>

Merchants in any of these states. Closed merchants are never listed here: a close removes the merchant from the partner's list.

mcc?array<>

Merchants with any of these merchant category codes, matched exactly. At most 50 codes, duplicates counted.

Itemsitems <= 50
processor?array<>

Merchants with an active MID on any of these processors.

waiting_on?array<>

Merchants whose waiting_on is any of these values when the page is read. Each row's waiting_on comes from a second read just after it, so a merchant that changes in between shows its newer value, which can fall outside this filter.

status_changed_from?string

Merchants whose status_changed_at is at or after this instant (RFC 3339, with an offset). Percent-encode a + offset as %2B. Timestamps are stored to the microsecond, so digits past the sixth fractional place are rounded up to the next microsecond.

Formatdate-time
clarification_kind?array<>

Narrows the AWAITING_CLARIFICATION merchants to those whose clarification_kind is any of these; merchants in every other state pass. A merchant parked before the ask's kind was recorded has no kind and matches none.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/summary"
{  "total_count": 0,  "count_by_state": {    "property1": 1,    "property2": 1  },  "awaiting_clarification_by_kind": {    "property1": 1,    "property2": 1  }}

Get merchant

GET/merchants/{merchantId}

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}
PATCH/merchants/{merchantId}

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Partial update. Only provided fields are modified. Only allowed while merchant is in DRAFT state.

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

curl -X PATCH "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}
POST/merchants/{merchantId}/submit

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/submit" \  -H "Idempotency-Key: string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}
POST/merchants/{merchantId}/resubmit

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/resubmit" \  -H "Idempotency-Key: string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}
POST/merchants/{merchantId}/respond-clarification

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/respond-clarification" \  -H "Idempotency-Key: string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "business_name": "string",  "dba": "string",  "business_city": "string",  "contact_email": "user@example.com",  "contact_name": "string",  "authorized_signer_name": "string",  "authorized_signer_email": "string",  "authorized_signer_phone": "string",  "merchant_category_code": "string",  "state": "DRAFT",  "waiting_on": "PARTNER",  "status_changed_at": "2019-08-24T14:15:22Z",  "channel": "CNP_ONLY",  "processor_mids": [    {      "processor": "TSYS",      "mid": "string"    }  ],  "gateway_merchant_id": "string",  "location_count": 0,  "hipaa_baa_status": "NOT_REQUIRED",  "hipaa_baa_document_status": "NOT_UPLOADED",  "pci_saq_type": "A",  "pci_saq_document_status": "NOT_UPLOADED",  "clarification_message": "string",  "clarification_kind": "APPLICATION_DATA",  "rejection_reason_code": "REJ_001",  "rejection_reason": "string",  "esign_envelope": {    "status": "SENT",    "sent_at": "2019-08-24T14:15:22Z",    "last_status_at": "2019-08-24T14:15:22Z",    "reissue_count": 0,    "delivery": "EMAIL"  },  "restriction_reason": "string",  "resubmission_count": 0,  "resubmission_limit": 0,  "resubmission_pending": true,  "submitted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "version": 0}
POST/merchants/{merchantId}/envelope/resend

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/envelope/resend" \  -H "Idempotency-Key: string"
{  "status": "SENT",  "sent_at": "2019-08-24T14:15:22Z",  "last_status_at": "2019-08-24T14:15:22Z",  "reissue_count": 0,  "delivery": "EMAIL"}
GET/merchants/{merchantId}/envelope/transitions

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Query Parameters

cursor?string

Opaque pagination cursor from previous response. Do not parse.

Lengthlength <= 256
page_size?integer

Items per page (1–200).

Range1 <= value <= 200
Default50

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/envelope/transitions"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "from_status": "SENT",      "to_status": "SENT",      "actor_type": "PARTNER",      "actor_id": "string",      "actor_label": "string",      "occurred_at": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "next_cursor": "string",    "has_more": true,    "total_count": 0  }}
GET/merchants/{merchantId}/transitions

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Query Parameters

cursor?string

Opaque pagination cursor from previous response. Do not parse.

Lengthlength <= 256
page_size?integer

Items per page (1–100).

Range1 <= value <= 100
Default25

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/transitions"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "from_state": "string",      "to_state": "string",      "actor_type": "string",      "actor_id": "string",      "actor_label": "string",      "reason": "string",      "trace_id": "string",      "occurred_at": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "next_cursor": "string",    "has_more": true,    "total_count": 0  }}
GET/merchants/{merchantId}/go-live-gate

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/go-live-gate"
{  "can_go_live": true,  "items": [    {      "id": "string",      "label": "string",      "verified_by": "string",      "verification": "AUTO",      "overridable": true,      "status": "PASSED",      "unresolved_reason": "string"    }  ]}
GET/merchants/{merchantId}/application

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/application"
{  "underwriting_submission": {    "requires_tax_identifiers": true,    "awaiting_input": true,    "awaiting_input_reason": "FIRST_SUBMISSION",    "awaiting_cresora": true,    "awaiting_since": "2019-08-24T14:15:22Z"  },  "processing_profile": {    "dba": "string",    "business_type": "string",    "tax_id_last2": "string",    "business_address": {      "address_line1": "string",      "address_line2": "string",      "city": "string",      "state": "string",      "zip": "string",      "country": "US"    },    "business_website": "string",    "business_start_date": "2019-08-24",    "estimated_monthly_volume": 0,    "expected_annual_volume": 0,    "estimated_avg_ticket": 0,    "card_present_percentage": 0,    "card_not_present_percentage": 0,    "processing_history": {      "previous_processor": "string",      "years_processing": "string",      "chargeback_rate": "string",      "chargeback_notes": "string"    },    "primary_contact_phone": "string"  },  "beneficial_owners": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "full_legal_name": "string",      "ownership_percentage": 0,      "date_of_birth": "2019-08-24",      "tax_identifier_type": "SSN",      "business_title": "CEO_CFO",      "is_control_person": true,      "phone": "string",      "email": "string",      "residential_address": {        "address_line1": "string",        "address_line2": "string",        "city": "string",        "state": "string",        "zip": "string",        "country": "US"      },      "kyc_status": "string"    }  ],  "principal": {    "first_name": "string",    "last_name": "string",    "title": "string",    "ownership_percentage": 0,    "email": "string",    "phone": "string",    "gov_id_type": "string",    "gov_id_number_last4": "string",    "gov_id_expiration": "2019-08-24",    "gov_id_issuing_region": "string",    "gov_id_issuing_country": "string"  },  "bank_account": {    "account_holder_name": "string",    "routing_number": "string",    "account_number_last4": "string",    "account_type": "string",    "funding_method": "string",    "statement_descriptor": "string"  },  "accepted_modalities": [    "string"  ],  "payment_config": {    "hsa_fsa_iias": true,    "surcharging": true,    "settlement_frequency": "string",    "settlement_currency": "string",    "batch_close_time": "string",    "timezone": "string"  }}
GET/merchants/{merchantId}/bank-verification

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/bank-verification"
{  "status": "NOT_STARTED",  "updated_at": "2019-08-24T14:15:22Z"}
POST/merchants/{merchantId}/bank-verification/check

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/bank-verification/check" \  -H "Idempotency-Key: string"
{  "status": "NOT_STARTED",  "updated_at": "2019-08-24T14:15:22Z"}
GET/merchants/{merchantId}/fee-settings

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-settings"
{  "surcharge": {    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "status": "NOT_CONFIGURED",    "enabled": true,    "waiting_period_expires_at": "2019-08-24T14:15:22Z",    "notice_filed_at": "2019-08-24T14:15:22Z",    "notice_attested_date": "2019-08-24",    "default_rate": 0,    "channels": [      "NONE"    ],    "channel": "NONE",    "disclosure_copy_template": "string",    "attested_cost_of_acceptance_rate": 1,    "cost_of_acceptance_attested_at": "2019-08-24T14:15:22Z",    "differential_network_rates_attested": true,    "differential_network_rates_attested_at": "2019-08-24T14:15:22Z",    "network_policies": [      {        "network": "Visa",        "is_allowed": true,        "custom_rate": 0      }    ],    "last_mirrored_at": "2019-08-24T14:15:22Z",    "version": 0  },  "convenience_fee": {    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "enabled": true,    "fee_type": "FIXED",    "fixed_amount": 0.01,    "percentage_rate": 1,    "version": 0,    "additional_payment_methods": [      "ACH"    ],    "ach_coverage_delivered": true,    "gateway_rollback": {      "reason": "card_present_channel_required",      "rolled_back_at": "2019-08-24T14:15:22Z"    }  }}
PUT/merchants/{merchantId}/fee-settings/surcharge

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The partner's edit of an EXISTING surcharge configuration — rate and channels only. Creating the configuration, filing the card-brand notice, enabling and the state overrides are Cresora Compliance operations on the Admin Console. Send channels; the deprecated single channel is accepted for one release in its place. One of the two is required (400 channels is required), and both together must name the same set (400 channel and channels disagree).

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

curl -X PUT "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-settings/surcharge" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "default_rate": 0  }'
{  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "status": "NOT_CONFIGURED",  "enabled": true,  "waiting_period_expires_at": "2019-08-24T14:15:22Z",  "notice_filed_at": "2019-08-24T14:15:22Z",  "notice_attested_date": "2019-08-24",  "default_rate": 0,  "channels": [    "NONE"  ],  "channel": "NONE",  "disclosure_copy_template": "string",  "attested_cost_of_acceptance_rate": 1,  "cost_of_acceptance_attested_at": "2019-08-24T14:15:22Z",  "differential_network_rates_attested": true,  "differential_network_rates_attested_at": "2019-08-24T14:15:22Z",  "network_policies": [    {      "network": "Visa",      "is_allowed": true,      "custom_rate": 0    }  ],  "last_mirrored_at": "2019-08-24T14:15:22Z",  "version": 0}
POST/merchants/{merchantId}/fee-settings/surcharge/quote

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

One card and amount to quote under the merchant's surcharge program. Display-only — see quoteMerchantSurcharge.

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-settings/surcharge/quote" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "bin_prefix": "string",    "amount": "string"  }'
{  "eligible": true,  "surcharge_rate": 1,  "surcharge_amount": "string",  "base_amount": "string",  "total_with_surcharge": "string",  "ineligibility_reason": "NOT_ENABLED",  "requires_disclosure": true,  "disclosure_text": "string"}
PUT/merchants/{merchantId}/fee-settings/convenience-fee

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

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

curl -X PUT "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-settings/convenience-fee" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "fee_type": "FIXED"  }'
{  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "enabled": true,  "fee_type": "FIXED",  "fixed_amount": 0.01,  "percentage_rate": 1,  "version": 0,  "additional_payment_methods": [    "ACH"  ],  "ach_coverage_delivered": true,  "gateway_rollback": {    "reason": "card_present_channel_required",    "rolled_back_at": "2019-08-24T14:15:22Z"  }}
GET/merchants/{merchantId}/fee-eligibility

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-eligibility"
{  "profile": {    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "standard_channel": "IN_PERSON",    "alternative_channel": "IN_PERSON",    "alternative_channel_attested": true,    "alternative_channel_attested_at": "2019-08-24T14:15:22Z",    "gov_education_attested": true,    "gov_education_attested_at": "2019-08-24T14:15:22Z",    "api_disclosure_attested": true,    "api_disclosure_attested_at": "2019-08-24T14:15:22Z",    "visa_service_fee_registered": true,    "visa_service_fee_registered_on": "2019-08-24",    "visa_service_fee_registered_at": "2019-08-24T14:15:22Z",    "attested_cost_of_acceptance_rate": 0,    "attested_cost_of_acceptance_at": "2019-08-24T14:15:22Z",    "version": 0  },  "determination": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "trigger": "MERCHANT_CREATED",    "resolver_version": 1,    "evaluated_at": "2019-08-24T14:15:22Z",    "outcomes": [      {        "instrument": "SURCHARGE",        "verdict": "ELIGIBLE",        "failures": [          {            "reason": "CF_NO_CARD",            "detail": "string",            "capturable": true          }        ],        "unmet_conditions": [          {            "reason": "CF_NO_CARD",            "detail": "string",            "capturable": true          }        ]      }    ],    "allowed_instruments": [      "SURCHARGE"    ],    "active_instrument_ineligible": true,    "inputs": {      "accepts_card": true,      "accepts_ach": true,      "boarded_processors": [        "string"      ],      "accepted_modalities": [        "string"      ],      "merchant_category_code": "string",      "registered_state": "string",      "registered_state_prohibited": true,      "standard_channel": "IN_PERSON",      "alternative_channel": "IN_PERSON",      "alternative_channel_attested": true,      "gov_education_attested": true,      "api_disclosure_attested": true,      "hosted_page_surface": true,      "surcharge_program_enabled": true,      "surcharge_notice_attested": true,      "surcharge_cost_basis_recorded": true,      "convenience_fee_enabled": true,      "convenience_fee_shape": "FIXED",      "convenience_fee_over_ceiling": true    }  }}
PUT/merchants/{merchantId}/fee-profile

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

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

curl -X PUT "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/fee-profile" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "profile": {    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "standard_channel": "IN_PERSON",    "alternative_channel": "IN_PERSON",    "alternative_channel_attested": true,    "alternative_channel_attested_at": "2019-08-24T14:15:22Z",    "gov_education_attested": true,    "gov_education_attested_at": "2019-08-24T14:15:22Z",    "api_disclosure_attested": true,    "api_disclosure_attested_at": "2019-08-24T14:15:22Z",    "visa_service_fee_registered": true,    "visa_service_fee_registered_on": "2019-08-24",    "visa_service_fee_registered_at": "2019-08-24T14:15:22Z",    "attested_cost_of_acceptance_rate": 0,    "attested_cost_of_acceptance_at": "2019-08-24T14:15:22Z",    "version": 0  },  "determination": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",    "trigger": "MERCHANT_CREATED",    "resolver_version": 1,    "evaluated_at": "2019-08-24T14:15:22Z",    "outcomes": [      {        "instrument": "SURCHARGE",        "verdict": "ELIGIBLE",        "failures": [          {            "reason": "CF_NO_CARD",            "detail": "string",            "capturable": true          }        ],        "unmet_conditions": [          {            "reason": "CF_NO_CARD",            "detail": "string",            "capturable": true          }        ]      }    ],    "allowed_instruments": [      "SURCHARGE"    ],    "active_instrument_ineligible": true,    "inputs": {      "accepts_card": true,      "accepts_ach": true,      "boarded_processors": [        "string"      ],      "accepted_modalities": [        "string"      ],      "merchant_category_code": "string",      "registered_state": "string",      "registered_state_prohibited": true,      "standard_channel": "IN_PERSON",      "alternative_channel": "IN_PERSON",      "alternative_channel_attested": true,      "gov_education_attested": true,      "api_disclosure_attested": true,      "hosted_page_surface": true,      "surcharge_program_enabled": true,      "surcharge_notice_attested": true,      "surcharge_cost_basis_recorded": true,      "convenience_fee_enabled": true,      "convenience_fee_shape": "FIXED",      "convenience_fee_over_ceiling": true    }  }}

List merchant locations

GET/merchants/{merchantId}/locations

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Query Parameters

cursor?string

Opaque pagination cursor from previous response. Do not parse.

Lengthlength <= 256
page_size?integer

Items per page (1–100).

Range1 <= value <= 100
Default25

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/locations"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",      "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",      "location_name": "string",      "address_line1": "string",      "address_line2": "string",      "city": "string",      "state_province": "string",      "postal_code": "string",      "country": "string",      "phone_number": "string",      "contact_name": "string",      "mid": "string",      "merchant_category_code": "string",      "is_active": true,      "created_at": "2019-08-24T14:15:22Z",      "version": 0    }  ],  "pagination": {    "next_cursor": "string",    "has_more": true,    "total_count": 0  }}

Create merchant location

POST/merchants/{merchantId}/locations

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The address members carry the payment gateway's limits, because the merchant's oldest active location is the address its gateway account carries: 100 characters on each line and the city, and a US ZIP for postal_code (locations are US-only). A whitespace-only location_name, address_line1, city or state_province is refused with 400, code NotBlank, which minLength cannot say.

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/locations" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "location_name": "string",    "address_line1": "string",    "city": "string",    "state_province": "st",    "postal_code": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "location_name": "string",  "address_line1": "string",  "address_line2": "string",  "city": "string",  "state_province": "string",  "postal_code": "string",  "country": "string",  "phone_number": "string",  "contact_name": "string",  "mid": "string",  "merchant_category_code": "string",  "is_active": true,  "created_at": "2019-08-24T14:15:22Z",  "version": 0}

Get merchant location

GET/merchants/{merchantId}/locations/{locationId}

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid
locationId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "location_name": "string",  "address_line1": "string",  "address_line2": "string",  "city": "string",  "state_province": "string",  "postal_code": "string",  "country": "string",  "phone_number": "string",  "contact_name": "string",  "mid": "string",  "merchant_category_code": "string",  "is_active": true,  "created_at": "2019-08-24T14:15:22Z",  "version": 0}

Update merchant location

PATCH/merchants/{merchantId}/locations/{locationId}

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid
locationId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Partial update — null/omitted fields are left unchanged. address_line2, phone_number, contact_name, and mid accept "", or a whitespace-only value within the member's limit, to explicitly clear. For the other string fields, an empty string "" is rejected with 400. A whitespace-only value (e.g. " ") in location_name, address_line1, city or state_province is silently treated as no change — the field is left unchanged, not rejected, unless it is longer than the member's limit. In postal_code, country and merchant_category_code it is rejected with 400, code Pattern.

The address members carry the gateway's limits: 100 characters on each line, the city and the state, and a US ZIP for postal_code. A request that sends an address member is refused with 400 while a stored member it leaves in place is over its limit, or the stored postal_code is not a US ZIP. Sending a member counts even when its value equals the stored one, so country, always US, and an empty or whitespace-only address_line2 count; a whitespace-only address_line1, city or state_province, which changes nothing, does not. The 400 names each such member, code Size for a length and Pattern for a postal_code that is not a US ZIP; a postal_code over 20 characters gets both, as it would if sent. A request that also breaks a rule on a member it sends is refused for that member first, and the stored members are named once it is corrected. Send the named members corrected in the same request. A request that sends no address member, such as is_active or phone_number alone, is not refused for the stored address.

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

curl -X PATCH "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "partner_id": "6a3a39f6-861b-4a48-b868-5de838400e06",  "location_name": "string",  "address_line1": "string",  "address_line2": "string",  "city": "string",  "state_province": "string",  "postal_code": "string",  "country": "string",  "phone_number": "string",  "contact_name": "string",  "mid": "string",  "merchant_category_code": "string",  "is_active": true,  "created_at": "2019-08-24T14:15:22Z",  "version": 0}

Delete merchant location

DELETE/merchants/{merchantId}/locations/{locationId}

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid
locationId*string
Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
GET/merchants/{merchantId}/compliance-documents

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance-documents"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "document_type": "PCI_SAQ_A",    "status": "NOT_UPLOADED",    "file_name": "string",    "file_size_bytes": 0,    "mime_type": "string",    "uploaded_at": "2019-08-24T14:15:22Z",    "uploaded_by": "string",    "uploaded_by_email": "user@example.com",    "reviewed_by": "string",    "reviewed_by_email": "user@example.com",    "reviewed_at": "2019-08-24T14:15:22Z",    "rejection_reason": "string",    "side": "FRONT",    "saq_type_mismatch": true  }]
POST/merchants/{merchantId}/compliance-documents

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance-documents" \  -H "Idempotency-Key: string" \  -F document_type="PCI_SAQ_A" \  -F file="string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "document_type": "PCI_SAQ_A",  "status": "NOT_UPLOADED",  "file_name": "string",  "file_size_bytes": 0,  "mime_type": "string",  "uploaded_at": "2019-08-24T14:15:22Z",  "side": "FRONT"}
POST/merchants/{merchantId}/compliance/saq-type

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Header Parameters

Idempotency-Key*string

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: true so 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 /transactions is such a create: it replays from the transaction it recorded under the key, matched on key and partner_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 is 200 with the transaction in its state at that moment, never a second charge. Then GET /transactions/{transactionId} for its final state. That 200 is cached for 24 hours, so a further same-key resend returns the same snapshot, not necessarily the final state. This is also what an ACH_DEBIT / ACH_REFUND gets 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 answered Submit / 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 replay member — 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 the error_id. The core service answers this way on ACH_VOID, ACH_REVERSAL and CAPTURE_ALL on POST /transactions, 3-D Secure completion, POST /merchants/{merchantId}/customers and POST /contracts, whose detail says 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 a 5xx itself, 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.

Match^[A-Za-z0-9._:\-]+$
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

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

curl -X POST "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance/saq-type" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "saq_type": "A"  }'
{  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "hipaa_baa_status": "NOT_REQUIRED",  "pci_saq_type": "A",  "baa_verified_by": "string",  "baa_verified_at": "2019-08-24T14:15:22Z",  "saq_confirmed_by": "string",  "saq_confirmed_at": "2019-08-24T14:15:22Z"}
GET/merchants/{merchantId}/compliance/baa-template

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

merchantId*string
Formatuuid

Response Body

application/pdf

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchants/497f6eca-6276-4993-bfeb-53cbbbba6f08/compliance/baa-template"
"string"

List PCI SAQ types

GET/onboarding/saq-types

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/onboarding/saq-types"
[  {    "code": "string",    "label": "string"  }]
GET/onboarding/business-titles

Authorization

BearerAuth
AuthorizationBearer <token>

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…). Use ApiKey.prefix to 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

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/onboarding/business-titles"
[  {    "code": "CEO_CFO",    "sendable": true  }]