Skip to main content

Payout Service

Overview

The Payout Service enables you to send funds to recipients using the Python SDK. Use this for marketplace payouts, refunds to bank accounts, supplier payments, and other fund disbursement needs.

Business Use Cases:

  • Marketplace payouts - Pay sellers/merchants on your platform
  • Supplier payments - Disburse funds to vendors and suppliers
  • Payroll - Employee and contractor payments
  • Instant payouts - Same-day transfers to connected accounts

Operations

OperationDescriptionUse When
createCreate a payout. Initiates fund transfer to recipient.Sending money to a recipient
transferCreate a payout fund transfer. Move funds between accounts.Transferring between internal accounts
getRetrieve payout details. Check status and tracking.Monitoring payout progress
voidCancel a pending payout. Stop before processing.Aborting an incorrect payout
stageStage a payout for later processing. Prepare without sending.Delayed payouts, batch processing
create_linkCreate link between recipient and payout. Associate payout with recipient.Setting up recipient relationships
create_recipientCreate payout recipient. Store recipient bank/payment details.First time paying a new recipient
enroll_disburse_accountEnroll disburse account. Set up account for payouts.Onboarding new payout accounts

SDK Setup

from orchestratorx_prism import PayoutClient

payout_client = PayoutClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)

Common Patterns

Marketplace Payout Flow

sequenceDiagram
participant App as Your App
participant CS as Prism
participant PP as Payment Provider
participant R as Recipient

Note over App: Customer pays seller
App->>CS: 1. create_recipient
CS->>PP: Store recipient details
PP-->>CS: Return recipient_id
CS-->>App: Return recipient_id
Note over App: Ready to pay seller
App->>CS: 2. create payout
CS->>PP: Initiate transfer
PP-->>CS: Return: PENDING
CS-->>App: Return payout_id
Note over PP,R: Funds transferred
PP->>R: Deposit funds
PP-->>App: Webhook: SUCCEEDED

Flow Explanation:

  1. Create recipient - Store seller's payout details (bank account, etc.).

  2. Create payout - Initiate the fund transfer to the seller.

  3. Monitor status - Track payout status until funds arrive.

Payout Methods

MethodSpeedTypical Use
Bank transfer1-3 business daysStandard payouts, large amounts
Instant transferMinutesSame-day needs, existing recipients
Card payoutInstantPrepaid cards, debit cards

Next Steps