• Pages
  • /
  • Dealers
  • /
  • Data Depot
  • /
  • Version 4
  • /
  • API
  • /
  • Order Processing
  • /
  • Carts

Carts

Carts can be created, added to, and then checked out either using the dealer defaults, or by specifying cart specific options.

Create a Cart

POST http://api.wps-inc.com/carts

Arguments
po_number Required

A string identifier for the cart to be used for adding items and submitting as order.

default_warehouse

Default warehouse

  • BOI1 = Boise, ID
  • CAL1 = Fresno, CA
  • IND1 = Ashley, IN
  • MEM1 = Memphis, TN
  • PEN1 = Elizabethtown, PA
  • TEX1 = Midlothian, TX
ship_via

Shipping method code

  • BEST = Cheapest method possible
  • FDXG = Fedex Ground
  • FEDX = Fedex 3 Day Air Saver
  • FE1D = Fedex 1 Day
  • FE2D = Fedex 2 Day
  • UPS = UPS Ground
  • UP1D = UPS 1 Day Red
  • UP2D = UPS 2 Day Blue
  • UP3D = UPS 3 Day Select
  • US1C = USPS Priority Mail
  • US4C = USPS Parcel Post
cross_ship_via

Cross ship method code

  • BEST = Cheapest method possible
  • FDXG = Fedex Ground
  • FEDX = Fedex 3 Day Air Saver
  • FE1D = Fedex 1 Day
  • FE2D = Fedex 2 Day
  • UPS = UPS Ground
  • UP1D = UPS 1 Day Red
  • UP2D = UPS 2 Day Blue
  • UP3D = UPS 3 Day Select
  • US1C = USPS Priority Mail
  • US4C = USPS Parcel Post
ship_to

7 character ship to #, assigned by WPS

ship_name

30 character drop ship recipient

ship_address1

30 character drop ship address 1

ship_address2

30 character drop ship address 2

ship_address3

30 character drop ship address 3

ship_city

17 character drop ship address city

ship_state

2 character drop ship address state

ship_zip

15 character drop ship address zip code

ship_phone

15 character drop ship phone number

allow_backorder

Allow back order true or false

hold_order

Hold order true or false

multiple_warehouse

Multi warehouse fill true or false

comment1

Up to 50 character comment 1

comment2

Up to 50 character comment 2

promo_code

Promo code

pay_type

CC = credit card, COD = cash on delivery, OO = open order

cc_last_four

last four digits of the credit card to on file to use

description

30 character cart description

proof_of_delivery

Proof of delivery true or false

email

50 character drop ship email address

Add Items to Cart

POST http://api.wps-inc.com/carts/{po_number}/items

Arguments
item_id Required

The item id.

quantity Required

item quantity desired

note

30 character note

Delete Cart

DELETE http://api.wps-inc.com/carts/{po_number}