# Swipelux: English API Reference ## API Reference ### Overview - [API reference](https://docs.swipelux.com/api-reference/introduction.md): Use the Swipelux v3 API contract, authenticate with X-API-Key, retry writes safely with idempotency keys, and handle status codes and error schemas. ### Versioning - [Migrate a v1 or v2 integration to Swipelux API v3](https://docs.swipelux.com/api-reference/versioning/migrate-to-v3.md): Two-pass migration guide from Swipelux API v1 and v2 to v3: object model concepts first, then endpoint mappings, state machines, and a checklist. - [Swipelux API changelog and release notes](https://docs.swipelux.com/api-reference/versioning/changelog.md): Dated log of additions, breaking changes, and deprecations across Swipelux API versions, with upgrade notes for integrators tracking releases. ### Endpoints #### Customers - [Create customer](https://docs.swipelux.com/api-reference/customers/post-v3-customers.md): Creates an individual or business customer. The request succeeds or fails as a whole. Individuals require only type; businesses also require business.legalName. Email and phone values do not have to be unique across customers. - [List customers](https://docs.swipelux.com/api-reference/customers/get-v3-customers.md): Lists customer summaries, newest first (createdAt descending, then id descending). Contact and free-text filters are case-insensitive and combine with exact identity and strict timestamp filters. Pass include=capabilities, include=documentRequirements, or include=capabilities,documentRequirements to… - [Get customer](https://docs.swipelux.com/api-reference/customers/get-v3-customers-by-customer-id.md): Returns the individual or business customer. Business customers include their active related parties. - [Update customer](https://docs.swipelux.com/api-reference/customers/patch-v3-customers-by-customer-id.md): Deep-merges the supplied customer fields. Arrays are replaced whole, null clears nullable fields, metadata merges by key, and related parties are upserted by id. - [Archive customer](https://docs.swipelux.com/api-reference/customers/delete-v3-customers-by-customer-id.md): Archives the customer in a single operation. Resolve active accounts and in-flight transfers first. The externalId stays reserved and the customer's history is retained. - [Export customer data](https://docs.swipelux.com/api-reference/customers/post-v3-customers-by-customer-id-export.md): Exports a customer in the requested format. `json_basic_data` returns the public v3 customer resource as a JSON attachment with profile and related-party data only. `sumsub_share_token` creates a one-time Sumsub share token for an approved individual customer; it requires `forClientId` and an `Idemp… #### Related parties - [Create related party](https://docs.swipelux.com/api-reference/customers/post-v3-customers-by-customer-id-related-parties.md): Creates a person or entity related party for a business customer. The party gets a stable rp_ id, requires at least one role or one ownership, voting, or control fact, and the parent customer's updatedAt advances in the same transaction. - [List related parties](https://docs.swipelux.com/api-reference/customers/get-v3-customers-by-customer-id-related-parties.md): Returns active related-party summaries for the customer with cursor pagination. Individual customers have no related parties and return an empty page. Summaries carry roles, derived display name, and ownership, voting, and control indicator booleans; archived parties are excluded. - [Get related party](https://docs.swipelux.com/api-reference/customers/get-v3-customers-by-customer-id-related-parties-by-related-party-id.md): Returns the complete related-party resource. Absent, foreign, and archived ids all return 404 related_party_not_found. - [Update related party](https://docs.swipelux.com/api-reference/customers/patch-v3-customers-by-customer-id-related-parties-by-related-party-id.md): Deep-merges the supplied fields into the party: omitted fields stay unchanged, explicit null clears optional fields, and arrays are replaced whole. The id, customerId, and partyType are immutable. - [Archive related party](https://docs.swipelux.com/api-reference/customers/delete-v3-customers-by-customer-id-related-parties-by-related-party-id.md): Archives the related party: the id is never reused, normal reads return 404 afterwards, and an idempotent replay returns the same 204. Deletion is blocked with 409 related_party_in_review while an active review depends on the party. #### Capabilities - [List supported capabilities](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities-supported.md): Lists every known capability variant for this customer with supported directions, availability, eligibility, and supporting institutions. `stablecoin_transfers` is always listed; `card` is omitted for business customers. For available bank-backed capability creation, omitted or empty `institutions`… - [Preview capability tasks](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities-by-capability-id-tasks-preview.md): Previews the tasks that requesting this capability would open, without creating anything. Repeat the optional `institutions` query parameter to preview the same institution selection that capability creation accepts; omit it to preview the default institutions. - [Create capability](https://docs.swipelux.com/api-reference/capabilities/post-v3-customers-by-customer-id-capabilities-by-capability-id.md): Requests a customer capability by its capability id. Requesting a canceled capability with a new idempotency key starts it again once current eligibility and routing checks pass. For bank-backed capabilities, an omitted or empty `institutions` list selects the default institutions; a non-empty list… - [List capabilities](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities.md): Lists a customer's capability requests with their current institution applications and account-issuance state. Capability `ready` means entitlement approval; inspect `accountProvisioning` to determine whether an account exists. - [Get capability](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities-by-capability-id.md): Returns one v3 capability by permanent public capability id. Capability `ready` means entitlement approval; `accountProvisioning` reports whether account issuance has started, succeeded, or definitively failed. - [Cancel capability](https://docs.swipelux.com/api-reference/capabilities/post-v3-customers-by-customer-id-capabilities-by-capability-id-cancel.md): Cancels a `pending`, `restricted`, or `ready` capability that has no active linked accounts or transfers. The `stablecoin_transfers` capability that every new customer receives cannot be canceled. Cancellation ends this capability only: its applications keep their status, tasks, and approvals, and o… - [List merchant capabilities](https://docs.swipelux.com/api-reference/capabilities/get-v3-capabilities.md): Lists capabilities across customers in the current space, ordered by `createdAt` descending. Each row reports account issuance through `accountProvisioning`; capability `ready` remains entitlement approval. - [List customer applications](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-applications.md): Lists every institution application case of this customer with the capability keys requested against it and the keys its approval covers. A case is shared: one approval at an institution can cover several capabilities. Retained historical cases identify their successor through supersededByApplicatio… - [List capability applications](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities-by-capability-id-applications.md): Lists institution application flows for this capability. Use each application's ordered openTaskIds to fetch authorized customer task details. An application that another application replaced is not listed here; List customer applications keeps it and names its successor in supersededByApplicationId… - [List application history](https://docs.swipelux.com/api-reference/capabilities/get-v3-customers-by-customer-id-capabilities-by-capability-id-applications-by-application-id-history.md): Returns the task history for this application, grouped by task. #### Tasks - [List customer tasks](https://docs.swipelux.com/api-reference/tasks/list-customer-tasks.md): Lists customer-owned tasks with URL-free verification-session summaries. - [Get customer task detail](https://docs.swipelux.com/api-reference/tasks/get-customer-task.md): Returns the task, the actions you can take, and its allowed submission channels, listed as direct_submission before verification_session. KYC verification sessions include action URLs only while action is required; sessions that are in review, completed or reused, rejected, or canceled omit action f… - [List task history](https://docs.swipelux.com/api-reference/tasks/list-customer-task-history.md): Lists immutable task revisions without answers or hosted-session URLs. - [List tasks](https://docs.swipelux.com/api-reference/tasks/list-tasks.md): Lists the merchant-wide task inbox with URL-free verification-session summaries. - [Get a task](https://docs.swipelux.com/api-reference/tasks/get-task.md): Returns one task from any customer in the current space, without hosted-session URLs. - [Open a KYC verification session](https://docs.swipelux.com/api-reference/tasks/start-kyc-verification-session.md): Opens the verification session for one customer task. Swipelux checks that the session belongs to the customer and task. An eligible session that only asks for documents opens a Swipelux-hosted upload page. Otherwise, or when that page is unavailable, Swipelux redirects to a short-lived verification… #### Task submissions - [Create a task submission](https://docs.swipelux.com/api-reference/task-submissions/create-customer-task-submission.md): Creates one direct submission for the task's current round. A submission can't be changed after it is created. - [List task submissions](https://docs.swipelux.com/api-reference/task-submissions/list-customer-task-submissions.md): Lists submission summaries. Answer values, alternatives, and document ids are omitted. - [Get task submission detail](https://docs.swipelux.com/api-reference/task-submissions/get-customer-task-submission.md): Returns the submitted answers and the submission's current outcome. #### Documents - [Upload customer document](https://docs.swipelux.com/api-reference/documents/post-v3-customers-by-customer-id-documents.md): Uploads one PDF, JPEG, PNG, WebP, or HEIF/HEIC document up to 25 MB. Send multipart file bytes, or consume a fresh customer-scoped opaque storageKey returned by the direct-upload flow. Returns metadata for task submissions. - [List customer document metadata](https://docs.swipelux.com/api-reference/documents/get-v3-customers-by-customer-id-documents.md): Returns customer document metadata newest first. - [Get customer document metadata](https://docs.swipelux.com/api-reference/documents/get-v3-customers-by-customer-id-documents-by-document-id.md): Returns metadata for one customer document. - [Download customer document](https://docs.swipelux.com/api-reference/documents/get-v3-customers-by-customer-id-documents-by-document-id-download.md): Returns a one-hour presigned attachment URL for an active document owned by the path customer. Missing, archived, and foreign documents return 404. - [Archive customer document](https://docs.swipelux.com/api-reference/documents/delete-v3-customers-by-customer-id-documents-by-document-id.md): Archives one customer document. Archived documents are retained for compliance but excluded from subsequent reads, lists, and task submissions. #### Accounts - [Create account](https://docs.swipelux.com/api-reference/accounts/post-v3-customers-by-customer-id-accounts.md): Create one customer account. Use `origin: "issued"` for platform-issued wallet accounts and virtual bank accounts, or `origin: "external"` for customer-owned wallet and bank accounts. Issued virtual bank accounts require `settlement.accountId`, the issued customer wallet account that receives settle… - [List accounts](https://docs.swipelux.com/api-reference/accounts/get-v3-customers-by-customer-id-accounts.md): Get issued and external customer accounts. The collection includes wallet accounts and bank accounts with typed details. - [Get account](https://docs.swipelux.com/api-reference/accounts/get-v3-customers-by-customer-id-accounts-by-account-id.md): Returns one customer account. Issued wallet account details include a balance collection; external wallet balance collections are empty; bank accounts include typed details when available. - [Update account](https://docs.swipelux.com/api-reference/accounts/patch-v3-customers-by-customer-id-accounts-by-account-id.md): Updates account metadata. All accounts accept `label`; issued wallets also accept `isDefault: true`; issued bank accounts also accept `settlement.accountId`. - [Archive account](https://docs.swipelux.com/api-reference/accounts/delete-v3-customers-by-customer-id-accounts-by-account-id.md): Archive a customer account. Archived accounts remain available from the list endpoint when filtering with `status=archived`. Accounts referenced by in-flight transfers cannot be archived until those transfers reach a terminal state. - [Get account fees](https://docs.swipelux.com/api-reference/accounts/get-v3-customers-by-customer-id-accounts-by-account-id-fees.md): Read the developer fees configured for one customer account. This is the read-back mirror of the PUT shape; `breakdown.developer` is `null` when no rule is configured. - [Replace account fees](https://docs.swipelux.com/api-reference/accounts/put-v3-customers-by-customer-id-accounts-by-account-id-fees.md): Replaces developer fees for one customer account. Fixed fees are major-unit decimal strings; request bodies do not carry wildcard or fee-level currency rules. #### Institutions - [List institutions](https://docs.swipelux.com/api-reference/institutions/get-v3-institutions.md): Lists institution IDs referenced by capability support and application resources. #### Recipients - [Create recipient](https://docs.swipelux.com/api-reference/recipients/post-v3-customers-by-customer-id-recipients.md): Create an individual or business third-party payout recipient. First-party payouts target customer accounts. - [List recipients](https://docs.swipelux.com/api-reference/recipients/get-v3-customers-by-customer-id-recipients.md): Lists recipients for a customer. - [Get recipient](https://docs.swipelux.com/api-reference/recipients/get-v3-customers-by-customer-id-recipients-by-recipient-id.md): Returns a recipient with its payout destinations. - [Update recipient](https://docs.swipelux.com/api-reference/recipients/patch-v3-customers-by-customer-id-recipients-by-recipient-id.md): Updates the supplied fields on an active recipient. Archive is terminal; archived recipients reject later updates. - [Archive recipient](https://docs.swipelux.com/api-reference/recipients/delete-v3-customers-by-customer-id-recipients-by-recipient-id.md): Archives a recipient. - [Add recipient destination](https://docs.swipelux.com/api-reference/recipients/post-v3-customers-by-customer-id-recipients-by-recipient-id-destinations.md): Adds a bank or wallet payout destination to a recipient. Use Accounts for customer-owned destinations. - [List recipient destinations](https://docs.swipelux.com/api-reference/recipients/get-v3-customers-by-customer-id-recipients-by-recipient-id-destinations.md): Lists active recipient-owned bank and wallet payout destinations. When updatedAfter is supplied, archived transitions inside the inclusive recovery window are also returned. - [Get recipient destination](https://docs.swipelux.com/api-reference/recipients/get-v3-customers-by-customer-id-recipients-by-recipient-id-destinations-by-destination-id.md): Returns one recipient bank or wallet payout destination. - [Archive recipient destination](https://docs.swipelux.com/api-reference/recipients/delete-v3-customers-by-customer-id-recipients-by-recipient-id-destinations-by-destination-id.md): Archives one recipient payout destination. #### Quotes and transfers - [Get indicative FX rate](https://docs.swipelux.com/api-reference/money-movement/get-v3-rates.md): Returns an indicative fiat FX rate. Executable pricing is returned by quote creation. - [Create quote](https://docs.swipelux.com/api-reference/money-movement/post-v3-quotes.md): Prices a money movement. Execute the quote before `expiresAt`; execution still requires the quote, capability, balance, destination, and routing checks to pass. - [Get quote](https://docs.swipelux.com/api-reference/money-movement/get-v3-quotes-by-quote-id.md): Returns a v3 quote by id. Only quotes created through `POST /v3/quotes` are exposed here. - [Create transfer (executes a quote)](https://docs.swipelux.com/api-reference/money-movement/post-v3-transfers.md): Executes the selected quote without re-pricing it. Execution can still fail validation, balance, destination, or routing checks. For card checkouts, the optional checkoutMethod pre-selects a checkout method; availability and final fees are confirmed in checkout. Other routes reject this option. - [List transfers](https://docs.swipelux.com/api-reference/money-movement/get-v3-transfers.md): Lists quoted transfers, received inbound deposits, and rule-generated outbound transfers, newest first (createdAt, then id, descending). Filters are customerId, public state, method, direction, origin, source-or-destination accountId, quoteId, exact externalId, createdAt range, and updatedAfter (use… - [Get transfer](https://docs.swipelux.com/api-reference/money-movement/get-v3-transfers-by-transfer-id.md): Returns a quoted, inbound-deposit, or rule-generated transfer with its amounts and fees, state, source and destination, open tasks, payment references, and instructions. Sender evidence is included when available and is never part of webhook payloads. - [Get transfer instructions](https://docs.swipelux.com/api-reference/money-movement/get-v3-transfers-by-transfer-id-instructions.md): Returns the typed deposit instructions for a v3 transfer created from a quote. Payout-side transfers are funded from the source account and have no instructions: this endpoint returns a 404 problem with code `transfer_has_no_instructions` for them. - [List transfer-scoped tasks](https://docs.swipelux.com/api-reference/money-movement/get-v3-transfers-by-transfer-id-tasks.md): Lists tasks scoped to this transfer in the standard page envelope. Unknown transfer ids return 404. - [Cancel transfer](https://docs.swipelux.com/api-reference/money-movement/post-v3-transfers-by-transfer-id-cancel.md): Returns `409 transfer_not_cancelable`; no current transfer state is cancelable through this operation. #### Rules - [Create rule](https://docs.swipelux.com/api-reference/rules/post-v3-customers-by-customer-id-rules.md): Create a standing instruction: when funds become available on the trigger account, transfer them to the target. At most one non-archived rule may watch a given trigger account. - [List rules](https://docs.swipelux.com/api-reference/rules/get-v3-customers-by-customer-id-rules.md): List the customer's standing transfer instructions with optional status and updated-after filters. - [Get rule](https://docs.swipelux.com/api-reference/rules/get-v3-customers-by-customer-id-rules-by-rule-id.md): Archived rules stay readable for audit. - [Update rule](https://docs.swipelux.com/api-reference/rules/patch-v3-customers-by-customer-id-rules-by-rule-id.md): Pause or resume the rule and edit its label or metadata. Archived rules are read-only (`rule_archived`). - [Archive rule](https://docs.swipelux.com/api-reference/rules/delete-v3-customers-by-customer-id-rules-by-rule-id.md): Archiving is terminal and frees the trigger account for a new rule. The archived rule stays readable. #### Webhooks - [Create webhook endpoint](https://docs.swipelux.com/api-reference/webhooks/post-v3-webhooks.md): Creates a webhook endpoint with an event-type allowlist. - [List webhook endpoints](https://docs.swipelux.com/api-reference/webhooks/get-v3-webhooks.md): Lists webhook endpoints for the authenticated merchant and environment, including each endpoint's events selection. Use GET /v3/webhooks/{webhookId} to read one endpoint and PATCH the same URL to update its events. - [Get webhook endpoint](https://docs.swipelux.com/api-reference/webhooks/get-v3-webhooks-by-webhook-id.md): Returns one webhook endpoint and its events selection in the authenticated merchant and environment. PATCH this URL with events to replace the event-type allowlist. - [Update webhook endpoint](https://docs.swipelux.com/api-reference/webhooks/patch-v3-webhooks-by-webhook-id.md): Updates a webhook endpoint URL or event-type allowlist. events replaces the complete selection; include existing event types you want to retain. Omitting url preserves the destination URL. Requires webhooks:write and an Idempotency-Key. - [Archive webhook endpoint](https://docs.swipelux.com/api-reference/webhooks/delete-v3-webhooks-by-webhook-id.md): Archives a webhook endpoint. - [Get webhook portal URL](https://docs.swipelux.com/api-reference/webhooks/get-v3-webhooks-portal.md): Returns a one-hour webhook portal URL for delivery logs. Credentials with webhooks:write can also view the endpoint signing secret, manage endpoints, and retry or manually replay deliveries. #### Webhook events - [Customer created](https://docs.swipelux.com/api-reference/webhooks/customer-created.md): Triggered after a customer is created. - [Customer updated](https://docs.swipelux.com/api-reference/webhooks/customer-updated.md): Triggered after a customer's details, metadata, or related parties change. The payload names the changed categories without their values. - [Customer archived](https://docs.swipelux.com/api-reference/webhooks/customer-archived.md): Triggered after a customer and its dependent resources are archived. - [Capability created](https://docs.swipelux.com/api-reference/webhooks/capability-created.md): Triggered when a capability is created. The payload includes a summary of its tasks. - [Capability status changed](https://docs.swipelux.com/api-reference/webhooks/capability-status-changed.md): Triggered when a capability's status changes after creation. - [Application status changed](https://docs.swipelux.com/api-reference/webhooks/application-status-changed.md): Triggered when an institution application under a v3 capability changes state. - [Recipient status changed](https://docs.swipelux.com/api-reference/webhooks/recipient-status-changed.md): Triggered when a v3 recipient enters a new public state. - [Destination status changed](https://docs.swipelux.com/api-reference/webhooks/destination-status-changed.md): Triggered when a v3 recipient destination enters a new public state. - [Account created](https://docs.swipelux.com/api-reference/webhooks/account-created.md): Triggered when a v3 wallet or bank account is created. - [Account status changed](https://docs.swipelux.com/api-reference/webhooks/account-status-changed.md): Triggered when a v3 account status or default-account state changes. - [Account details changed](https://docs.swipelux.com/api-reference/webhooks/account-details-changed.md): Triggered when the current routing instructions for an issued v3 bank account change. - [Transfer state changed](https://docs.swipelux.com/api-reference/webhooks/transfer-state-changed.md): Triggered when a v3 transfer changes public state. #### Sandbox - [Simulate customer verification](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-customers-by-customer-id-verification.md): Approve or reject an individual KYC or business KYB review in sandbox. The environment is selected by the API key. - [Force sandbox capability status](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-customers-by-customer-id-capabilities-by-capability-id-status.md): Forces a sandbox capability to `ready`, `rejected`, or `restricted`, then returns the resulting capability; its `status` and `statusReason` show customer tasks still to complete or a review still underway. When a simulated shared case cannot bring the capability to the requested status for any other… - [Create sandbox task](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-tasks.md): Creates a sandbox task for a customer, capability, or transfer. - [Review sandbox task submission](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-tasks-by-task-id-review.md): Accepts or rejects the current submitted answers of a sandbox or capability intake task. Tasks owned by another workflow, such as Operations requests, return `409 task_not_sandbox_reviewable`. - [Credit a sandbox account](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-accounts-by-account-id-topup.md): Credits an issued sandbox wallet account with test funds. No real funds move. - [Force sandbox transfer state](https://docs.swipelux.com/api-reference/sandbox/post-v3-sandbox-transfers-by-transfer-id-state.md): Forces an existing sandbox transfer to `completed` or `failed`. ## OpenAPI Specs - [openapi](/openapi.json)