For any convert request you have 15 second to approve because it's depended on spot rate. If the time is over, you will need to run this request.


POST /api/Payment/RefreshConvertRequest


URI Parameters

NameTypeAdditional information
RequestIdglobally unique identifierConvertRequesId from "Create Convert Request"


NameTypeAdditional information
StatusstringShow status of request
RequestIdglobally unique identifierNone.
BuyAmountdecimal numberBuy amount
ChargeAmountdecimal numberCharge amount
ErrorsString arrayAll the necessary files that you need to upload

Example Request

public async Task<object> RefreshConvertRequest(string access_token, Guid RequestId)
            using (var client = new HttpClient())
                    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

                    client.DefaultRequestHeaders.Authorization =
                     new AuthenticationHeaderValue("Bearer", access_token);

                    var queryParameters = new Dictionary<string, string>
                        { "RequestId", RequestId.ToString() },

                    var dictFormUrlEncoded = new FormUrlEncodedContent(queryParameters);
                    var queryString = await dictFormUrlEncoded.ReadAsStringAsync();

                    var url =  root + "/api/Payment/RefreshConvertRequest";
                    var response = client.PostAsync(url + $"?{queryString}", null).Result;

                    if (response.IsSuccessStatusCode)
                        string result = await response.Content.ReadAsStringAsync();
                        JObject jObject = JObject.Parse(result);
                        return jObject;

                    else return response.StatusCode;
                catch (Exception e)
                    return "Exception: " + e.Message;

Example Response

    "Status": "Refresh Convert Quote Successfully",
    "convertRequest": {
        "RequestId": "6287135b-ba0b-4c1d-8471-abd32433b6e0",
        "BuyAmount": "100.00 EUR",
        "ChargeAmount": "344.08 ILS",
        "FinalQuote": "3.44084"
    "Errors": null

Errors Index

Error NumberDescription
607Request Not Found
608Refresh Failed
500Server error
401Unauthorized (need to login)
400Bad inputs
404Url Request Not Found