After creating a quote, you need to choose your cost type for payment.

Endpoints

POST /api/Payment/UpdatePaymentCostList

Request

URI Parameters

NameTypeAdditional information
quoteIdglobally unique identifierQuote Id from "Create Quote Response"
costTypeintCost Type Key CostList from "Create Quote Response" 1-Regular , 2-Our

Response

NameTypeAdditional information
CostListPair of string [key] and decimal number [value]The Cost chosen

Example Request

public async Task<object> UpdatePaymentCostList(string access_token, Guid quoteId, int costType)
        {
            using (var client = new HttpClient())
            {
                try
                {
                    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

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

                    var queryParameters = new Dictionary<string, string>
                    {
                        { "quoteId", quoteId.ToString() },
                        { "costType", costType.ToString()}
                    };
                    var dictFormUrlEncoded = new FormUrlEncodedContent(queryParameters);
                    var queryString = await dictFormUrlEncoded.ReadAsStringAsync();

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

                    if (response.IsSuccessStatusCode)
                    {
                        string result = await response.Content.ReadAsStringAsync();
                        JArray jsonArray = JArray.Parse(result);
                        return jsonArray;

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

Example Response

[
    {
        "Key": "our",
        "Value": 22.88
    }
]