After Create Convert Request Successfully you can complete your request.


POST /api/Payment/CompleteConvertRequest


URI Parameters

NameTypeAdditional information
RequestIdglobally unique identifierConvertRequesId from "Create Convert Request"


NameTypeAdditional information
StatusstringShow status of request
PaymentobjectPayment complete details
convertRequestobjectConvert Request details
ErrorsString arrayAll the necessary files that you need to upload

Example Request

public async Task<object> CompleteConvertRequest(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/CompleteConvertRequest";
                    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": "Convert Completed Successfully",
    "convertRequest": {
        "RequestId": "c55d10e2-692d-4887-8d73-980041c42ee9",
        "BuyAmount": "1,000.00 ILS",
        "ChargeAmount": "281.90 USD",
        "FinalQuote": null
    "Errors": null

Errors Index

Error NumberDescription
607Request Not Found
610Convert Failed
611The time for convert passed please refresh your quote and try again (use RefreshConvertRequest(RequestId))
612Missing amount in your wallet
613Profile not approved
614General Error
500Server error
401Unauthorized (need to login)
400Bad inputs
404Url Request Not Found