Адрес службы: GET
http://api.alemtat.kz/web/{ext}/WayBill/get-waybill-amounts?Number={Number}&ApiKey={ApiKey}
Получить стоимость отправления
Информация о запросе
URI параметры
Наименование | Описание | Тип | Дополнительная информация |
---|---|---|---|
Number | string |
Required |
|
ext |
Формат данных. JSON или XML. |
string |
Нет описания |
ApiKey |
Выданный API-ключ |
string |
Обязательный Используется для получения доступа к данным |
Информация об ответе
Описание ответа
Наименование | Описание | Тип | Дополнительная информация |
---|---|---|---|
Number |
Номер накладной |
string |
Нет описания |
ChargeAmount |
Базовая стоимость отправления (Согласно тарифа) |
decimal number |
Нет описания |
FactorAmount |
Сумма дополнительных коэффициентов примененных к тарифу |
decimal number |
Нет описания |
DiscountAmount |
Сумма скидки |
decimal number |
Нет описания |
Amount |
Сумма к оплате |
decimal number |
Нет описания |
Elements |
Список услуг по накладной |
Коллекция из ResultElementBillAmount |
Нет описания |
IsError |
Признак ошибки |
boolean |
Нет описания |
ResultCode |
Код выполнения |
integer |
Нет описания |
Message |
Описание ошибки |
string |
Нет описания |
Форматы ответа
application/json, text/json
Пример:
{ "Number": "sample string 1", "ChargeAmount": 2.0, "FactorAmount": 3.0, "DiscountAmount": 4.0, "Amount": 5.0, "Elements": [ { "Date": "2024-12-21T21:46:55.6492994+05:00", "Service": "sample string 2", "ServiceName": "sample string 3", "Data": { "sample string 1": {}, "sample string 3": {} }, "ChargeAmount": 4.0, "FactorAmount": 5.0, "DiscountAmount": 6.0, "Amount": 7.0, "Discounts": [ { "DiscountName": "sample string 1", "ChargePercent": 2.0, "ChargeAmount": 3.0, "DiscountAmount": 4.0 }, { "DiscountName": "sample string 1", "ChargePercent": 2.0, "ChargeAmount": 3.0, "DiscountAmount": 4.0 } ], "Factors": [ { "FactorCode": "sample string 1", "FactorName": "sample string 2", "Charge": 3.0, "FactorAmount": 4.0 }, { "FactorCode": "sample string 1", "FactorName": "sample string 2", "Charge": 3.0, "FactorAmount": 4.0 } ] }, { "Date": "2024-12-21T21:46:55.6492994+05:00", "Service": "sample string 2", "ServiceName": "sample string 3", "Data": { "sample string 1": {}, "sample string 3": {} }, "ChargeAmount": 4.0, "FactorAmount": 5.0, "DiscountAmount": 6.0, "Amount": 7.0, "Discounts": [ { "DiscountName": "sample string 1", "ChargePercent": 2.0, "ChargeAmount": 3.0, "DiscountAmount": 4.0 }, { "DiscountName": "sample string 1", "ChargePercent": 2.0, "ChargeAmount": 3.0, "DiscountAmount": 4.0 } ], "Factors": [ { "FactorCode": "sample string 1", "FactorName": "sample string 2", "Charge": 3.0, "FactorAmount": 4.0 }, { "FactorCode": "sample string 1", "FactorName": "sample string 2", "Charge": 3.0, "FactorAmount": 4.0 } ] } ], "IsError": true, "ResultCode": 7, "Message": "sample string 8" }
application/xml, text/xml
Пример:
<ResultWayBillAmounts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALES.WebAPI.Models"> <IsError>true</IsError> <Message>sample string 8</Message> <ResultCode>7</ResultCode> <Amount>5</Amount> <ChargeAmount>2</ChargeAmount> <DiscountAmount>4</DiscountAmount> <Elements> <ResultElementBillAmount> <Amount>7</Amount> <ChargeAmount>4</ChargeAmount> <Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringanyType> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value /> </d4p1:KeyValueOfstringanyType> <d4p1:KeyValueOfstringanyType> <d4p1:Key>sample string 3</d4p1:Key> <d4p1:Value /> </d4p1:KeyValueOfstringanyType> </Data> <Date>2024-12-21T21:46:55.6492994+05:00</Date> <DiscountAmount>6</DiscountAmount> <Discounts> <ResultDiscountAmount> <ChargeAmount>3</ChargeAmount> <ChargePercent>2</ChargePercent> <DiscountAmount>4</DiscountAmount> <DiscountName>sample string 1</DiscountName> </ResultDiscountAmount> <ResultDiscountAmount> <ChargeAmount>3</ChargeAmount> <ChargePercent>2</ChargePercent> <DiscountAmount>4</DiscountAmount> <DiscountName>sample string 1</DiscountName> </ResultDiscountAmount> </Discounts> <FactorAmount>5</FactorAmount> <Factors> <ResultFactorAmount> <Charge>3</Charge> <FactorAmount>4</FactorAmount> <FactorCode>sample string 1</FactorCode> <FactorName>sample string 2</FactorName> </ResultFactorAmount> <ResultFactorAmount> <Charge>3</Charge> <FactorAmount>4</FactorAmount> <FactorCode>sample string 1</FactorCode> <FactorName>sample string 2</FactorName> </ResultFactorAmount> </Factors> <Service>sample string 2</Service> <ServiceName>sample string 3</ServiceName> </ResultElementBillAmount> <ResultElementBillAmount> <Amount>7</Amount> <ChargeAmount>4</ChargeAmount> <Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringanyType> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value /> </d4p1:KeyValueOfstringanyType> <d4p1:KeyValueOfstringanyType> <d4p1:Key>sample string 3</d4p1:Key> <d4p1:Value /> </d4p1:KeyValueOfstringanyType> </Data> <Date>2024-12-21T21:46:55.6492994+05:00</Date> <DiscountAmount>6</DiscountAmount> <Discounts> <ResultDiscountAmount> <ChargeAmount>3</ChargeAmount> <ChargePercent>2</ChargePercent> <DiscountAmount>4</DiscountAmount> <DiscountName>sample string 1</DiscountName> </ResultDiscountAmount> <ResultDiscountAmount> <ChargeAmount>3</ChargeAmount> <ChargePercent>2</ChargePercent> <DiscountAmount>4</DiscountAmount> <DiscountName>sample string 1</DiscountName> </ResultDiscountAmount> </Discounts> <FactorAmount>5</FactorAmount> <Factors> <ResultFactorAmount> <Charge>3</Charge> <FactorAmount>4</FactorAmount> <FactorCode>sample string 1</FactorCode> <FactorName>sample string 2</FactorName> </ResultFactorAmount> <ResultFactorAmount> <Charge>3</Charge> <FactorAmount>4</FactorAmount> <FactorCode>sample string 1</FactorCode> <FactorName>sample string 2</FactorName> </ResultFactorAmount> </Factors> <Service>sample string 2</Service> <ServiceName>sample string 3</ServiceName> </ResultElementBillAmount> </Elements> <FactorAmount>3</FactorAmount> <Number>sample string 1</Number> </ResultWayBillAmounts>