API V1.0 – 6.1 Создание накладной с детализацией мест

Создание накладных на груз по переданным параметрам

URL-Адрес запроса:

https://api.sat.ua/study/hs/api/v1.0/documents/nng/{format}/save[?apiKey]

Параметры запроса:

format строка Формат данных для получения ответа (xml, json, json
apiKey строка Ключ пользователя ТК САТ. Для получения ключа нужно пройти регистрацию. Ключ может быть передан как через параметр URL, так и в заголовке HTTP запроса В режиме тестирования без регистрации используйте ключ: devApiKey

Текст запроса (доступные поля):

пример запроса

текст/xml | application/json

<request>
	<item>
		<rspRecipient>bbf8e497-33a7-11dd-a17a-001a4d3b885e</rspRecipient>
		<payerType>Получатель</payerType>
		<paymentMethod>Cash</paymentMethod>
		<description>106c69c5-fe17-4107-a211-ba9f0032e2c5</description>
		<recipient>f99c20ea-182e-11e2-89e8-0017a4770440</recipient>
		<addServices>
			<service>4293056e-4cb1-406d-a2cd-e8f6d2ae6721</service>
			<count>2</count>
		</addServices>
		<addServices>
			<service>4fdbcdc1-72ed-4e7b-bd69-6a8cd19ee00b</service>
			<count>2</count>
		</addServices>
		<isDetailingByUnits>true</isDetailingByUnits>
		<units>
			<rows>
				<declaredCost>300</declaredCost>
				<description>80ca645c-51d4-11e8-9403-00505601031c</description>
				<weight>2</weight>
				<width>1</width>
				<length>1</length>
				<height>1</height>
				<volume>1</volume>
				<cargoType>Базовый</cargoType>
			</rows>
			<rows>
				<declaredCost>300</declaredCost>
				<description>80ca645c-51d4-11e8-9403-00505601031c</description>
				<weight>24</weight>
				<width>1</width>
				<length>11</length>
				<height>1</height>
				<volume>1</volume>
				<cargoType>Базовый</cargoType>
			</rows>
		</units>
	</item>
</request>
                    

 

Ответ 200

пример ответа

текст/xml | application/json
                        
<response>
	<success>true</success>
	<data>
		<item>
			<ref>59cb9c04-2eb6-4792-9efb-d0bfac25392e</ref>
			<number>122000030</number>
			<date>07.02.2024 09:57:17</date>
			<departureCost>0</departureCost>
			<deliveryCost>0</deliveryCost>
			<cost>542</cost>
			<barcode>12202053177009</barcode>
			<barcode>12202053178009</barcode>
			<addServices>
				<service>4293056e-4cb1-406d-a2cd-e8f6d2ae6721</service>
				<cost>370</cost>
			</addServices>
			<addServices>
				<service>4fdbcdc1-72ed-4e7b-bd69-6a8cd19ee00b</service>
				<cost>14</cost>
			</addServices>
			<orderDeparture/>
		</item>
	</data>
</response>                        
                    

 

 

интерфейсы API

выберите регион

1 какие грузы запрещены к перевозке?

Поиск по сайту