This document outlines how to initiate payouts using the Facilero Alternative Payment Methods (APM) API. This API enables merchants to disburse funds to users through various methods such as e-wallets, bank accounts, and mobile wallets.
Note: This endpoint mirrors the structure and principles of the APM payment API but is used for outbound transactions (payouts) instead of incoming payments.
API Endpoint
🔹 Live
POST https://api.facilero.com/api/v1/payouts/apm
🔸 Sandbox
POST https://sandbox.facilero.com/api/v1/payouts/apm
Request Headers
Header
Type
Required
Description
Content-Type
String
Yes
Must be application/json
Authorization
String
Yes
Bearer <AUTH_TOKEN> — the token from the Authorization Service
Referer
String
Yes
Referring domain for the request
Request Body
Fields
Field
Type
Required
Description
requestId
String
Yes
Unique identifier for the payout request
accountId
String
Yes
Merchant account ID to associate the payout
apmPayload
Object (ApmPayload)
Yes
Contains method-specific fields; structure depends on payout method
amount
String
Yes
Amount to be paid out (as string to maintain precision)
currency
String
Yes
ISO 4217 code (e.g., USD, EUR)
callbackUrl
String
No
URL to receive transaction status updates
successRedirectUrl
String
No
Redirect URL after a successful payout (if user-facing)
failureRedirectUrl
String
No
Redirect URL after a failed payout (if user-facing)
metadata
Map<String, String>
No
Optional metadata
order
Object (Order)
No
Optional order-related information
billingDetails
Object (ApmBillingDetails)
No
Beneficiary’s personal details (required for certain payout methods)
device
Object (Device)
No
Optional device information used for fraud detection and logging
Response
Fields
Field
Type
Description
requestId
String
Echoed request ID
transactionId
String
Unique ID for the payout transaction
transactionStatus
Enum (TxStatus)
Status of the transaction: PENDING, COMPLETED, DECLINED, etc.
declineCode
Integer
Error code if declined
declineSubReason
String
Optional text describing reason for decline
apmResponseData
Object (ApmResponseData)
Provider-specific response data, such as payout reference or redirect URLs
createdTime
String
Timestamp of when the transaction was created
Callback (Webhook)
If a callbackUrl is provided, Facilero will POST the final transaction result to it.
Headers
Header
Type
Description
X-Checksum
String
HMAC-SHA256 checksum based on accountId, amount, currency, transactionId