5

I have an urgent need to know the specific code for UPS Standard shipping within Shopify's API. It would be a 2-digit number found in the Order API, shipping-lines > shipping-line > code.

Thanks for any assistance.

dbc
  • 104,963
  • 20
  • 228
  • 340
bobsawyer
  • 81
  • 1
  • 1
  • 3
  • For instance, UPS Next Day is 01, UPS 2nd Day is 02, UPS Ground is 03, UPS 3-Day is 07, and UPS International is 65. I need the code for UPS Standard. Thx! – bobsawyer Jan 09 '13 at 03:17
  • Can you elaborate on the use case? This field is a string, and at a glance, the contents are fairly reliably just text. – Lydia Krupp-Hunter Jan 10 '13 at 19:14
  • I'm less concerned about the cast of the field (string vs int) as I am the actual content. I need to know what 2-digit/character string/number represents UPS Standard in the shipping-lines->shipping-line->code field. Our fulfillment house's API uses a different set of codes to represent various shipping methods, so we have a look-up table that pairs the values from Shopify's API to those of the fulfillment house's API in order for the fulfillment house to know the proper shipping method to use. – bobsawyer Jan 10 '13 at 19:24
  • I'm looking at results in the database for the 'code' field where title is USPS Standard, and the contents aren't numeric. This seems to be neither something that we store, nor something that can reliably be pulled from shipping_lines. – Lydia Krupp-Hunter Jan 10 '13 at 19:29
  • But we're pulling those contents from other orders reliably. I don't care if they're numeric or alpha -- I just need to know the value contained in that field for UPS Standard. – bobsawyer Jan 10 '13 at 19:36
  • In other words: is there something in the "code" field for "UPS Standard?" If the answer is "yes," then what is in the field? – bobsawyer Jan 10 '13 at 20:18
  • It looks like it's also "USPS Standard", some records are lower-case. – Lydia Krupp-Hunter Jan 10 '13 at 20:28
  • Lydia, is there another way to contact you? StackOverflow is griping at me about extended discussions in comments and I don't have a high enough reputation to move it to chat. But I still have more questions about this. Thanks. – bobsawyer Jan 10 '13 at 20:34
  • Please email me at lydia at shopify. – Lydia Krupp-Hunter Jan 10 '13 at 21:01

3 Answers3

8

UPS Standart code value is '11'

Also some other UPS codes:

'01' => 'Next Day Air ("Red")',
'02' => 'Second Day Air ("Blue")',
'03' => 'Ground',
'07' => 'Express',
'08' => 'Expedited', 
'11' => 'Standard',
'12' => 'Third Day Select',
'13' => 'Next Day Air Saver ("Red Saver")',
'14' => 'Next Day Air Early A.M.',
'15' => 'Next Day Air Early A.M.',
'22' => 'Ground - Returns Plus - Three Pickup Attempts',
'32' => 'Next Day Air Early A.M. - COD',
'33' => 'Next Day Air Early A.M. - Saturday Delivery, COD',
'41' => 'Next Day Air Early A.M. - Saturday Delivery',
'42' => 'Ground - Signature Required',
'44' => 'Next Day Air - Saturday Delivery',
'54' => 'Express Plus',
'59' => 'Second Day Air A.M.',
'65' => 'WorldWide Saver',
'66' => 'Worldwide Express',
'72' => 'Ground - Collect on Delivery',
'78' => 'Ground - Returns Plus - One Pickup Attempt',
'90' => 'Ground - Returns - UPS Prints and Mails Label',
'A0' => 'Next Day Air Early A.M. - Adult Signature Required',
'A1' => 'Next Day Air Early A.M. - Saturday Delivery, Adult Signature Required',
'A2' => 'Next Day Air - Adult Signature Required',
'A8' => 'Ground - Adult Signature Required',
'A9' => 'Next Day Air Early A.M. - Adult Signature Required, COD',
'AA' => 'Next Day Air Early A.M. - Saturday Delivery, Adult Signature Required, COD',
Paul Smith
  • 3,104
  • 1
  • 32
  • 45
1

If you download the UPS shipping developer documentation, there are no longer any codes for 'Saturday' delivery in the Appendix or elsewhere. Instead you use the service you want, say 'Next Day Air' or 'Next Day Air Early AM' would be the common ones along with the SaturdayDeliveryIndicator. From their documentation:

Saturday delivery indicator. The presence indicates Saturday delivery; the absence indicates not Saturday delivery.

therealjumbo
  • 1,079
  • 1
  • 10
  • 14
0

There are several ways:

  1. in magento admin go to system > configuration and click on shipping methods tab and rightclick inside of the Allowed Methods box, Inpect the element and you'll see something like UPS Standard value represents the method code.

  2. or open app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php and around the line 327 you will see all shipping methods with corresponding codes.

lvekua
  • 196
  • 5
  • 17