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. Products

Product by Category

Search for a product by Category ID.

zapiGetMerchandiseByCategoryId

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.

categoryId*

integer

ID of the category.

methodName

string

The method being called.

zapiUserId*

integer

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

zapiAccountId*

integer

Generated by the supplier system.

<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGetMerchandiseByCategoryId</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <categoryId>2</categoryId>
        <products>
            <product>
                <pricePreTax>$5.00</pricePreTax>
                <productId>6</productId>
                <productName>
                    <![CDATA[Ski Poles]]>
                </productName>
                <productDescription>
                    <![CDATA[]]>
                </productDescription>
                <inventory>-2</inventory>
            </product>
        </products>
    </methodResponse>
</response>
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiGetMerchandiseByCategoryId</methodName>
		<categoryId></categoryId>
	</zapiMethod>
</request>

Element
M/O/C
Format
Length
Details

Request

M

a-z, A-Z

7

Top level element

ZapiToken

M

a-z, A-Z, 0-9

40

The generated ZAPI token

ZapiUserId

M

2

Supplied user ID

ZapiMethod

M

0-9

All requests must have a method

MethodName

M

a-z, A-Z, 0-9

Variable

See documentation for options

CategoryID

M

0-9

<?xml version="1.0" encoding="utf-8"?>
<response>
	<zapiVersion>2.0</zapiVersion>
	<error>0</error>
	<message>ZAPI Ok</message>
	<methodResponse>
		<methodName>zapiGetMerchandiseByCategoryId</methodName>
		<products>
			<product>
				<productId></productId>
				<productName></productName>
				<productDescription></productDescription>
				<pricePreTax></pricePreTax>
				<priceWithTax></priceWithTax>
			</product>
		</products>
	</methodResponse>
</response>

Element
M/O/C
Format
Length
Details

Response

M

a-z, A-Z

Top level element

ZapiVersion

M

0-9

5

Error

M

0-9

2

Message

M

a-z, A-Z, 0-9

Variable

Error message details

Method Response

M

MethodName

M

a-z, A-Z, 0-9

Variable

See documentation for options

Items

M

Element

Variable

Item

Element

Variable

ProductID

M

0-9

Unique for the product

ProductName

M

a-z, A-Z, 0-9

Product name

Product

Description

M

a-z, A-Z, 0-9

Variable

Product description

PricePreTax

M

0-9.0-90-9

Float

Price pre-tax (based on qty of 1)

PriceWithTax

M

0-9.0-90-9

Float

Price with tax (based on qty of 1)

PreviousProduct CategoriesNextProduct by Name

Last updated 3 years ago

Was this helpful?