APIMobile Money
Refund
Refund a payment created through the Direct API.
POST https://business.novasend.app/v1/payin/{reference}/refundThis endpoint refunds a previously completed customer payment (Payin). The request has no amount field; partial refunds are not exposed by this endpoint.
The refund either credits the customer's account or cancels the transaction depending on the original payment method.
Refund rules:
- Payout (Transfer): In case of a failed payment status, Novasend refunds the gross amount (Charged amount + fees) to the Merchant's wallet
- Payin (Payment): In case of a failed payment status where the Merchant's customer has been debited, Novasend verifies with its partners the transaction status. When it is confirmed that the funds have been collected by the partner, Novasend changes the transaction status from failed to success with a callback (webhook) notification, and credits the Merchant's account within a maximum of 48 hours.
Conditions
- The payment transaction must have a
successstatus. - The transaction must not have been previously refunded.
Request Headers
| Header | Description | Required |
|---|---|---|
| Authorization | Used to authenticate the API, Basic base64(api_key:api_client) | ✅ |
| X-Idempotency-Key | Ensures transaction uniqueness. The value must be a UUID | ✅ |
| Content-Type | application/json | |
| Accept-Language | Language used for error messages. Supported values: en, fr |
Request
| Field | Type | Description | Required |
|---|---|---|---|
reason | string | The reason for the refund. | ✅ |
externalReference | string | The reference sent by the API. | ✅ |
sandboxScenario | string | Sandbox scenario: completed, failed, or pending. |
{
"reason": "Client cancellation",
"sandboxScenario": "completed",
"externalReference": "refund_9843b-9911c-qa87"
}Response
{
"type": "refund",
"reference": "rf_fhchi842jyimwiugjgszcxvb8n",
"originalReference": "tr_fhchi842jyimwiugjgszcxvb8n",
"amount": 150,
"fee": 0,
"currency": "XOF",
"status": "processing",
"reason": "Client cancellation",
"refundType": "full",
"customerMsisdn": "+2250702968786",
"customerName": "John",
"createdAt": "2025-08-23T12:34:48.189Z",
"transaction": {
"reference": "tr_rf84dhf9pqiuhd38",
"status": "pending",
"processedAt": null
}
}Response Fields
| Field | Description |
|---|---|
| type | Type of operation (refund). |
| reference | Unique refund identifier. |
| originalReference | Reference of the original payment to be refunded. |
| amount | Refund amount returned by the API. |
| fee | Associated fees (if applicable). |
| currency | Refund currency (XOF, USD, etc.). |
| status | Refund status (pending, processing, completed, failed). |
| reason | Refund reason provided by the merchant. |
| refundType | Refund type (full). |
| customerMsisdn | Refunded customer phone number. |
| customerName | Customer name. |
| createdAt | Timestamp when the refund request was created. |
| transaction | Refund transaction details on the Core System side. |