Advanced Database Automation

SixBit has been built on an open SQL Server database for the sole purpose of allowing users to integrate existing inventory and sales management systems into their SixBit process.  To facilitate this integration, we have provided our Enterprise edition users some stored procedures in the database to make the integration easier.

Stored Procedures

The following stored procedures are available for users.

GetPaidOrdersNotShipped

Parameters: None

 

Purpose: This procedure returns all orders that have been paid for, but have not been shipped; it is designed to help users integrate with existing shipping systems by providing them with a list of orders that need to be shipped.

 

Details: It includes orders that:

    - have a status of "In Process"

    - do not yet have a shipped date

    - do not yet have the IsShipped flag set

    - have received payment equal to (or greater) than the amount due

    

Each item sold is returned as a separate row, so if an order had multiple items sold, it will return multiple records for an order each with the same OrderID.

 

SetShipmentAsShipped

Parameters:

  • ShipmentID - the SixBit unique shipment ID of the shipment to be updated.
  • ShippedDate - the date the shipment was shipped.  This must include the time also.
  • TrackingNumber - the tracking number of the shipment
  • ShippingServiceID - the enumerated id of the shipping service used to send the shipment. (See Enumerations for allowed values)

 

Purpose: This procedure marks a shipment as being shipped in SixBit and flags SixBit to proceed with notifying the eCommerce site with updated information about the shipment.

 

Details: It performs the following tasks:

  • sets the shipped date of the shipment
  • sets the tracking number of the shipment
  • sets the shippingserviceID
  • sets the NotifySite flag so the SixBit Agent will upload information to the eCommerce site during its next run.

 

By default, SixBit does not automatically check for new notifications.  If SetShipmentAsShipped is being used to update the database and you would like SixBit to start sending the updates, you must turn the option on.  

 

 

To turn on automatic site notifications:

  1. Open the SixBit Options window.     How?How?Click the File button in the upper left corner and then choose SixBit Options in the lower right corner of the popup.

  2. Select the Advanced Automation tab.
  3. Click the box in front of the Enable post sale notifications option.

Enumerations

SixBit stores unique ids for many fields for the sake of efficiency.  The enumerations used in the provided stored procedures are identified here.

 

Shipping Service ID

