<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.simplybook.me/index.php?action=history&amp;feed=atom&amp;title=Translations%3ACompany_administration_service_methods%2F41%2Fen</id>
	<title>Translations:Company administration service methods/41/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.simplybook.me/index.php?action=history&amp;feed=atom&amp;title=Translations%3ACompany_administration_service_methods%2F41%2Fen"/>
	<link rel="alternate" type="text/html" href="https://help.simplybook.me/index.php?title=Translations:Company_administration_service_methods/41/en&amp;action=history"/>
	<updated>2026-06-19T05:17:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://help.simplybook.me/index.php?title=Translations:Company_administration_service_methods/41/en&amp;diff=15151&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="https://help.simplybook.me/index.php?title=Translations:Company_administration_service_methods/41/en&amp;diff=15151&amp;oldid=prev"/>
		<updated>2025-05-15T12:57:47Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Creates new booking record. Returns an object with appointment information or throw exception if booking time not&lt;br /&gt;
available or any of required parameters missed. If appointment requires confirmation, in result object will be&lt;br /&gt;
&amp;lt;code&amp;gt;require_confirm = true&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;$startDate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$startTime&amp;lt;/code&amp;gt; specifies a date of&lt;br /&gt;
booking and time slot. Time value should be multiple to &amp;#039;timeframe&amp;#039; configuration of company (see&lt;br /&gt;
&amp;lt;code&amp;gt;[[#getTimeframe|getTimeframe]]&amp;lt;/code&amp;gt; API method). &amp;lt;code&amp;gt;$endDate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$endTime&amp;lt;/code&amp;gt; parameters&lt;br /&gt;
should be calculated according to service duration. However you can specify different values to make appointment&lt;br /&gt;
longer or shorter then service configuration. Note that &amp;lt;code&amp;gt;$endDate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$endTime&amp;lt;/code&amp;gt; should be&lt;br /&gt;
later in time than &amp;lt;code&amp;gt;$startDate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;$startTime&amp;lt;/code&amp;gt;. If your clients located in different time&lt;br /&gt;
zone you should specify &amp;lt;code&amp;gt;$clientTimeOffset&amp;lt;/code&amp;gt; parameter as difference between company&amp;#039;s time zone and&lt;br /&gt;
client&amp;#039;s time zone in seconds. For example if company located in city with time zone GMT+2 and customer located&lt;br /&gt;
in city with GMT+3 then &amp;lt;code&amp;gt;$clientTimeOffset&amp;lt;/code&amp;gt; will be -3600 seconds. You can get information about company&amp;#039;s&lt;br /&gt;
time zone using &amp;lt;code&amp;gt;[[#getCompanyInfo|getCompanyInfo]]&amp;lt;/code&amp;gt; API method. To create batch booking you can&lt;br /&gt;
specify either &amp;lt;code&amp;gt;count&amp;lt;/code&amp;gt; more then 1 or valid &amp;lt;code&amp;gt;batchId&amp;lt;/code&amp;gt; (only one parameter can be&lt;br /&gt;
specified). You should specify an &amp;lt;code&amp;gt;$additionalFields&amp;lt;/code&amp;gt; parameter if service requires some intake forms (see [[Custom_Features#Intake_Forms|Intake Forms Custom feature]]).To create a booking with promo code you should pass it as additional field. For example: &amp;lt;code&amp;gt;{&amp;quot;promocode&amp;quot;: &amp;quot;some code&amp;quot;}&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>