Looking for advice on The Courier Guy / Bobgroup API to PHP website integration

frankvw

Well-Known Member
Joined
Aug 8, 2009
Messages
178
Reaction score
65
I'm looking for someone who has managed to integrate his/her PHP-based website with the Courier Guy / Bobgroup API (https://api-docs.bob.co.za/shiplogic). It has a lot more features than I need; all I need is to calculate shipping costs based on delivery address, parcel weight and parcel volume. I have as yet limited experience with REST and I'm not a cutting-edge PHP developer, so I could really use someone to compare notes with. :)

Anyone?

// FvW
 
use guzzle (or equivalent), and run the API described here? - https://api-docs.bob.co.za/shiplogic#POST-Getting rates

However, this looks like the minimum request body (you need the latitued and longitude)

JSON:
{
    "collection_address": {
        "lat": -25.7863272,
        "lng": 28.277583
    },
    "delivery_address": {
        "lat": -25.80665579999999,
        "lng": 28.334732
    },
    "parcels": [
        {
            "submitted_length_cm": 42.5,
            "submitted_width_cm": 38.5,
            "submitted_height_cm": 5.5,
            "submitted_weight_kg": 3
        }
    ]
}
 
However, this looks like the minimum request body (you need the latitued and longitude)
Tnx! That's the sort of start I was hoping for! I played with it a little and it seems to be the sort of thing that could work for me. However, this leaves me with the problem of how to convert the customer's address to latitude and longitude. But the Google Geocoding API looks promising.

Update: the API docs state that:
The following fields are required:
  • collection_address
  • delivery_address
  • parcels
So that would seem to be the minimum. I'll experiment. :)

Work to do! But now at least I have a direction in which to go. Much appreciated!

// FvW
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X