{yourserver}/finishActivationRentPOST /finishActivationRent
Finish rent operation of a virtual phone number
This request is sent by Onlinesim server to close current rent operation with a specific status (which depends on the result of operation).
By default, this request is sent when the operation time expires. The request may also be sent earlier in one of the following two cases:
- if an SMS from the requested service was successfully received and the client closes the rental operation ahead of time;
- if an SMS from the requested service was not received and the operation is closed after the protective interval expires (20 minutes from the moment the operation was created).
Receiving a request with status 1 is a signal that the number for some reason failed to receive an SMS from the requested service within three (or more) operations. You can use this status as an indicator for the need to check the number and exclude it from issuing in the future, or ignore it.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Request payload from Onlinesim server
application/jsonBodyobject
Examples
{
"action": "FINISH_ACTIVATION",
"activationId": 75491,
"status": 3,
"key": "apikey",
"service": "rent",
"sum": 2408
}Responses
200The response of your server for FINISH_ACTIVATION request must be
in following format:
The response of your server for FINISH_ACTIVATION request must be
in following format:
application/jsonResponseobject
Examples
{
"status": "SUCCESS"
}