How to Implement UPS API and Create Shipping Label

To implement UPS api on your website credential required like access number, username and password. Get access number from UPS account.

Steps to Implement UPS API:

Step 1: Let me explain with an HTML Form example, which you can use your website for post shipping and billing information.

Step 2: Now after submit the form action move to postshipping.php file. In this file check if create_xml hidden input post. Than create an XML for UPS shipping request.

In above postshipping.php new shipping information for UPS api created with the name of “Accessrequest.xml

Step 3: Now you can use this xml data in another php file newship.php

Use this above sample code to create UPS shipping label.

4 thoughts on “How to Implement UPS API and Create Shipping Label

  1. Unfortunately ups_ship_confirm doesn’t have a provision for it in their simply xml request. I do see it in the more complicated version that requires a php soap extension.

Leave a Comment