4.3 ww.dll API Reference : General use : Tags in <sale> : The following fields can be specified:
 
The following fields can be specified:
 
<name>
Ten character nick name of special
<disc_pct>
Percentage discount for special
<disc_flat>
Flat discount for special
 
<account>
This is the account that the sale is applied to. If an <invoice> tag is also passed, a specific invoice must be present. If <invoice> is not passed, a new invoice is created.
<acct_name>
If this account is not present, it is created.
<contact><full_name><email><address>...
All the fields in the accounts table can be passed as well. They override whatever is in the table if present.
 
<invoice>
The invoice used is always associated with the account passed (if the <invoice> tag is passed, the <account> tag must also be present).
<account>
This must be filled in with the <acct_name> from the <account> tag.
 
<invoice_no>
Only passed if a specific invoice is to be selected (neither the account nor the invoice can be new in this case)
 
<descrip1><descrip2><email><address>...
All the fields in the invoice table are available to be passed. They override whatever is in the table if present.
 
<item>
This is the parent tag for an item in a sale.
<dci>
This contains a thirty character string with the exact department, category and item for the item. This is also used for the item description passed to ProtoBase.
 
<invent_id>
This is also used for the item code passed to ProtoBase.
<val_info>
This is used to pass validation information.
 
Example:
<item><val_info><0><entry>327003010</entry></0></val_info></item>
The <0>,<1>, etc., are for the differing quantities. For a quantity of 2, the code would be:
<val_info><0><entry>327003010</entry></0>
<1><entry>328003010</entry></1></val_info>
 
<qty>
Quantity of the item to be sold.
 
<dw_info>
<dw_info> must be inside of tags indicating which item quantity is referred to:
 
<qty>1</qty><dw_info><0><pass_no>...</0></dw_info>
<qty>2</qty><dw_info><0><pass_no>...</...</0>
<1><pass_no>...</..</1></dw_info>
<pass_no>
DW pass number
<invoice_no>
DW invoice number
<crl>
Credit limit
<spld>
Spending limit per day
<splt>
Spending limit (total)
<rel>
Reload amount
<prel>
Preload amount
 
