Адрес службы: GET

http://api.alemtat.kz/web/{ext}/WayBill/GetEAWBNInfo_v2?Number={Number}&ApiKey={ApiKey}


Получение информации по Элетронной накладной

Информация о запросе

URI параметры

НаименованиеОписаниеТипДополнительная информация
Number

Номер эелектроной накладной.

string

Required

ext

Формат данных. JSON или XML.

string

Нет описания

ApiKey

Выданный API-ключ

string

Обязательный

Используется для получения доступа к данным

Информация об ответе

Описание ответа

НаименованиеОписаниеТипДополнительная информация
WayBillDocumentId

Идентификатор документа для получения печатной формы: Электроной накладной.

globally unique identifier

Нет описания

WayBillNumber

Номер накладной

string

Нет описания

EWaybillInfo

Детальная информация по доументу "Электроная накладная"

EWayBillInfo_API_V2

Нет описания

IsError

Признак ошибки

boolean

Нет описания

ErrorCode

Код ошибки

integer

Нет описания

Message

Описание ошибки

string

Нет описания

Форматы ответа

application/json, text/json

Пример:
{
  "WayBillDocumentId": "95c29702-1bb0-425a-b555-3482ac012c4d",
  "WayBillNumber": "sample string 2",
  "EWaybillInfo": {
    "RequestId": "1b622436-a305-412e-9c8e-3afd71cd006c",
    "Card": "sample string 1",
    "ReceivingStation": "sample string 2",
    "Recipient": {
      "Company": "sample string 1",
      "Contact": "sample string 2",
      "INN": "sample string 3",
      "Tel": "sample string 4",
      "email": "sample string 5",
      "LocalityCode": "sample string 6",
      "LocalityName": "sample string 7",
      "Zip": "sample string 8",
      "AddressDetail": "sample string 9"
    },
    "CodeOfPV": "sample string 3",
    "Service": "sample string 4",
    "Place": 5,
    "Weight": 6.0,
    "DeclareAmount": 7.0,
    "CashAssigment": {
      "RNumber": "sample string 1",
      "Amount": 2.0
    },
    "Content": "sample string 8",
    "Tnved": "sample string 9"
  },
  "IsError": true,
  "ErrorCode": 4,
  "Message": "sample string 5"
}

application/xml, text/xml

Пример:
<ResultEWayBillInfoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALES.WebAPI.Models">
  <EWaybillInfo>
    <Card>sample string 1</Card>
    <CashAssigment>
      <Amount>2</Amount>
      <RNumber>sample string 1</RNumber>
    </CashAssigment>
    <CodeOfPV>sample string 3</CodeOfPV>
    <Content>sample string 8</Content>
    <DeclareAmount>7</DeclareAmount>
    <Place>5</Place>
    <ReceivingStation>sample string 2</ReceivingStation>
    <Recipient>
      <AddressDetail>sample string 9</AddressDetail>
      <Company>sample string 1</Company>
      <Contact>sample string 2</Contact>
      <INN>sample string 3</INN>
      <LocalityCode>sample string 6</LocalityCode>
      <LocalityName>sample string 7</LocalityName>
      <Tel>sample string 4</Tel>
      <Zip>sample string 8</Zip>
      <email>sample string 5</email>
    </Recipient>
    <RequestId>1b622436-a305-412e-9c8e-3afd71cd006c</RequestId>
    <Service>sample string 4</Service>
    <Tnved>sample string 9</Tnved>
    <Weight>6</Weight>
  </EWaybillInfo>
  <ErrorCode>4</ErrorCode>
  <IsError>true</IsError>
  <Message>sample string 5</Message>
  <WayBillDocumentId>95c29702-1bb0-425a-b555-3482ac012c4d</WayBillDocumentId>
  <WayBillNumber>sample string 2</WayBillNumber>
</ResultEWayBillInfoV2>