Create Withdraw

To initiate a witd transaction within Vevopay, please refer to the information provided on this page.

Creating a new Withdrawal

  • The Customerwithdraw method processes the customer withdrawal request.

Customerwithdraw

HTTP: POST

https://vevopay.io/api/Vevo/Customerwithdraw

Creates a new withdrawal.

Headers

NameTypeDescription

WebApiKey*

String

API key for authentication and authorization (ask it from Vevopay officials)

Request Body (fields marked with * are required)

NameTypeDescription

amount*

string

amount of the transaction

userId*

string

userid

name*

string

name of the user

username*

string

username

IslemTuru*

String

type of transaction (check the methodlist)

processId*

String

your transaction id

iban*

String

destination address (varies depending on the transaction method used)

identity

String

ID number will be taken from the customer only for Pep withdrawals. "TC "

RedirectUrl

String

URL address where the user should be redirected after the transaction

{
    "status": "successful",
    "hataMesaj": null
}

Please note the successful status returned by the Customerwithdraw method does not indicate a successfully finished transaction, rather it indicates that the record of the transaction request is successfully taken. Final result of the of transaction process will be sent from us to your callback URLs, please refer to the Callback page.

iban* Usage

  • IBAN: Use a 26-character format without spaces. Example: TR121234123412341234123412

  • Papara: 10 digits. Example: 1234567890

  • MFT (Paypay): 10 digits. Example: 9998887776

  • Parazula: 12 digits. Example: 202400112222

  • Pep: 9 digits. Example: 907520389

  • Payfix: 10 digits. Example: 1515554443

  • Fups: 10 digits (formatted as a phone number). Example: 5054443322

Example Usage

public class FinanceController
{
    public async Task<ActionResult> PerformWithdrawal()
    {
        using (var client = new HttpClient())
        {
            var values = new
            {
                userName = "user_name",
                userId = "user_id",
                name = "user_name",
                processId = "process_id",
                IslemTuru = "your_islem_turu",
                iban = "destination_adress"
            };

            client.DefaultRequestHeaders.Add("WebApiKey", "your_api_key");

            var json = JsonConvert.SerializeObject(values);
            var content = new StringContent(json, System.Text.Encoding.UTF8, "application/json");
            var response = await client.PostAsync("https://vevopay.io/api/Vevo/Customerwithdraw", content);

            if (!response.IsSuccessStatusCode)
            {
                // Handle error or throw exception
                return View("Error");
            }
            else
            {
                var responseString = await response.Content.ReadAsStringAsync();
                var responseObject = JsonConvert.DeserializeObject<dynamic>(responseString);

                return View(responseObject); // Send response from API to a view
            }
        }
    }
}

Last updated

Logo

Vevopay Inc. ℗ 2023