<special>
<name>
Ten character nick name of special
<disc_pct>
Percentage discount for special
<disc_flat>
Flat discount for special
<finalprice>
Price to use for the item – otherwise it is whatever is calculated for the date-time. (It's with tax.)
<tax>
Tax amount for the item
<date>
date/time for the item. Format is "MM/DD/YYYY HH:MM PP". So, it could be "06/01/2000 02:24 PM". Otherwise it is whenever it is sold.
<message>
Line item message to be applied to the item.
<validate>
Used by certain clients to over-ride the specification of the item – 0,1=none 2=reqd 3=opt.
 
<item_type>
Used to over-ride the specification of the item 0,1=none 2=guest 3=pass 5=rental 6=private 7=pods.
 
<gst_pass>
If more than one guest in the sale, <guest> is the first guest, then <gst_pass2>, <gst_pass3> etc.
<swipe_no>
Swipe_no to be attached to the pass attached to this item, if applicable.
<guest_no> <pass_no> <passprefix>
Is copied straight into the transact record produced.
<guest>
Typically only contains a <guest_no> tag. If more than one guest in the sale, <guest> is the first guest, then <guest2>, <guest3> etc.
<mod>
Contains information (identical to info that can be used inside an <item> tag for a modifier. More than one <mod> tag can be used inside one item.
 
Example:
<item><dci>AAA-MATT AAA CANDY</dci><qty>1</qty>
<mod><dci>AAA-MATT AAA SPRINKLES</dci></mod>
<mod><dci>AAA-MATT AAA SYRUP</dci></mod>
</item>
<print>
<do_on_sale>
<email>
<to>
<from>
<name>
Display name
<address>
Actual address
<cc>
<bcc>
<subject>
<body>
<html>
1 or 0: 1 if the body is in html and it's meant to be sent that way
<pdf>
Wait until PDF(s) are printed and attach them to the e-mail; this is the number of PDF(s) to wait for.
<pdf_t>
<ww_tix>
Print At Home Tickets
<pdf_t>
<purchaser>
Purchaser
 
Example invocation:
SaleText= <settlement>
<auth_no>03572A</auth_no>
<batch_no>271</batch_no>
<BatchSeq>271</BatchSeq>
<card_addr>14 SURREY LANE</card_addr>
<card_addr2></card_addr2>
<card_city>MENDHAM</card_ city>
<card_cntry>USA</card_cntry>
<card_fname>ANDREW</card_fname>
<card_lname>BENEDICT</card_lname>
<card_state>NJ</card_state>
<card_zip >07945</card_zip>
<host_code>00</host_code>
<merit_cd>00</merit_cd>
  <org_date>062206</org_date>
<org_time>183722</org_time>
<pb_code>0 000</pb_code>
<pr_info>***605098abfc7093126982bd02f710e2dc922d38 47015227b19ebcdddae7a84005a7fc34bf69620ef2a0b7c8f17749e88a7a8c8 020ddd12aee31b4b1e013fb48602635ff0b2c75c26ecd30f1f90f8e921ac6ce5 89a96ddcbfa69cc6be513ede2c896d50cd3c57da3ce736aa6ce865c5bcd0f224 c17a967df9e8524e1fb73d58abba8e5cad436f9c8c080a2f01c1285e50be86fa 45c1d61b653e7a0c75203ffa3b0699ee2ca440a68aa6ed02591fc24f424a09e 2f928c896fce7103341b574f9c5fb07795d583764cd375541f1dc44edfee2949 46c50da89527963ea1b1c74aea41cc04f5b0f333f544ba9140aeb53297f9df8 9456ada8a5a55005520639f3b3b90634c9f03e5654d85fd3b9b658a44a180a d5075dce3afd966f97ed8337a4ddf57a958b1933e18f2dfda4282ad0c2832be d6a5a0dc9d752443f9c2333292e4a3f675f611adb7c99c899141cee670167a7 17ef15e15</pr_info>
<swipe>***7b489aaac548980a6a83bc1bf91ddfe5955 f3c4107516bb89db7dbda</swipe></settlement>
<item><dci>WPGA G/A PAHWPGA </dci>
<qty>2</qty>
<finalprice>29.95</finalprice>
<date>06-22- 2006</date>
<message></message>
<print>T</print>
<do_on_sale>SELEC TLAST()FORCEFINALIZE()</do_on_sale></item>
<item><dci>WPCHILD WPCHILD PAHWPCHILD</dci>
<qty>3</qty>
<finalprice>24.95</finalprice>
<date>06- 22- 2006</date>
<message></message>
<print>T</print>
<do_on_sale>SELEC TLAST()FORCEFINALIZE()</do_on_sale></item>
<email L=1566>
<to>ABENEDICT@OPTONLINE.NET</to>
<from><name>Camelback Ski Corporation</name><address>estore@skicamelback.com</address></from>
<bcc>ray@skicamelback.com,estore@skicamelback.com,louise@skicam elback.com,easure@skicamelback.com</bcc>
<subject L=44>Your Print@Home Tickets - Sale # 3689000000</subject>
<body L=1204>Dear ANDREW BENEDICT Thanks for your purchase. Your order has been recieved and will soon be processed and charged. You may be recieving one more email once the order has been finalized. Your sale id is 3689000000. To retrieve your Print@Home tickets, please click (or copy/paste into your browser) the link below: <https://secure.skicamelback.com/GetTix.aspx?req=KjVI%2bth7% 2fb291HmwEcUBdg%3d%3d> You will need Adobe Acrobat Reader (available free from http://www.adobe.com) to view or print your items. Please Note: All Print@Home ticket(s) will be emailed to the email address you provided. Treasure Packs and Gift Cards will be mailed via USPS to the address you provided. Season Passes and Camelcards will be available for pickup at our Welcome Center Guest Services Desk. Lift Ticket and Rental Orders can be picked up at the "Will Call" window located at our Welcome Center Ticket building. Please have valid identification when picking up your items. If you have any questions about your order, don't hesitate to call: 570- 629-1661 ext. 1109 or email us at: estore@skicamelback.com. Thanks again and we look forward to seeing you soon! Camelback & Camelbeach </body>
<html L=1>0</html>
<pdf>1</pdf>
<pdf_t>5</pdf_t></email>
<ww_tix><pdf>1</ pdf><pdf_t>5</pdf_t></ww_tix>
<purchaser>9739000000</purchaser>