0  UPS Ground
1  UPS 3 Day Select
2  UPS 2nd Day Air
3  UPS Next Day Air Saver
4  USPS Priority Mail
5  USPS Ground Advantage
6  USPS Media Mail
7  USPS First Class Mail
8  Standard Shipping
9  Expedited Shipping
10  USPS Priority Mail Express
11  UPS Next Day Air
12  UPS 2nd Day Air AM
13  Economy Shipping
14  UPS Next Day Air Early AM
15  (Not Selected)
16  One-Day Shipping
17  Standard Int'l FlatRate Shipping
18  Expedited Int'l FlatRate Shipping
25  UPS Worldwide Express Plus
26  UPS Worldwide Express
27  UPS Worldwide Expedited
28  UPS Standard to Canada
29  Economy Int'l Shipping
30  USPS Priority Mail Int'l
31  USPS Priority Mail Express Int'l
32  USPS First Class Mail Int'l/First Class Package Int'l
33  USPS Priority Mail Express Int'l Flat Rate Envelope
34  USPS Priority Mail Int'l Medium Flat Rate Box
35  USPS Priority Mail Int'l Flat Rate Envelope
36  USPS Priority Mail Express Flat Rate Envelope
37  USPS Priority Mail Flat Rate Envelope
38  USPS Priority Mail Medium Flat Rate Box
39  USPS Priority Mail Large Flat Rate Box
40  USPS Priority Mail Int'l Large Flat Rate Box
41  USPS Global Priority Small Envelope
42  USPS Global Priority Large Envelope
43  USPS Global Express Guaranteed
44  USPS Global Airmail M-Bag
45  USPS Priority Mail Padded Flat Rate Envelope
46  USPS Priority Mail Legal Flat Rate Envelope
47  USPS Priority Mail Express Legal Flat Rate Envelope
48  USPS Priority Mail Regional Box A
49  USPS Priority Mail Regional Box B
50  USPS Priority Mail Int'l Legal Flat Rate Envelope
51  USPS Priority Mail Express Intl. Legal Flat Rate Envelope
52  USPS Priority Mail Int'l Padded Flat Rate Envelope
53  USPS Priority Mail Express Int'l Padded Flat Rate Envelope
54  USPS Priority Mail Express Padded Flat Rate Envelope
55  USPS International Priority Airmail M-Bags
56  USPS International Surface Air Lift M-Bags
57  Generic CN22 Consolidator label for non-USPS
60  Promotional Shipping Method
61  Promotional Shipping Method International
62  Promotional Economy Shipping
63  Promotional Standard Shipping
64  Promotional Expedited Shipping
65  Promotional Two Day Shipping
66  Promotional Overnight Shipping
67  Promotional Shipping (Varies)
68  Spee Dee
69  USPS First Class Mail International Large Envelope
70  Asendia USA
71  USPS First Class Mail International Letter
101  Local Pickup
102  Local Delivery
110  DHL Express
111  Electronic
112  OnTrac
113  Flat Rate Freight
114  Israel Post
115  Belgian Post
200  Freight
201  International Freight
300  FedEx 2 Day
301  FedEx Express Saver
302  FedEx Ground or Home Delivery
303  FedEx Int'l Economy
304  FedEx Int'l Ground To Canada
305  FedEx Int'l Priority
306  FedEx Priority Overnight
307  FedEx Standard Overnight
308  FedEx Extra Hours
309  FedEx First Overnight
310  FedEx 2Day Freight
311  FedEx International Economy Freight
312  FedEx International Extra Hours
313  FedEx International First
314  FedEx International MailService Premium
315  FedEx International MailService Standard
316  FedEx International Next Flight
317  FedEx International Priority Freight
318  FedEx Overnight Freight
319  FedEx Saver Freight
320  FedEx SmartPost
321  FedEx Express Saver One Rate
322  FedEx 2 Day One Rate
323  FedEx Standard Overnight One Rate
324  FedEx Priority Overnight One Rate
325  FedEx International Connect Plus
399  RR Donnelley
400  Australia Post International Courier
401  Australia Post International Express
402  Australia Post International Express Prepaid Envelope (Medium)
403  Australia Post International Express Prepaid Envelope (Large)
409  Local Pickup
411  TNT International Express
412  Australia Post Express Large Box/Satchel + Signature
413  Australia Post Express Small Box/Satchel + Signature
414  Australia Post Express Large Box/Satchel
415  Australia Post Express Small Box/Satchel
416  Australia Post Standard Large Box/Satchel
417  Australia Post Standard Small Box/Satchel
418  Toll Consumer Delivery
420  Australia Post Standard
421  Australia Post Express
422  FastwayCouriers
424  Australia Post Standard Extra Large Box/Satchel
425  Australia Post Standard Extra Large Box/Satchel + Signature
427  Courier
432  Australia Post International Economy Air
434  Australia Post International Economy Sea
435  Standard International Flat Rate Postage
436  International Express:tracked-signature(3 to 7 business days)
438  TNT
439  Australia Post Standard + Registered
440  Australia Post Standard Large Box/Satchel + Signature
443  DHL
450  Couriers Please
500  UPS Worldwide Express Box 10kg
501  UPS Worldwide Express Box 25kg
502  UPS Worldwide Express Plus Box 10kg
503  UPS Worldwide Express Plus Box 25kg
504  USPS First Class Large Envelope
505  USPS First Class Parcel
506  USPS Priority Mail Small Flat Rate Box
507  USPS Priority Mail Int'l Small Flat Rate Box
508  USPS First Class Mail Int'l Parcel
509  USPS Retail Ground
526  Economy Shipping From Outside US
527  Standard Shipping From Outside US
528  Expedited Shipping From Outside US
529  UPS Worldwide Saver
535  ePacket delivery from China
536  ePacket delivery from Hong Kong
540  UPS Ground Saver
541  UPS SurePost Bound Printed Matter
542  UPS SurePost Media
543  UPS Mail Innovations First Class
544  UPS Mail Innovations Priority
545  UPS Mail Innovations BPM Flat
546  UPS Mail Innovations Priority International
547  UPS Mail Innovations Economy International
548  UPS Mail Innovations BPM Parcel
549  UPS Mail Innovations Irregulars
550  UPS Mail Innovations Machinables
551  UPS Mail Innovations Media Mail
552  UPS Mail Innovations Parcel Post
553  UPS Mail Innovations Standard Flats
554  eBay Standard Envelope for Eligible Items up to $20
555  Economy Shipping with Adult Signature Required
556  Standard Shipping with Adult Signature Required
557  Expedited Shipping with Adult Signature Required
560  Economy Shipping from China/Hong Kong/Taiwan to worldwide
561  Standard Shipping from China/Hong Kong/Taiwan to worldwide
562  Expedited Shipping from China/Hong Kong/Taiwan to worldwide
563  Economy Shipping from China/Hong Kong/Taiwan to worldwide
564  Standard Shipping from China/Hong Kong/Taiwan to worldwide
565  Expedited Shipping from China/Hong Kong/Taiwan to worldwide
566  Economy Shipping from Greater China to worldwide
567  Standard Shipping from Greater China to worldwide
568  Expedited Shipping from Greater China to worldwide
569  Economy Shipping from Greater China to worldwide
570  Standard Shipping from Greater China to worldwide
571  Expedited Shipping from Greater China to worldwide
572  Economy Shipping from India
573  Mail Service from India
574  Standard Shipping from India
575  Expedited Shipping from India
576  Economy SpeedPAK from China/Hong Kong/Taiwan
577  Standard SpeedPAK from China/Hong Kong/Taiwan
578  eBay International Standard Delivery
618  Australia Post Standard + Signature
619  Star Track Express
621  Australia Post Express Extra Large Box/Satchel
639  Standard delivery
640  Australia Post International Standard
641  Australia Post Express + Signature
644  Express delivery
645  International Standard:tracked-no signature(7 to 15 business days)
646  eBay Fastway Road Express
648  Australia Post Express Extra Large Box/Satchel + Signature
649  Economy delivery from outside AU
650  Standard delivery from outside AU
651  Expedited delivery from outside AU
652  Australia Post Standard Medium Box/Satchel
655  Freight
656  Toll Global Economy
657  UBI Smart Parcel
659  Australia Post Standard Small Box/Satchel + Signature
661  Australia Post Standard Medium Box/Satchel + Signature
666  Economy Shipping from China/Hong Kong/Taiwan to worldwide
667  Economy Shipping from China/Hong Kong/Taiwan to worldwide
668  Standard Shipping from China/Hong Kong/Taiwan to worldwide
669  Standard Shipping from China/Hong Kong/Taiwan to worldwide
670  Expedited Shipping from China/Hong Kong/Taiwan to worldwide
671  Expedited Shipping from China/Hong Kong/Taiwan to worldwide
675  Standard Delivery - Registered
676  Officeworks Mailman
677  International Express:tracked-signature(1 to 5 business days)
678  International Standard:tracked-signature(7 to 15 business days)
679  International Economy:tracked-signature(11 to 35 business days)
680  International Economy:tracked-no signature(11 to 35 business days)
681  International Economy:untracked(11 to 35 business days)
682  Standard SpeedPAK from China/Hong Kong/Taiwan
684  Economy SpeedPAK from China/Hong Kong/Taiwan
700  DGM SmartMail Ground From HK
701  DGM SmartMail Ground From CN
702  DGM SmartMail Ground From TW
703  DGM Parcel Direct From HK
704  DGM Parcel Direct From CN
705  DGM Parcel Direct From TW
706  DGM SmartMail Ground
707  DGM SmartMail Expedited
708  DGM SmartMail Expedited From CN
709  DGM SmartMail Expedited From HK
710  DGM SmartMail Expedited From TW
711  Economy SpeedPAK from China/Hong Kong/Taiwan
712  Standard SpeedPAK from China/Hong Kong/Taiwan
713  Expedited SpeedPAK from China/Hong Kong/Taiwan
802  Freight: Large and bulky items
803  Economy SpeedPAK from China/Hong Kong/Taiwan
804  Standard SpeedPAK from China/Hong Kong/Taiwan
805  Coles Delivery
806  Coles unattended box delivery
807  Sendle Parcel Delivery
808  Australia Post Express Medium Box/Satchel
809  Australia Post Express Medium Box/Satchel + Signature
810  Australia Post Domestic Regular Letter
811  Australia Post Domestic Regular Letter With Tracking
812  Australia Post Domestic Priority Letter
813  Australia Post Domestic Priority Letter With Tracking
1086  Standard Shipping
1088  Canada Post Lettermail
1089  Canada Post Regular Parcel
1090  Canada Post Expedited Parcel
1091  Canada Post Xpresspost
1093  Standard Int'l Shipping
1094  Expedited Int'l Shipping
1095  Other International Shipping
1098  Canada Post Xpresspost - USA
1099  Canada Post Xpresspost - International
1100  Canada Post International Parcel - Surface
1101  Canada Post International Parcel - Air
1103  Purolator International
1105  Canada Post Small Packets - USA - Air
1106  Small Packets - International - Ground
1107  Small Packets - International - Air
1108  Canada Post USA Letter-post
1109  Canada Post International Letter-post
1110  UPS Express Canada
1111  UPS Express Saver Canada
1112  UPS Expedited Canada
1113  UPS Standard Canada
1114  UPS Express United States
1115  UPS Expedited United States
1116  UPS 3 Day Select United States
1117  UPS Standard United States
1118  UPS Worldwide Express (Non-US)
1119  UPS Worldwide Expedited
1121  Canada Post Expedited Flat Rate Box USA
1122  Canada Post Tracked Packet - USA
1123  Canada Post Tracked Packet - International
1124  SpeedPAK Economy
1125  Economy Shipping from Greater China to worldwide
1126  Standard SpeedPAK from Greater China
1127  Standard Shipping from Greater China to worldwide
1129  Standard SpeedPAK from Greater China
1130  SpeedPAK DDU Shipping Service
1131  Standard Shipping from Greater China to worldwide
1132  Expedited Shipping from Greater China to worldwide
1134  Standard Shipping from Greater China to worldwide
1385  Canada Post Light Packet - International
1386  Canada Post Light Packet - USA
1388  Canada Post Expedited Parcel - USA
1389  Local Pickup
1390  Economy Shipping from outside Canada
1391  Standard Shipping from outside Canada
1392  Expedited Shipping from outside Canada
1393  Economy Shipping
1394  Express Shipping
1395  Expedited Delivery
1396  Sendle
1400  FedEx Express Economy
1401  FedEx Ground
1402  Canada Post Expedited Lite
1403  Canada Post Priority
1404  FedEx 2 Day
1405  FedEx Priority Overnight
1406  FedEx First Overnight
1407  SpeedPAK Standard
1408  Standard Shipping from Greater China to worldwide
1409  Expedited Shipping from Greater China to worldwide
1410  Freight
1420  FedEx International Ground
1421  FedEx International Priority - USA
1422  FedEx International Economy
1423  FedEx International Priority - International (Non-US)
1424  Express Int'l Shipping
1425  SpeedPAK Economy
1426  SpeedPAK Standard
1427  Economy Shipping from Greater China to worldwide
1428  Expedited Shipping from Greater China  to worldwide
2168  FedEx International Economy
2170  TNT International Express
2295  Royal Mail International Economy
2301  Standard Int'l Postage
2311  Collection in Person
2312  Express Int'l Postage
2316  Freight
2317  Other Courier 3 Days
2318  Other Courier 5 Days
2327  Royal Mail Tracked 48
2328  Royal Mail Tracked 24
2329  Standard Delivery from outside UK with Royal Mail
2330  Collect + Economy Tracked
2338  Collect + Standard
2344  Yodel 24
2345  Yodel 48
2346  UPS Next Day
2347  DPD Next Day
2348  DPD Two Day
2349  APC Overnight
2350  Parcel2Go
2351  MiniPak from outside UK
2352  TrakPak from outside UK
2353  bPost International Parcel
2354  DHL Express Worldwide
2374  Royal Mail 1st Class
2375  Royal Mail 2nd Class
2376  Royal Mail 1st Class Signed For
2377  Royal Mail 2nd Class Signed For
2380  Parcelforce 24
2381  Parcelforce 48
2382  Other courier (3 to 5 days)
2388  Royal Mail International Standard
2389  Royal Mail International Tracked
2391  Royal Mail International Signed
2392  Royal Mail HM Forces Mail
2396  Royal Mail 48
2397  Royal Mail 24
2481  Royal Mail Special Delivery (TM) 1:00 pm
2522  Royal Mail Special Delivery (TM) 9:00 am
2580  Parcelforce Global Express
2581  Parcelforce Global Priority
2582  Parcelforce Global Value
2583  Parcelforce Global Economy (not available for destinations in Europe)
2600  Standard Delivery from outside UK with Royal Mail
2601  Collect+ Economy Tracked
2602  Evri Tracked
2603  Evri (the new Hermes) Next Day
2604  FedEx Next Day
2605  DHL
2606  FedEx Economy
2609  Royal Mail 2nd Class Letter / Large Letter
2610  Royal Mail 2nd Class Parcel
2611  Royal Mail 1st Class Letter / Large Letter
2612  Royal Mail 1st Class Parcel
2614  eBay Delivery – Evri Postable
2615  Delivery and Recycling
2616  Delivery and Connection
2617  "Delivery   Connection and Recycling"
2618  SpeedPAK Economy
2619  SpeedPAK Standard
2620  SpeedPAK DDU Shipping Service
2621  eBay Delivery – Inpost Locker Drop-off
2622  eBay SpeedPAK Express
2623  Other Courier 24h
2624  Other Courier 48h
2625  SpeedPAK Economy
2626  SpeedPAK Standard
2627  Royal Mail International Tracked & Signed
2628  eBay Delivery Packlink International 2-4 days
2629  SpeedPAK DDU Shipping Service
2630  eBay SpeedPAK Expedited
2631  Yodel Store to Door
2632  Inpost Locker Drop-off
2633  Royal Mail Tracked 48 with Age Verification
2634  Royal Mail Tracked 24 with Age Verification
2635  Express Courier with Age Verification
2636  Standard 2-3 Day Courier with Age Verification
2637  Economy Courier with Age Verification
2638  Age Verified Standard Delivery from outside UK
2639  Age Verified Express Delivery from outside UK
2640  Age Verified Economy Delivery from outside UK
2641  Economy Delivery from outside UK
2642  Express Delivery from outside UK
2643  Standard Delivery from outside UK
2644  International Tracked Postage
2645  Tracked delivery from outside UK
2646  RU Tracked Packet from China
2647  UK Mail
2648  DHL Parcel UK
2649  Age Verified Economy Shipping from Greater China to worldwide
2650  Age Verified Standard Shipping from Greater China to worldwide
2651  Age Verified Expedited Shipping from Greater China to worldwide
2652  Flat Rate Freight
2653  In-house logistics 24
2654  In-house logistics 48
2655  In-house logistics 72
2656  In-house logistics 3-5 days
2811  Economy Int'l Postage
3000  DHL GMSM Parcel Plus Expedited
3001  DHL GMSMBPM Expedited
3002  DHL GMSMBPM Ground
3003  DHL GMSM Media Mail Ground
3004  DHL GMSM Parcels Expedited
3005  DHL GMSM Parcels Ground
3006  DHL GMSM Parcel Plus Ground
3007  DHL GMSM Priority Mail
3008  DHL GMSM First Class Product
3009  DHL GMSM First Class Parcels
240001  Expedited
240002  Free Economy
240003  Next  Day
240004  Same Day
240005  Second Day
240006  Scheduled
240007  Standard
241001  DHL
241002  FedEx 2nd Day
241003  FedEx Standard Overnight
241004  FedEx Priority Overnight AM
241005  FedEx Saturday Overnight
241006  UPS 2nd Day Air
241007  UPS 3 Day Select
241008  UPS Ground
241009  UPS Next Day Air
241010  Mail - First Class
241011  Mail - Parcel Post
241012  Mail - Media
241013  Mail - Express
241014  Mail - Priority
241015  Mail - Registered
241016  USPS Airmail
241017  In Person / By Hand
241018  Pickup Only
241019  Other
241020  Amazon Logistics

 

PaymentTypeID

        None = 0

        Cash = 1

        Check = 2

        COD = 3

        COD_PrePay_Delivery = 4

        Credit_Card = 5

        Escrow = 6

        Money_Order = 7

        Money_Transfer = 8

        PayPal = 9

        PayPal_eCheck = 10

        BidPay = 11

        Other = 12

        Google_Checkout = 15

        Amazon = 17

 

SiteID

The SiteID must be one of the siteids from the Sites table.