API Integration

Test Environment =>

http://swifno.com/apitest.php

Apis =>

1) show_pickup_state :
http://swifno.com/swifnoapi.php?action=show_pickup_state&merchant_key=thjdkifufi12jdik

2) show_drop_state :
http://swifno.com/swifnoapi.php?action=show_drop_state&merchant_key=thjdkifufi12jdik

3) show_state_area :
http://swifno.com/swifnoapi.php?action=show_state_area&merchant_key=thjdkifufi12jdik&state_id=79

state_id will come from response of show_pickup_state and show_drop_state

4) package_group :
http://swifno.com/swifnoapi.php?action=package_group&merchant_key=thjdkifufi12jdik

5) package_category :
http://swifno.com/swifnoapi.php?action=package_category&merchant_key=thjdkifufi12jdik&group_id=15

group_id will come from response of package_group

6) package_size :
http://swifno.com/swifnoapi.php?action=package_size&merchant_key=thjdkifufi12jdik

7) package_delivery :
http://swifno.com/swifnoapi.php?action=package_deliveryspeed&merchant_key=thjdkifufi12jdik

8) upload_package_image :
http://swifno.com/swifnoapi.php?action=upload_package_image&merchant_key=thjdkifufi12jdik&uploadfile=imagefilefrombrowse

after each image upload you will get name of image which you need to pass in add_delivery_request

9) add_delivery_request :
https://swifno.com/swifnoapi.php?action=add_delivery_request&merchant_key=thjdkifufi12jdik&pickup_state=borno&pickup_area=auno&pickup_location=borno, nigeria&drop_state=adamawa&drop_area=mayo&drop_location=abia, umuahia, nigeria&recipient_name=new test kiran&recipient_mobile=08067832456&recipient_email=amit.patel.oms@gmail.com&package_category=appliance parts&package_name=testforcomplete&package_size=large&package_deliveryspeed=3 business days&pickupfrom_time=04:00:00&pickupto_time=05:25:00&insurance=0&itemvalue=0&packageimage1=imagename1&packageimage2=imagename2&packageimage3=imagename3&packageimage4=imagename4&packageimage5=imagename5&additional_detail=testing api

imagename1, imagename2, imagename3, imagename4, imagename5 these should come from response of upload_package_image

10) select_vendor_bid :
http://swifno.com/swifnoapi.php?action=select_vendor_bid&merchant_key=thjdkifufi12jdik&bid_id=245

bid_id will come from response of add_delivery_request