SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Zealot davejuk's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Royal Mail (UK) API - Opinions?

    USPS has one.
    Canada Post has.
    Australia Post has one.
    Why doesn't Royal Mail have an API?

    This bugs the hell out of me. They don't publish their prices in any useful data format, so every 6 months or so when they're updated, I need to go into my stock control system and manually update thousands of prices for half a dozen different shipping services. This is particularly irritating as I'm sure they will have a nice XML or CSV file floating around internally.

    How much effort would it be to allow API access to tracking information too? They already give PayPal access to this data, so why can't they open it up? Instead we're forced to screen scrape.

    Perhaps I should get a petition going?

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,139
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    That sucks. Is there a particular reason your using Royal Mail? If its nothing significant perhaps consider switching to provider with better remote integration. If its a few more dollars to use another provider perhaps its worth it to spend a little extra to have access to development API.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,139
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Actually, they do have some online forms to calculate shipping. Though its no API you could build your own service to calculate shipping using a series of http request that dynamically fill in the form and retrieve the info. Perhaps a cron could be ran every six months and run an update so you didn't have to do everything manually. Not sure if something like that possible given your situation, but may be worth a try.

    (you need to turn off javascript to view the non-flash version)
    http://www.royalmail.com/portal/rm/c...diaId=63900706

  4. #4
    SitePoint Zealot davejuk's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by oddz View Post
    That sucks. Is there a particular reason your using Royal Mail? If its nothing significant perhaps consider switching to provider with better remote integration. If its a few more dollars to use another provider perhaps its worth it to spend a little extra to have access to development API.
    Royal Mail is the only economically viable service for SME's sending low value small packets. In order to compete, I need to offer free domestic shipping. My average package is 200-400g and is worth around 30. Royal Mail second class post (1-3 days) costs between 81p and 1.95 depending on the exact size and weight. The cheapest courier costs around 6 for a crummy service from Hermes. DHL, City Link, etc. cost twice that again.

    Quote Originally Posted by oddz View Post
    Actually, they do have some online forms to calculate shipping. Though its no API you could build your own service to calculate shipping using a series of http request that dynamically fill in the form and retrieve the info. Perhaps a cron could be ran every six months and run an update so you didn't have to do everything manually. Not sure if something like that possible given your situation, but may be worth a try.

    (you need to turn off javascript to view the non-flash version)
    http://www.royalmail.com/portal/rm/c...diaId=63900706
    I know I could scrape the content but that's not really the point. It's just ridiculous that in 2010 the UK's main postal service doesn't make price data available and has only the flimsiest tracking service with no API.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •