Consultations
Creates a new consultation request.
HTTP Request
POST/api/shop/contacts/consult
Authorization
Authorization
- Required: No
- Permission: None (public access)
- Authentication: None
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| mobile_number | String | Yes | Mobile number of the user requesting consultation. (Iranian format: 09123456789) |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2response = requests.post('http://www.example.com/api/shop/contacts/consult', json={
3 "mobile_number": "09123456789"
4})
5
6print(response.json())1curl "http://www.example.com/api/shop/contacts/consult" -X POST -H "Content-Type: application/json" -d '{
2 "mobile_number": "09123456789"
3 }'Status Codes
| Code | Description |
|---|---|
| 201 | Consultation request created successfully |
| 400 | Bad request — invalid input |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| none | None | No response body returned |
Notes
- The API does not return a response body upon successful creation of a consultation request.
- The
mobile_numbershould be in the Iranian format (e.g., 09123456789). - The request does not require authentication or authorization, making it accessible to all users.