post FINISH_ACTIVATION
https://{yourserver.com}/finishActivationThis 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 (15 minutes for the “Receive SMS” service). The request may also be sent earlier in one of the following two cases: 1) if an SMS from the requested service was successfully received and the client closes the operation manually; 2) if an SMS from the requested service was not received and the client cancels the operation.
IMPORTANT NOTE! Your server must sent successful operation closing response within 10 seconds of the request. Otherwise current request will be cancelled and a new request will be sent.
IMPORTANT NOTE! Please do not close operations on your side until you receive our FINISH_ACTIVATION request. Closing operations manually may lead to status desynchronization and incorrect processing of subsequent requests.
Parameters
Request Body
- Schema
- Examples
- objectExample:
{"action":"FINISH_ACTIVATION","activationId":355,"sum":4.5,"status":3,"key":"string"}Properties:actionstringRequiredMethod name, in this case `FINISH_ACTIVATION`Example:"FINISH_ACTIVATION"Enum:FINISH_ACTIVATIONactivationIdintegerRequiredOperation ID (assigned by your server)Example:355>= 1sumnumberSum credited to the partner’s balance for the provided service (in RUB)Example:4.5statusintegerRequiredStatus 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:3Enum:1345keystringRequiredAPI key of your Onlinesim partner's profileExample:"string"
Responses
200
- Schema
- Examples
- objectExample:
{"status":"SUCCESS"}Properties:statusstringRequest status (`SUCCESS` or `ERROR`)Example:"SUCCESS"Enum:SUCCESSERROR
%20%5BFINISH_ACTIVATION%5D.png)