---
agentTools:
  projectIndex: https://chimoney.readme.io/llms.txt
---

# Redeem mobile money.

Redeems a Chimoney transaction as mobile money by specifying the recipient's phone number, destination country, mobile money code, and the reference code `chiRef`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chimoney API Docs",
    "version": "0.2.4",
    "description": "This is the latest version of the Chimoney API. For deprecated version routes, please refer to /v0.2/api-docs."
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.chimoney.io/",
      "description": "Prod Server"
    },
    {
      "url": "https://api-v2-sandbox.chimoney.io",
      "description": "Sandbox API v2 (v0.2.4)"
    }
  ],
  "paths": {
    "/v0.2.4/redeem/mobile-money": {
      "post": {
        "summary": "Redeem mobile money.",
        "tags": [
          "Redeem"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subAccount": {
                    "type": "string",
                    "description": "Subaccount if any.",
                    "example": "69791840-4f46-4e97-b6fd-b411bde50202"
                  },
                  "chiRef": {
                    "type": "string",
                    "description": "Chi reference.",
                    "example": "27583029-145b-4575-a608-0fbf655a0f2a"
                  },
                  "redeemOptions": {
                    "type": "object",
                    "description": "Data needed to redeem.",
                    "properties": {
                      "phoneNumber": {
                        "type": "string",
                        "example": "+2248123388400"
                      },
                      "countryToSend": {
                        "type": "string",
                        "example": "Kenya"
                      },
                      "momoCode": {
                        "type": "string",
                        "example": "MPS"
                      }
                    }
                  }
                },
                "required": [
                  "chiRef",
                  "redeemOptions"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": "Mobile money redeemed successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "payoutLink": {
                          "type": "string",
                          "example": "http://localhost:4000/pay/?issueID=69791840-4f46-4e97-b6fd-b411bde50202_10_1723717712329"
                        },
                        "error": {
                          "type": "string",
                          "example": "None"
                        },
                        "id": {
                          "type": "integer",
                          "example": 648221
                        },
                        "account_number": {
                          "type": "string",
                          "example": "2248123388400"
                        },
                        "bank_code": {
                          "type": "string",
                          "example": "MPS"
                        },
                        "full_name": {
                          "type": "string",
                          "example": "NOT PROVIDED"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2024-08-15T12:22:56.000Z"
                        },
                        "currency": {
                          "type": "string",
                          "example": "KES"
                        },
                        "debit_currency": {
                          "type": "string",
                          "example": "USD"
                        },
                        "amount": {
                          "type": "number",
                          "example": 1302.2987
                        },
                        "status": {
                          "type": "string",
                          "example": "NEW"
                        },
                        "reference": {
                          "type": "string",
                          "example": "27583029-145b-4575-a608-0fbf655a0f2a_1723724574832"
                        },
                        "meta": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "Sender": {
                                "type": "string",
                                "example": "Uchi Uchibeke"
                              },
                              "EmailAddress": {
                                "type": "string",
                                "example": "support@chimoney.io"
                              },
                              "MobileNumber": {
                                "type": "string",
                                "example": "16479330835"
                              },
                              "SenderCountry": {
                                "type": "string",
                                "example": "CA"
                              },
                              "SenderIdType": {
                                "type": "string",
                                "example": "04"
                              },
                              "SenderIdNumber": {
                                "type": "string",
                                "example": "1204939024"
                              }
                            }
                          }
                        },
                        "narration": {
                          "type": "string",
                          "example": "Chi: 27583029-145b-4575-a608-0fbf655a0f2a"
                        },
                        "complete_message": {
                          "type": "string",
                          "example": ""
                        },
                        "requires_approval": {
                          "type": "integer",
                          "example": 0
                        },
                        "is_approved": {
                          "type": "integer",
                          "example": 1
                        },
                        "bank_name": {
                          "type": "string",
                          "example": "FA-BANK"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/TransactionNotFoundError"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "responses": {
      "Forbidden": {
        "description": "Access to this resource is forbidden.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Forbidden"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Access to this resource is not available for unauthenticated users.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Unauthorized"
            }
          }
        }
      },
      "ServerError": {
        "description": "Indicates an internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ServerError"
            }
          }
        }
      },
      "ValidationError": {
        "description": "Validation error in the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "TransactionNotFoundError": {
        "description": "Error indicating that the transaction was not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/TransactionNotFoundError"
            }
          }
        }
      }
    },
    "schemas": {
      "Forbidden": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating forbidden access.",
            "example": "API Access not enabled for account Test. Email support@chimoney.io"
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating unauthorized access.",
            "example": "API key is not defined. Generate a new one from the developer portal."
          }
        }
      },
      "ServerError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of server error.",
            "example": "server error"
          },
          "code": {
            "type": "string",
            "description": "Specific error code for server issues.",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "message": {
            "type": "string",
            "description": "Detailed message explaining the issue.",
            "example": "An internal server error occurred."
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the validation error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of validation error.",
            "example": "Validation Error"
          },
          "code": {
            "type": "string",
            "description": "Error code indicating validation issue.",
            "example": "INVALID_REQUEST"
          },
          "message": {
            "type": "string",
            "description": "Detailed validation error message.",
            "example": "The request parameters are invalid."
          }
        }
      },
      "TransactionNotFoundError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of error indicating transaction not found.",
            "example": "Resource Not Found"
          },
          "code": {
            "type": "string",
            "description": "Error code for transaction not found.",
            "example": "TRANSACTION_NOT_FOUND"
          },
          "message": {
            "type": "string",
            "description": "Detailed message explaining the transaction not found error.",
            "example": "The transaction with the provided ID could not be found."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Redeem",
      "description": "All redeem operations."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 208,
      "2": 243,
      "3": 240,
      "4": 73,
      "5": 214,
      "6": 34,
      "7": 0,
      "8": 37,
      "9": 190,
      "10": 200,
      "11": 166
    }
  }
}
```