{
  "info": {
    "_postman_id": "whish-intl-money-transfer",
    "name": "Whish \u00b7 International Money Transfer (v6.4.7)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "International Money Transfer API. Set baseUrl, username and key as collection variables (or use an environment). Request-id auto-generates a GUID per send."
  },
  "item": [
    {
      "name": "Get send-money fees",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/send/money/fees",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "send",
            "money",
            "fees"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fromCountry\": 1,\n  \"toCountry\": 1,\n  \"currencyId\": 2,\n  \"amount\": 1,\n  \"deductFees\": false,\n  \"paymentMode\": \"CASH_COLLECTION\",\n  \"phoneNumber\": \"9613888999\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Send money",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/send/money",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "send",
            "money"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fromCountry\": 1,\n  \"toCountry\": 1,\n  \"currencyId\": 1,\n  \"amount\": 1000,\n  \"sender\": {\n    \"firstName\": \"personName\",\n    \"middleName\": \"m\",\n    \"lastName\": \"LastName\",\n    \"phone\": \"96170852258\",\n    \"extraInformation\": \"extraInformation\"\n  },\n  \"receiver\": {\n    \"firstName\": \"personName\",\n    \"middleName\": \"m\",\n    \"lastName\": \"LastName\",\n    \"phone\": \"96170852258\",\n    \"extraInformation\": \"extraInformation\"\n  },\n  \"reason\": \"GIFT\",\n  \"sourceOfFunds\": \"BUSSINESS\",\n  \"callbackUrl\": \"http://test.com\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Cancel transfer",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/cancel/send/money",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "cancel",
            "send",
            "money"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"transferId\": 202000001,\n  \"ltnNumber\": \"5405-6838-5079\",\n  \"reason\": \"test\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get transfer status",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/send/money/status",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "send",
            "money",
            "status"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"transferId\": 202000001,\n  \"ltnNumber\": \"5405-6838-5079\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get sending countries",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/sending/countries",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "sending",
            "countries"
          ]
        }
      }
    },
    {
      "name": "Get activity",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/activity",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "activity"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fromDate\": \"2020-01-01 00:00:00\",\n  \"toDate\": \"2022-01-01 00:00:00\",\n  \"currencyId\": 1\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get statement",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/statement",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "statement"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fromDate\": \"2020-01-01 00:00:00\",\n  \"toDate\": \"2022-01-01 00:00:00\",\n  \"currencyId\": 1\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Get payment modes",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "username",
            "value": "{{username}}"
          },
          {
            "key": "key",
            "value": "{{key}}"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Request-id",
            "value": "{{$guid}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/woo/send/money/modes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "woo",
            "send",
            "money",
            "modes"
          ]
        }
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.woocash.money"
    },
    {
      "key": "username",
      "value": "YOUR_USERNAME"
    },
    {
      "key": "key",
      "value": "YOUR_API_KEY"
    }
  ]
}