Generate Barcode Image

Create a barcode for activity or product related to a single booking ID.

zapiGenerateBarCodeImage

GET https://{yourdomainname}.zaui.net/zapi/

Request Body

NameTypeDescription

zapiToken*

integer

Token that must be used for a reseller to communicate with the supplier system.

zapiAccountId*

integer

Generated by the supplier system.

zapiUserId*

integer

Generated by the supplier system when a new contact is created.

methodName*

string

The method being called.

bookingNumber*

integer

Confirmation number assigned once booking is confirmed.

type*

string

Either A or a for activity or P or p for product

productId

integer

ID of the product. Not required when running call based on activityID.

activityDate

integer

The travel date. Format: YYYY-MM-DD

activityId

integer

ID of the activity. Not required when running call based on productID.

<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGenerateBarCodeImage</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage>
            <![CDATA[Ok]]>
        </methodErrorMessage>
        <activity>
            <activityName>
                <![CDATA[Canyon Icewalk ]]>
            </activityName>
            <activityId>80</activityId>
            <activityDate>2021-11-29</activityDate>
            <activityTime>00:00:00</activityTime>
            <activityTypeId>500</activityTypeId>
        </activity>
        <passengers>
            <seniors>0</seniors>
            <adults>2</adults>
            <students>0</students>
            <children>0</children>
            <infants>0</infants>
            <passengersAsString>
                <![CDATA[2 (ad)]]>
            </passengersAsString>
        </passengers>
        <categoryName>
            <![CDATA[Canyon Walks]]>
        </categoryName>
        <categoryId>8</categoryId>
        <barCodeImage>https://suppliertestsystem.zaui.net/tmp/ZT40242CanyonIcewalk_2021_11_290868f9c.png</barCodeImage>
    </methodResponse>
</response>
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiGenerateBarCodeImage</methodName>
		<bookingNumber></bookingNumber>
		<type></type>
		<activityId></activityId>
		<activityDate></activityDate>
		<productId></productId>
	</zapiMethod>
</request>

Last updated