Skip to main content
POST
Make a Payout

Endpoint

POST /payout Send money to a user’s mobile money, orange money or fapshi account via a payout-enabled service.
After enabling payouts for a service, that service can no longer collect payments. Use separate services for collections and payouts.
Payout is disabled by default in the live environment. To activate payouts in live environment, first implement and test payouts in sandbox environment, then send an email to Developer Support at support@fapshi.com with your Live API User ONLY and mention that you want to enable payouts on your service.MAKE SURE YOU SEND THE LIVE API USER of your PAYOUT SERVICE.
Refunds: Fapshi has no dedicated refund API. To refund a customer, send the amount back to them with this endpoint from your payout service.
No idempotency. Fapshi does not enforce uniqueness of externalId; sending the same payout request twice sends the money twice. If a request times out, check whether the payout exists with GET /transaction/{userId} before retrying. See Transaction Handling.

Funding Your Payout Service

Each service in your Fapshi account has its own balance. Payments you collect through the API go into your collections service balance, and payouts made with this endpoint are paid from your payout service balance. Before you can make payouts, your payout service needs enough money to cover them. You can fund it in two ways:

Things to know

  • Not automatic: money collected through the API stays in your collections service until you move it.
  • Not available through the API: the API can make payouts from your payout service balance, but it cannot move money between services or top up a balance. Use the dashboard or the mobile app for that.
  • Check your balance first: call GET /balance with your payout service credentials to confirm it can cover the payout.
  • Payout limits: through the API, there is no limit on the total amount you can pay out. Each individual payout must be between 100 XAF and 500,000 XAF.

Parameters

Required Fields

  • When medium is not specified: amount and phone are required.
  • When medium is "fapshi": amount and email are required.

Sandbox Testing

When testing payouts with medium set to "fapshi" in the sandbox environment:
  • Emails that always return successful transactions: test.success@fapshi.com and messi.champion@fapshi.com
  • Emails that always return failed transactions: test.failed@fapshi.com and penaldo.test@fapshi.com
  • Other emails: Transaction status will be determined in a stochastic (random) manner

Authorizations

apiuser
string
header
required
apikey
string
header
required

Body

application/json
amount
integer
required

Amount to send (minimum 100 XAF, maximum 500,000 XAF per payout). Paid from the payout service balance.

Required range: 100 <= x <= 500000
phone
string

Recipient phone number. Required when medium is not specified or not "fapshi". Not required when medium is "fapshi".

medium
enum<string>

Payment medium (optional). Auto-detected if omitted (requires phone). When set to "fapshi", email is required instead of phone.

Available options:
mobile money,
orange money,
fapshi
name
string

Recipient name (optional).

email
string<email>

Recipient email. Required when medium is "fapshi". Optional for payout receipt when medium is not "fapshi".

userId
string

User ID for payout tracking (optional).

Pattern: ^[a-zA-Z0-9\-_]{1,100}$
externalId
string

Transaction/order ID for reconciliation (optional). Not required to be unique: Fapshi does not deduplicate requests, so a repeated request creates a new transaction.

Pattern: ^[a-zA-Z0-9\-_]{1,100}$
message
string

Reason for payout (optional).

Response

Accepted

message
string

Success message

transId
string

Transaction ID for the payment.

dateInitiated
string<date>

Date when the payment was initiated.