{yourserver}/finishActivationPOST /finishActivation
Finish current operation
This request is sent by Onlinesim server to close current operation with a certain 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 operation manually;
- if an SMS from the requested service was not received and the client cancels the operation.
Receiving a request with status 1 is a signal that the number for some reason could not receive an SMS from the requested service. In essence, it is a signal that it is better not to issue this number for the specified service, as without additional checks the next operation is likely to fail. You can use this status as an indicator to check problematic "number + service" pairs and exclude them from issuance in the future. If you do not want to use this status, you can ignore it and continue to issue numbers for this service.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Request payload from Onlinesim server
application/jsonBodyobject
Examples
{
"action": "FINISH_ACTIVATION",
"activationId": 75489,
"status": 3,
"key": "apikey"
}Responses
200The successful response of your server for FINISH_ACTIVATION request must be
in following format:
The successful response of your server for FINISH_ACTIVATION request must be
in following format:
application/jsonResponseobject
Examples
{
"status": "SUCCESS"
}