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

# Verify Transaction

use this endpoint to verify your transactions

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Sandbox",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.momofy.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/transactions/verify/{transaction_ref}": {
      "get": {
        "summary": "Verify Transaction",
        "description": "use this endpoint to verify your transactions",
        "operationId": "verify-transaction",
        "parameters": [
          {
            "name": "transaction_ref",
            "in": "path",
            "description": "Transaction reference code",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success Response": {
                    "value": "{\n\t\"success\": true,\n\t\"message\": \"Transaction retrieved\",\n\t\"result\": {\n\t\t\"id\": 603,\n\t\t\"channel\": \"mobile_money\",\n\t\t\"message\": \"Purchase for an item\",\n\t\t\"currency\": \"GHS\",\n\t\t\"payment_phone\": \"0246405640\",\n\t\t\"reference_code\": \"7049578f-8c9c-4372-87ae-35a88dcf058e\",\n\t\t\"gateway_status\": \"approved\",\n\t\t\"meta_data\": {\n\t\t\t\"financialTransactionId\": \"2098152592\",\n\t\t\t\"externalId\": \"7049878f-8c9c-4372-87ae-35a88dcf058e\",\n\t\t\t\"amount\": \"70\",\n\t\t\t\"currency\": \"EUR\",\n\t\t\t\"payer\": {\n\t\t\t\t\"partyIdType\": \"MSISDN\",\n\t\t\t\t\"partyId\": \"0245678902\"\n\t\t\t},\n\t\t\t\"payerMessage\": \"Purchase for an item\",\n\t\t\t\"payeeNote\": \"Purchase for an item\",\n\t\t\t\"status\": \"SUCCESSFUL\"\n\t\t},\n\t\t\"amount\": 70,\n\t\t\"status\": \"success\",\n\t\t\"environment\": \"test\",\n\t\t\"created_at\": \"2024-01-13T10:42:41.524+00:00\",\n\t\t\"updated_at\": \"2024-01-13T10:44:48.377+00:00\"\n\t},\n\t\"meta\": {}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Transaction retrieved"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 603,
                          "default": 0
                        },
                        "channel": {
                          "type": "string",
                          "example": "mobile_money"
                        },
                        "message": {
                          "type": "string",
                          "example": "Purchase for an item"
                        },
                        "currency": {
                          "type": "string",
                          "example": "GHS"
                        },
                        "payment_phone": {
                          "type": "string",
                          "example": "0246405640"
                        },
                        "reference_code": {
                          "type": "string",
                          "example": "7049578f-8c9c-4372-87ae-35a88dcf058e"
                        },
                        "gateway_status": {
                          "type": "string",
                          "example": "approved"
                        },
                        "meta_data": {
                          "type": "object",
                          "properties": {
                            "financialTransactionId": {
                              "type": "string",
                              "example": "2098152592"
                            },
                            "externalId": {
                              "type": "string",
                              "example": "7049878f-8c9c-4372-87ae-35a88dcf058e"
                            },
                            "amount": {
                              "type": "string",
                              "example": "70"
                            },
                            "currency": {
                              "type": "string",
                              "example": "EUR"
                            },
                            "payer": {
                              "type": "object",
                              "properties": {
                                "partyIdType": {
                                  "type": "string",
                                  "example": "MSISDN"
                                },
                                "partyId": {
                                  "type": "string",
                                  "example": "0245678902"
                                }
                              }
                            },
                            "payerMessage": {
                              "type": "string",
                              "example": "Purchase for an item"
                            },
                            "payeeNote": {
                              "type": "string",
                              "example": "Purchase for an item"
                            },
                            "status": {
                              "type": "string",
                              "example": "SUCCESSFUL"
                            }
                          }
                        },
                        "amount": {
                          "type": "integer",
                          "example": 70,
                          "default": 0
                        },
                        "status": {
                          "type": "string",
                          "example": "success"
                        },
                        "environment": {
                          "type": "string",
                          "example": "test"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2024-01-13T10:42:41.524+00:00"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2024-01-13T10:44:48.377+00:00"
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {}
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"message\": \"Record not found\",\n\t\"code\": 404\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Record not found"
                    },
                    "code": {
                      "type": "integer",
                      "example": 404,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6596a7aab805b8001c561159:65c0e2d0ee29df004db89172"
}
```