Initialize a Transaction
Initialize a new payment transaction.Endpoint
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer YOUR_API_KEY |
| Content-Type | string | Yes | application/json |
Request Body
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| externalTransactionId | string | Yes | Your unique transaction identifier |
| serviceCode | string | Yes | Payment service code |
| amount | number | Yes | Amount in FCFA (min: 200, max: 1,000,000) |
| number | string | Yes | Phone number format: ^[0-9]$ |
| callBackURL | string | Yes | URL for webhook notifications |
| successUrl | string | Yes | Redirect URL after success |
| failureUrl | string | Yes | Redirect URL after failure |
Response
Successful Response
Error Response
Error Codes
| HTTP Code | Description |
|---|---|
| 400 | Invalid parameters or incorrect amount |
| 401 | Invalid API key |
| 403 | API under maintenance |
| 409 | External transaction ID already used |
Validations
-
Amount
- Minimum: 200 FCFA
- Maximum: 1,000,000 FCFA
-
Phone Number
- Format: 9 digits
- Without country code
- Numeric characters only
Request Example
Webhook Notification
When the transaction status changes, a webhook is sent to the URL specified incallBackURL:
Authorizations
Entrez votre clé API comme: Bearer <API_KEY>
Body
application/json
Détails de la transaction
Votre identifiant unique de transaction
Code du service de paiement
Montant en FCFA (min: 200, max: 1,000,000)
Required range:
200 <= x <= 1000000Numéro de téléphone
URL pour les notifications webhook
URL de redirection après succès
URL de redirection après échec