{
  "openapi": "3.1.0",
  "info": {
    "title": "Whish International Money Transfer",
    "version": "6.4.7",
    "description": "Send money, quote fees, cancel, check status, and reconcile through the Whish Money network."
  },
  "servers": [
    {
      "url": "https://api.woocash.money",
      "description": "Production"
    },
    {
      "url": "https://sandbox.woocash.money/api",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "usernameAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "username"
      },
      "keyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "key"
      },
      "AcceptAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Accept"
      },
      "RequestidAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Request-id"
      }
    }
  },
  "security": [
    {
      "usernameAuth": [],
      "keyAuth": [],
      "AcceptAuth": [],
      "RequestidAuth": []
    }
  ],
  "paths": {
    "/api/woo/send/money/fees": {
      "post": {
        "summary": "Get send-money fees",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": {
                    "fees": 5,
                    "amount": 400,
                    "totalAmount": 405
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "fromCountry": 1,
                "toCountry": 1,
                "currencyId": 2,
                "amount": 1,
                "deductFees": false,
                "paymentMode": "CASH_COLLECTION",
                "phoneNumber": "9613888999"
              }
            }
          }
        }
      }
    },
    "/api/woo/send/money": {
      "post": {
        "summary": "Send money",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": {
                    "ltnNumber": "9262-6531-4941",
                    "transferId": "2020125708",
                    "charges": 250
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "fromCountry": 1,
                "toCountry": 1,
                "currencyId": 1,
                "amount": 1000,
                "sender": {
                  "firstName": "personName",
                  "lastName": "LastName",
                  "phone": "96170852258"
                },
                "receiver": {
                  "firstName": "personName",
                  "lastName": "LastName",
                  "phone": "96170852258"
                },
                "reason": "GIFT",
                "sourceOfFunds": "BUSSINESS",
                "callbackUrl": "http://test.com"
              }
            }
          }
        }
      }
    },
    "/api/woo/cancel/send/money": {
      "post": {
        "summary": "Cancel transfer",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "transferId": 202000001,
                "ltnNumber": "5405-6838-5079",
                "reason": "test"
              }
            }
          }
        }
      }
    },
    "/api/woo/send/money/status": {
      "post": {
        "summary": "Get transfer status",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "transferId": 202000001,
                "ltnNumber": "5405-6838-5079"
              }
            }
          }
        }
      }
    },
    "/api/woo/sending/countries": {
      "get": {
        "summary": "Get sending countries",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        }
      }
    },
    "/api/woo/activity": {
      "post": {
        "summary": "Get activity",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "fromDate": "2020-01-01 00:00:00",
                "toDate": "2022-01-01 00:00:00",
                "currencyId": 1
              }
            }
          }
        }
      }
    },
    "/api/woo/statement": {
      "post": {
        "summary": "Get statement",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "fromDate": "2020-01-01 00:00:00",
                "toDate": "2022-01-01 00:00:00",
                "currencyId": 1
              }
            }
          }
        }
      }
    },
    "/api/woo/send/money/modes": {
      "get": {
        "summary": "Get payment modes",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        }
      }
    }
  }
}