Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UPS API PHP - End point URL

Tags:

php

api

ups

I have downloaded a PHP SDK for the UPS API. I have the following code and have no idea what an end point URL is. The documentation does not provide any information on what this is.

  //Configuration
  $access = "0C81234564C2567";
  $userid = "leannetest";
  $passwd = "456hththd8hf";

  $accessSchemaFile = "schemas/AccessRequest.xsd";
  $requestSchemaFile = "schemas/RateRequest.xsd";
  $responseSchemaFile = "schemas/RateResponse.xsd";

  $endpointurl = 'add URL here';
  $outputFileName = "XOLTResult.xml";

Can anyone help?

like image 723
LeeTee Avatar asked Jan 17 '12 12:01

LeeTee


People also ask

How do I get an endpoint URL?

Through the dataset URL: You can get the API endpoint by simply taking the dataset's UID and replacing it in this string: https://domain/resource/UID.extension *where the extension is the data format you's like to pull the data as.

Does UPS have an API?

The UPS Developer Kit offers flexibility in integrating UPS functionality directly into your business systems and e-commerce websites. UPS offers 14 functionalities via APIs that allow you to improve business process efficiencies and enhance your customers' Web experience.

What is a UPS API?

UPS Application Programming Interfaces (APIs) are programming instructions and standards for accessing and integrating UPS functionality into e-commerce websites or enterprise applications. These complex technologies are designed to meet the needs of customers who require maximum flexibility during integration.


3 Answers

An API endpoint "defines the address or connection point to a Web service. It is typically represented by a simple HTTP URL string". So basically, the endpoint URL is the URL of the web service that are you attempting to interact with.

SOURCE:

http://en.wikipedia.org/wiki/Web_Services_Description_Language#Objects_in_WSDL_1.1_.2F_WSDL_2.0

EDIT: It appears from the documentation that the Rate webservices endpoint URL is https://wwwcie.ups.com/webservices/Rate.

SOURCE:

UPS. (January 2, 2002). Rating Package Web Services Developers Guide. Section 1.9.3 Server Availability Check. Accessed in Rating API found on this page: https://www.ups.com/upsdeveloperkit/downloadresource?loc=en_US

like image 162
Wes Crow Avatar answered Sep 22 '22 22:09

Wes Crow


Endpoint url explaination in the UPS document. it consists of four parts which are explained below.

For example if we are going to use "Rate" service than our urls should be as below.

  • Testing and integration URL : https://wwwcie.ups.com/ups.app/xml/Rate
  • Production URL : https://onlinetools.ups.com/ups.app/xml/Rate

As per the documentation if we devide the url in four parts all of them are as listed below.

Protocol : https
Name of server : wwwcie.ups.com (testing) OR onlinetools.ups.com (production)
Path of service : ups.app/xml/Rate
name of the service : Rate OR Ship OR QVEvents

I just replied to explain UPS endpoint url in detail so it might help

like image 27
iTechDhaval Avatar answered Sep 23 '22 22:09

iTechDhaval


The shipping endpoint url is:

https://wwwcie.ups.com/webservices/Ship

In case anyone needs it, since it's not documented in their developers kit.

like image 42
rmmoul Avatar answered Sep 22 '22 22:09

rmmoul