Check payment status
curl --request POST \
--url https://v3.minestorecms.com/api/payments/checkStatus \
--header 'Content-Type: application/json' \
--data '
{
"order_id": "MS-123456"
}
'import requests
url = "https://v3.minestorecms.com/api/payments/checkStatus"
payload = { "order_id": "MS-123456" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({order_id: 'MS-123456'})
};
fetch('https://v3.minestorecms.com/api/payments/checkStatus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v3.minestorecms.com/api/payments/checkStatus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_id' => 'MS-123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/payments/checkStatus"
payload := strings.NewReader("{\n \"order_id\": \"MS-123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v3.minestorecms.com/api/payments/checkStatus")
.header("Content-Type", "application/json")
.body("{\n \"order_id\": \"MS-123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/payments/checkStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_id\": \"MS-123456\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Payment is successful.",
"order_data": {
"id": 1,
"internal_id": "MS-123456",
"price": 99.99,
"currency": "USD",
"status": "PAID",
"gateway": "stripe",
"created_at": "2025-01-22 10:30:00"
}
}{
"status": "error",
"message": "Unauthorized"
}{
"status": "forbidden",
"message": "You are not allowed to check this payment."
}{
"status": "not_found",
"message": "Payment not found."
}{
"status": "error",
"message": "Too many attempts."
}Payment Endpoints
Check Status
Retrieves the current status of a payment. Rate limited to 18 requests per minute per IP address.
POST
/
payments
/
checkStatus
Check payment status
curl --request POST \
--url https://v3.minestorecms.com/api/payments/checkStatus \
--header 'Content-Type: application/json' \
--data '
{
"order_id": "MS-123456"
}
'import requests
url = "https://v3.minestorecms.com/api/payments/checkStatus"
payload = { "order_id": "MS-123456" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({order_id: 'MS-123456'})
};
fetch('https://v3.minestorecms.com/api/payments/checkStatus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v3.minestorecms.com/api/payments/checkStatus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_id' => 'MS-123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://v3.minestorecms.com/api/payments/checkStatus"
payload := strings.NewReader("{\n \"order_id\": \"MS-123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://v3.minestorecms.com/api/payments/checkStatus")
.header("Content-Type", "application/json")
.body("{\n \"order_id\": \"MS-123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/payments/checkStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_id\": \"MS-123456\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Payment is successful.",
"order_data": {
"id": 1,
"internal_id": "MS-123456",
"price": 99.99,
"currency": "USD",
"status": "PAID",
"gateway": "stripe",
"created_at": "2025-01-22 10:30:00"
}
}{
"status": "error",
"message": "Unauthorized"
}{
"status": "forbidden",
"message": "You are not allowed to check this payment."
}{
"status": "not_found",
"message": "Payment not found."
}{
"status": "error",
"message": "Too many attempts."
}Body
application/json
Internal ID of the payment to check
Example:
"MS-123456"
⌘I

