Sender API
All request for the agent
If you want to register as an agent
{ "Fullname": "{Fullname}", "Email": "{Email}", "CountryId": "{CountryId}", "CityId": "{CityId}", "Address": "{Address}", "Mobile": "{Mobile without the country code}", "AgentTypeId": "{AgentTypeId}", "IsBranch": "{boolean}", "LocationLat": "{latitude}", "LocationLong": "{longitude}" }
Get all agent types that can used for define the register agent
If you want to update the agent profile
{ "AgentId": "{AgentId}", "Fullname": "{Fullname}", "Email": "{Email}", "CountryId": "{CountryId}", "CityId": "{CityId}", "Address": "{Address}", "Mobile": "{Mobile without the country code}", "AgentTypeId": "{AgentTypeId}", "IsBranch": "{boolean}", "LocationLat": "{latitude}", "LocationLong": "{longitude}" }
All requests for captain
get the current location of the requested captain by the order id
If you want to request a captain
{ "AgentId": "{AgentId}", "PickupLocationLat": "{latitude}", "PickupLocationLong": "{longitude}", "DropLocationLat": "{latitude}", "DropLocationLong": "{longitude}", "CustomerName": "{CustomerName}", "CustomerPhone": "{Customer mobile phone number with the country code}", "CustomerAddres": "{CustomerAddres}", "PaymentTypeId": "{PaymentTypeId}", "Description": "{description}", "ProductTypeId": "{ProductTypeId}", "OrderItems": [ { "Item": "{item name}", "Quantity": 1, "Price": "{price}", "Description": "{description}" }, { "Item": "{item name}", "Quantity": 1, "Price": "{price}", "Description": "{description}" } ] }
To get all data information of counties and cities
Get all cities names
Get all the cities of a country by the Country Id
Get all countries names, ISO and code
Get all data of specific city by the City Id
Get data information for a specific country by Country Id
Get all data information about orders for specific agent
get all orders made by an agent Id
get all data information of an order by the order Id
Get all data information for a payment type by the payment id
Get all payment types
Get all data information for a sepcific product type by Product Id
Get all product types
Key | Value | Type |
---|---|---|
URL | https://sender-api.azurewebsites.net |