Minimum PayPal days
GET /api/rent.php?method=get_min_paypal_days
Send a GET request and check status in the JSON response: 1 means success and 0 means failure, even with HTTP 200. If it fails, read msg for the reason.
Authentication
You can call this method without an API key.
Parameters
| Name | Location | Type | Required | Example | Description |
|---|---|---|---|---|---|
method | query | string | Yes | "get_min_paypal_days" | Method name |
country | query | string | Yes | "CA" | Country code of number Countries list |
service | query | string | Yes | "opt83" | Service code Services list |
How to use this method
Check the shortest PayPal rental period for your country and service. Send both parameters: the backend may return an empty HTTP body if either is missing. Country codes are in Rental countries. For Canada, also see Canada PayPal days.
Request examples
Environment and dependencies. Each example encodes query values and allows 30 seconds for the request. Check HTTP and JSON status before using data. cURL prints the response for you to check; Java uses Jackson to read the JSON.
curl --get --fail-with-body --max-time 30 "https://smspva.com/api/rent.php" \
--data-urlencode "method=get_min_paypal_days" \
--data-urlencode "country=CA" \
--data-urlencode "service=opt83"Responses
Check the response that matches your request. Example values and dates are illustrative. Optional fields can depend on the outcome or the response format you selected.
HTTP 200
Success
application/json
Illustrative response
{
"status": 1,
"data": {
"Days": 30,
"Status": 1,
"Message": ""
}
}| Name | Type | Description |
|---|---|---|
status | integer | Status of the response: 1 for success, 0 for failure |
data | object | Minimum rental period and its availability result. |
data.Days | integer | Minimum rental period in days. |
data.Status | integer | Availability status returned by the server, separate from the top-level status. |
data.Message | string | Availability message returned by the server. |
msg | string | Error message when status is 0. |