Skip to main content

Questions

Creates a new question.

HTTP Request

POST/api/shop/contacts/question

Authorization

Authorization

  • Required: No
  • Permission: None (public access)
  • Authentication: None

Request Body

FieldTypeRequiredDescription
first_nameStringYesFirst name of the user asking the question.
last_nameStringYesLast name of the user asking the question.
mobile_numberStringYesMobile number of the user asking the question. (Iranian format: 09123456789)
subjectStringYesSubject of the question.
messageStringYesFull message or content of the question.

Example Requests

1import requests
2response = requests.post('http://www.example.com/api/shop/contacts/question', json={
3  "first_name": "John",
4  "last_name": "Doe",
5  "mobile_number": "09123456789",
6  "subject": "Question about product",
7  "message": "I have a question about your product."
8})
9print(response.json())

Status Codes

CodeDescription
201Question created successfully
400Bad request — invalid input
500Internal server error

Response Fields

FieldTypeDescription
noneNoneNo response body returned

Notes

    • The API does not return a response body upon successful creation of a question request.
    • The mobile_number should be in the Iranian format (e.g., 09123456789).
    • The request does not require authentication or authorization, making it accessible to all users.
    • The first_name, last_name, subject, and message fields are required to provide context for the question.