post https://pay2new.in/apis/onboard/v1/updateMobile
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Description |
---|---|---|
existingMobileNumber | String | Existing Mobile Number of the Customer |
newMobileNumber | String | New 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
Parameters | Type | Description |
---|---|---|
status | Integer | Pay2New API Status |
message | String | Message from API |
order_id | String | API Order id |
data | Array | Response 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"
}
}