post FINISH_ACTIVATION
https://{yourserver.com}/finishActivation
This request is sent by Onlinesim server to close current operation with a certain status (which depends on the result of operation).
IMPORTANT NOTE! Your server must sent successful operation closing response within 10 seconds of the request. Otherwise current request will be cancelled (a new request will be sent).
Request can be sent after the time for operation runs out (15 minutes for single-service activations), if the operation was closed prematurely (SMS has been received) or if operation has been cancelled (SMS hasn't been received).
Parameters
Request Body
- Schema
- Examples
- objectExample:
{"action":"FINISH_ACTIVATION","activationId":355,"status":3,"key":"string"}
Properties:action
stringRequiredMethod name, in this case `FINISH_ACTIVATION`Example:"FINISH_ACTIVATION"
Enum:FINISH_ACTIVATION
activationId
integerRequiredOperation ID (assigned by your server)Example:355
>= 1
status
integerRequiredStatus code of the operation, enum:
1
- This number was not ordered for the current service (i.e., when you try to push SMS for "single-service activation" service, while number has active "rent" operation)3
- Successfully sold4
- Cancelled, message was not delivered5
- Refunded, in case of errors and message problemsExample:3
Enum:1
3
4
5
key
stringRequiredAPI key of your Onlinesim partner's profileExample:"string"
Responses
200
- Schema
- Examples
- objectExample:
{"status":"SUCCESS"}
Properties:status
stringRequest status (`SUCCESS` or `ERROR`)Example:"SUCCESS"
Enum:SUCCESS
ERROR