Skip to main content
POST
/
payments
/
payin
Initiate PayIn
curl --request POST \
  --url https://getmipay.com/api/v1/payments/payin \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'operation: <operation>' \
  --header 'service: <service>' \
  --data '{
  "amount": 1000,
  "currency": "XAF",
  "wallet": "237690000000",
  "description": "Payment for Order #123",
  "customer_name": "John Doe",
  "customer_email": "john@example.com",
  "callback_url": "https://yourapp.com/webhooks/payment"
}'
{
  "success": true,
  "message": "Payment initiated successfully",
  "data": {
    "transaction_reference": "MPAYIN_ABC123DEF456",
    "soleaspay_reference": "MLS690d472dd7ee7B",
    "amount": 1000,
    "currency": "XAF",
    "status": "pending",
    "payment_url": "https://soleaspay.com/pay/MLS690d472dd7ee7B",
    "webhook_urls": {
      "success": "https://getmipay.com/api/webhooks/success",
      "failure": "https://getmipay.com/api/webhooks/failure"
    }
  }
}

Authorizations

X-API-KEY
string
header
required

Headers

operation
enum<string>
required

Operation type - must be '2' for PayIn

Available options:
2
Example:

"2"

service
string
required

Service identifier for the payment method

Example:

"1"

Body

application/json

Payment details to collect from customer

amount
number
required

Amount in smallest currency unit (100 XAF = 1€)

Required range: x >= 100
Example:

1000

currency
enum<string>
default:XAF
required
Available options:
XAF,
USD,
EUR
Example:

"XAF"

wallet
string
required

Customer mobile money wallet number

Example:

"237690000000"

description
string
required
Maximum length: 255
Example:

"Payment for Order #123"

customer_name
string
required
Maximum length: 255
Example:

"John Doe"

customer_email
string<email>
Example:

"john@example.com"

callback_url
string<uri>

URL to receive payment status updates

Example:

"https://yourapp.com/webhooks/payment"

Response

Payment initiated successfully

success
boolean
Example:

true

message
string
Example:

"Payment initiated successfully"

data
object