# Callback (ares_subject_search)

Load subject details by its ID from ARES

# Description

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

# Config

ares_subject_search:

	config:

		# Required | Type: string | Default: null
		# DSN string with API URL and credentials
		#
		### Examples
		### - https://user:pass@ares.ispalliance.cz/api/
		connection: "https://username:password@host"

		# Required | Type: string | Default: null
		# Subject ID (ICO)
		id: 28205812

		# Required | Type: string | Default: null
		# Name of variable in which subject data should be stored
		output: "myvar"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18