You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"firstName": string,
"lastName": string,
"email": string,
"country": string, # one of: Canada, United States
"locationId": string,
"mobileNum": string
}
Success Response Body:
Null
Response Codes:
201: Created (success)
403: Permission denied (invalid api key)
400: Invalid content type in header (not application/json)
400: Invalid request body argument
409: Consumer with same id/email/mobile number already exists
PUT /v1/consumers/{id}
Request Body:
{
"firstName": string,
"lastName": string,
"email": string,
"country": string, # one of: Canada, United States
"locationId": string,
"mobileNum": string
}
201: Created (success)
403: Permission denied (invalid api key)
400: Invalid content type in header (not application/json)
400: Invalid request body argument
409: Consumer with same id/email/mobile number already exists
200: Return (success)
403: Permission denied (invalid api key)
404: Consumer not found given id
DELETE /v1/consumers/{id}
Request Body:
None
Success Response Body:
Null
Response Codes:
204: No content (success)
403: Permission denied (invalid api key)
404: Consumer not found given id
Courier Api
POST /v1/couriers/{id}
Request Body:
{
"firstName": string,
"lastName": string,
"email": string,
"country": string, # one of: Canada, United States
"locationId": string,
"mobileNum": string,
"vehicleType": string
}
Success Response Body:
Null
Response Codes:
201: Created (success)
403: Permission denied (invalid api key)
400: Invalid content type in header (not application/json)
400: Invalid request body argument
409: Courier with same id/email/mobile number already exists
PUT /v1/couriers/{id}
Request Body:
{
"firstName": string,
"lastName": string,
"email": string,
"country": string, # one of: Canada, United States
"locationId": string,
"mobileNum": string,
"vehicleType": string
}
201: Created (success)
403: Permission denied (invalid api key)
400: Invalid content type in header (not application/json)
400: Invalid request body argument
409: Courier with same id/email/mobile number already exists