Mobile Change Request

📘

Header Request

Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)

Request Parameters

ParametersTypeDescription
existingMobileNumberStringExisting Mobile Number of the Customer
newMobileNumberStringNew Mobile Number of the Customer

Sample Request

curl --location 'https://pay2new.in/apis/v1/onboard/customer/updateMobile' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
    "existing_mobile": "9876543210",
    "new_mobile": "9876542310"
}'
curl --location 'https://pay2new.in/apis/v1/onboard/customer/updateMobile' \
--header 'secret: qwertyuQWERTY12345asdf' \
--header 'Content-Type: application/json' \
--data '{
    "existing_mobile": "9876543210",
    "new_mobile": "9876542310"
}'

Response Parameters

ParametersTypeDescription
statusIntegerPay2New API Status
messageStringMessage from API
order_idStringAPI Order id
dataArrayResponse Data (If Present)

Sample Response

{
    "status": 1,
    "message": "Outlet mobile change request accepted, please verify OTP to complete this process",
    "order_id": null,
    "data": {
        "existing": "OTP send on 9876543210",
        "new": "OTP send on 9876542310"
    }
}
Language
Click Try It! to start a request and see the response here!