Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Auth
  • Overview
  • Languages
  • Notify
  • Event
  • Storage
  • Configuration
  • Forms
  • Helpers
  • Auth
    • Login
    • Logout
    • Verify
    • Resend
    • Register
    • Refresh
  • Cart
    • Latest
    • Details
    • Quick Add
    • Add Item
    • Delete Item
    • Delete Image
    • Add Coupon
    • Remove Coupon
    • Get Upload Image
    • Get Quick Order Settings
    • Create Quick Order
    • Order Status
    • Get Current Cart Id
    • Price Quote
  • Wishlist
    • Add
    • Remove
    • Toggle
  • Loyalty
    • Get Program
    • Exchange
    • Reset
  • Comment
    • Add Comment
    • Fetch
    • Get Page Comments
    • Get Product Comments
  • Profile
    • Update profile
    • Update contact
  • Product
    • Get price
    • Product availability
    • Categories
    • Offer details
    • Search products
    • Get Gift Details
    • Add Gift To Cart
    • Upload Gift Image
    • Get Product Details
    • Fetch
    • Fetch Options
    • Size Guides
  • Order
    • Create cart from order
    • Cancel
    • Send invoice
    • Show order
  • Booking
    • Add
  • Rating
    • Order
    • Store
    • Products
    • Shipping
  • Currency
    • Change
    • List
  • Component
    • Reviews
    • Menus
  1. Auth

Resend

This resend endpoint is simply to re-send the access code to the customer if it was not received correctly. The customer is given 30 seconds to enter the received access code, so if there was an issue with receiving the access code, another new code may be re-sent.
TIP
The resend endpoint has been implemented in the Login Web Component, and It's all setup to save developer's time and effort.

Payload#

ResendPayload
type
enum<string> 
ResendPayload.resend_by
required
The method of resending the access code
Allowed values:
smsemail
phone
string 
ResendPayload.phone
optional
The customer phone number
country_code
string 
ResendPayload.country_code
optional
The customer country code
Default:
SA
email
string 
optional
The customer email

Response#

Success
Error
auth.resend.success
success
boolean 
success
required
Response flag
status
enum<number> 
status
required
Allowed values:
200201202
data
object 
data
optional
Response data.
resend_counter
enum<number> 
resend_counter
required
Allowed values:
234

Usage#

The resend() method passes a request for a new access code to the customer.
Mobile
Email
The method may pass the phone number and country code to where the new access code should be sent.

Events#

This endpoint may trigger two events, the onCodeSent and onCodeNotSent events.

onCodeSent#

This event is triggered when the new access code generation has been done without having any errors back from the backend.

onCodeNotSent#

This event is triggered when the new access code generation has failed, and no new access code has been sent to the customer.
Previous
Verify
Next
Register