post https://api-v3-uat.tanda.africa/io/v3/organizations//consumers//request/consumerToConsumerPayment
Initiates a payment from a consumer's wallet to another consumer.
Consumer-to-Consumer Payment Transfer
This API facilitates payments from one consumer to another within the same platform (e.g., TANDA), with immediate confirmation via IPN.
Request Body Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| commandId | Command to execute, must be ConsumerToConsumerPayment | Yes |
| serviceProviderId | Service provider, e.g., TANDA | Yes |
| reference | Unique identifier for the transaction (UUID or alphanumeric) | Yes |
| request | Array of key-value pairs specifying payment details | Yes |
Request Details in request Array for Consumer Payment
request Array for Consumer Payment| id | Description | Mandatory |
|---|---|---|
| amount | Amount to be transferred in Ksh | Yes |
| narration | Description or note for payment | Yes |
| consumerID | Destination consumer unique ID | Yes |
| ipnUrl | URL to receive instant payment notifications | Yes |
Example Request - Consumer to Consumer Payment
{
"commandId": "ConsumerToConsumerPayment",
"serviceProviderId": "TANDA",
"reference": "e9b1c7d8-f7e9-4fda-99ed-31e8370aa9b4",
"request": [
{
"id": "amount",
"value": "1",
"label": "Amount"
},
{
"id": "narration",
"value": "Payment",
"label": "Send to another consumer"
},
{
"id": "consumerID",
"value": "a7eaf5db-5a9e-4fd1-aae7-3bf6defc6a9b",
"label": "Destination Consumer"
},
{
"id": "ipnUrl",
"value": "https://tanda-tills-ipn.free.beeceptor.com",
"label": "Notification URL"
}
]
}Sample Response - Consumer to Consumer Payment
{
"trackingId": "a17f35d2-9b21-4c0b-99fd-b067d4b7b22f",
"reference": "e9b1c7d8-f7e9-4fda-99ed-31e8370aa9b4",
"status": "P202000",
"message": "Successful. Request accepted for processing. You'll be notified by Tanda shortly"
}