跳转到内容

Order Push Import

此内容尚不支持你的语言。

If your shopping cart isn’t one that Teapplix supports, and you’d like to build custom integration so orders flow into Teapplix, you have a number of alternatives. This article describes how you can send orders to Teapplix using HTTP POST.

With this method, you can push orders into your Teapplix account in near real time in an automated fashion. Your shopping cart can be written via any programming language.

The downside of this method is that information flows one way. Orders go from shopping cart to Teapplix. Tracking information isn’t provided back to your shopping cart.

The URL to post to is:

https://app.teapplix.com/h/[your teapplix account name here]/te/pin.cgi

The content of the post is below:
(please do not just click on the link or do a HTTP GET, you will get a HTTP 404 error if your signature
passed in the post do not match the one you typed into Teapplix Setup => PayPal page).

signature=[some secret you entered into your Teapplix Setup-> PayPal page] pin_type=generic order_number=1788 order_date=9/30/2005 order_time=20:08 ordered_by_email=mark@email.com deliver_to_name=Mark Hood deliver_to_company=Testing Software, Inc. deliver_to_address=8970 Super DR SE deliver_to_address2= deliver_to_city=Port Orchard deliver_to_state=WA deliver_to_zip=98367 deliver_to_country=[United States|Canada|Full name of other countries] deliver_to_phone=253-555-1212 tax_amount=0.00 (sales tax) shipping_amount=3.00 (buyer paid shipping amount) global_discount_amount=2.00 coupon_amount=3.00 grand_total=6.00 shipping_method=[Standard, Expedited, SecondDay, One-Day, Economy] (shipping class) ship_method=[optional, must match exact Teapplix ship method string if specified, here is a full list of the Teapplix ship methods for US Shipping Carrier , and All Shipping Carrier ] ship_weight=[optional, in ounce, like 12.6] memo=[some notes on the order] item_count=2 [the following info repeats per number of items] id_1=item name in Teapplix describe_1=item description in Teapplix qty_1=2 unit_price_1= option_name1_1 option_selection1_1 option_name2_1 option_selection2_1 id_2=...

Signature

The value of “signature” parameter is obtained this way:

1) Go to your Teapplix account, on Setup => PayPal page, if any of the lines with primary email address is not blank, use the primary email address as “signature” value

2) If all lines are blank, put in a random secret string in the first line, and click on “save primary email address”. Then use that string as signature value.

Example
An example of doing order push API using “curl” is following:
curl -s -k -d signature='primary@email.com' -d pin_type='generic' -d param='value' https://app.teapplix.com/h//te/pin.cgi