API Integration

Test Environment =>

https://swifno.com/apitest.php

Apis =>

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

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

3) show_state_area :
https://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 :
https://swifno.com/swifnoapi.php?action=package_group&merchant_key=thjdkifufi12jdik

5) package_category :
https://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 :
https://swifno.com/swifnoapi.php?action=package_size&merchant_key=thjdkifufi12jdik

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

8) upload_package_image :
https://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) request_bids :
https://swifno.com/swifnoapi.php?action=request_bids&merchant_key=thjdkifufi12jdik&pickup_state=borno&pickup_location=borno, nigeria&drop_state=adamawa&drop_location=abia, umuahia, nigeria&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&%20insurance=0&itemvalue=0

10) add_request :
https://swifno.com/swifnoapi.php?action=add_request&merchant_key=thjdkifufi12jdik&pickup_state=borno&pickup_location=borno, nigeria&drop_state=adamawa&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&vendor_id=202

vendor_id will come from response of request_bids

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