LogoLogo
  • Getting Started
    • Supplier API (ZAPI)
    • Getting Started
      • Implementing Exponential Back-Off
    • API Specification
    • API Specification Enhancements
    • Glossary of Terms
  • Supporting Nodes
    • Supporting Nodes
      • Single Booking Details
      • Currencies
      • Cart
      • Activity Times
      • Products
      • Business Hours
      • Pickup Locations
      • Dropoff Location
      • Rental Date & Times
      • Allowed Guest Types
      • Waitlist
      • Passenger List
      • Guest or Agent Details
      • User Custom Fields
      • Related Bookings
      • Transaction Details
        • Basic Transaction
        • Credit Card Transaction
        • Voucher/Invoice Transaction
        • Discount Transaction
      • Days of the Week
      • Price Code
      • Multi-Day Package Itinerary
      • Booking - Search Results
      • Mobile Data
  • ZAPI Calls
    • Start Here
      • Ping Test
    • Activity Calls
      • All Activities by Date
      • All Activities by Name
      • Activity & Product Catalog
      • Activity Categories
      • Activity Category by ID
      • Cancelled Activities
      • Create Cancellation
      • Check Inventory
      • Single Activity Details
      • Upcoming Activities
      • Remove Cancellation
      • Rental Equipment Calls
        • Equipment Price Quote
        • Equipment Availability
        • Cart Contents
        • Add to Cart
    • Agent Calls
      • Agent Login
      • Authenticate Agent
      • Get Agent Profile
      • Update Agent Username
      • Update Agent Password
    • Booking
      • Batch Availability
      • Booking Search
        • Search Bookings
        • Search by Booking Number
        • Search by Last Name
        • Search by Mobile Number
      • Cancel Booking
      • Email Itinerary
      • Generate Barcode Image
      • Ticket Data by Booking ID
    • Guest Specific
      • Authenticate Guest
      • Booking Details
      • Get Guest Profile
      • Guest Lookup
      • Update Username
      • Update Password
      • Update Profile
    • Interacting with a Cart
      • Add Activity to Cart
      • Add Package to Cart
      • Add Product to Cart
      • Clear Cart Session
      • Create a Unique Cart
      • Get All Cart Sessions
      • Get Cart Contents
      • Load Booking into Cart
      • Remove Activity
      • Remove Product
      • Remove Cart Session
      • Update Notes to Cart
      • Update Customer Details
      • Transactions
        • Process Payment
        • Process Single Transaction
        • Apply Promo Code
        • Apply Gift Card
    • Manifest
      • Entire Day Manifest
      • Activity Manifest
    • Mobile
      • Check In
      • Generate Z Report
      • User Logout
    • Packages
      • Get Package Categories
      • Get Packages by Category
      • Get Package Details
      • Minimum Dates to Book
      • Package Pricing Details
    • Products
      • Product Inventory
      • Product Categories
      • Product by Category
      • Product by Name
      • Single Product Detail
    • System Info
      • All Companies
      • All Equipment
      • Custom Fields List
      • Employee List
      • Get System Info
      • User List
    • Waitlist
      • Single Activity Waitlist
      • Add Guest
      • Convert to Cart
      • Remove Guest
  • Appendix
    • Activity Type IDs
    • Error Codes
    • Package Type IDs
    • Product Type IDs
    • Payment Method Type IDs
    • User Type IDs
Powered by GitBook
On this page

Was this helpful?

  1. ZAPI Calls
  2. Booking

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

Name
Type
Description

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>
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGenerateBarCodeImage</methodName>
        <product>
            <productName>
                <![CDATA[Ski Poles]]>
            </productName>
            <productId>6</productId>
            <productDate/>
            <quantity>2.00</quantity>
            <categoryName>
                <![CDATA[Ski Poles]]>
            </categoryName>
            <categoryId>2</categoryId>
            <barCodeImage>https://suppliertestsystem.zaui.net/tmp/ZT40243SkiPoles_2021_11_23089c0cd.png</barCodeImage>
        </product>
    </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>
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGenerateBarCodeImage</methodName>
        <methodErrorCode></methodErrorCode>
        <methodErrorMessage></methodErrorMessage>
        <activity>
            <activityName></activityName>
            <activityId></activityId>
            <activityDate></activityDate>
            <activityTime></activityTime>
            <activityTypeId></activityTypeId>
        </activity>
        <passengers>
            <seniors></seniors>
            <adults></adults>
            <students></students>
            <children></children>
            <infants></infants>
            <passengersAsString></passengersAsString>
        </passengers>
        <categoryName></categoryName>
        <categoryId></categoryId>
        <barCodeImage></barCodeImage>
    </methodResponse>
</response>
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGenerateBarCodeImage</methodName>
        <product>
            <productName></productName>
            <productId></productId>
            <productDate/>
            <quantity></quantity>
            <categoryName></categoryName>
            <categoryId></categoryId>
            <barCodeImage></barCodeImage>
        </product>
    </methodResponse>
</response>
PreviousEmail ItineraryNextTicket Data by Booking ID

Last updated 3 years ago

Was this helpful?