Skip to main content

Verify Mobile Number

Verify the mobile number for the customer

HTTP Request

POST/api/shop/customers/me/set_mobile_number/verify

Authorization

Authorization

  • Required: Yes
  • Permission: IsAuthenticated
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Request Body

FieldTypeRequiredDescription
codeIntegerYesReceived otp code for the mobile number

Example Requests

1import requests
2
3api = requests.Session()
4api.headers.update({'Authorization': 'Token f4e75eab6e0f663a972d145478d6fc4b81762070'})
5response = api.put(
6  'http://www.example.com/api/shop/customers/me/set_mobile_number/verify',
7  json={
8      'code': 12352,
9  }
10)
FieldTypeDescription
mobile_numberStringThe verified email

Example Response

{
"mobile_number": "09150207215"
}