# ares_subject_search

Name ares_subject_search
Type callback
Version 1.0
Since 2020-01-01

# Prologue

Tries to fetch subject details by its companyID from ARES API and stores data in defined variable.

When config.id variable is empty or contains invalid companyID an exception is thrown.

config.output variable will be populated with following company string details: id, name, address, vat_id

# Configuration

events:

	# Event's name
	on_step_start:

		# Callback's name
		ares_subject_search:
			config:

				# Required
				# Must be a scalar variable containing the valid companyID (ICO)
				#
				# Example "28205812"
				#
				id: companyID

				# Required
				# Must be JSON variable
				# Subject data will be filled into this variable
				output: subject
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20