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.


I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me to start working on your dream project - codefixup@gmail.com


  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 Reply

Your email address will not be published. Required fields are marked *