Developer API Documentation

Everything you need to integrate Sari3 into your application

# Introduction

The Sari3 API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

بروتوكولات API
RESTful API HTTPS Only JSON Responses
  • Standard GET, POST communication with HTTP status codes.
  • All data is returned in structured JSON format.
  • Requires application/json Content-Type for all requests.

# Authentication

1. Getting your API Keys
  1. Log into your Sari3 dashboard.
  2. Navigate to 'API Settings' in your profile.
  3. Copy your Public and Secret keys safely.
2. Authorizing Requests

Include your keys in the Request Headers:

PublicKey: YOUR_PUBLIC_KEY
SecretKey: YOUR_SECRET_KEY

# Generate Bearer Token

#جلب الرمز

لتوليد رمز bearer اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسيhttps://sari3.co/api/

طريقة HTTP: POST

رابط API: https://sari3.co/api/generate/authorization-token

API Ecosystem: احصل على YOUR_PUBLIC_KEY و YOUR_SECRET_KEY من صفحة الحساب API Ecosystem

تنسيق الاستجابة: JSON


معاملات الرأس

PublicKey* string

Find the PublicKey from user dashboard

SecretKey* string

Find the SecretKey from user dashboard

                                                                
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://sari3.co/api/generate/authorization-token',
  'headers': {
    'PublicKey': 'YOUR_PUBLIC_KEY',
    'SecretKey': 'YOUR_SECRET_KEY'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
                                                                
12345678910111213

import requests

url = "https://sari3.co/api/generate/authorization-token"

payload={}
headers = {
  'PublicKey': 'YOUR_PUBLIC_KEY',
  'SecretKey': 'YOUR_SECRET_KEY'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
1234567891011

<?php

$client = new Client();
$headers = [
  'PublicKey' => 'YOUR_PUBLIC_KEY',
  'SecretKey' => 'YOUR_SECRET_KEY'
];
$request = new Request('POST', 'https://sari3.co/api/generate/authorization-token', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
                                                                
123456789

curl --location --request POST 'https://sari3.co/api/generate/authorization-token' \
--header 'PublicKey: YOUR_PUBLIC_KEY' \
--header 'SecretKey: YOUR_SECRET_KEY'
123

require "uri"
require "net/http"

url = URI("https://sari3.co/api/generate/authorization-token")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["PublicKey"] = "YOUR_PUBLIC_KEY"
request["SecretKey"] = "YOUR_SECRET_KEY"

response = http.request(request)
puts response.read_body
1234567891011

{
    "status": "success",
    "message": "Token generated successfully",
    "bearer_token": "YOUR_BEARER_TOKEN"
}
                                                        
12345

{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
1234

# Category API

#جلب الفئة

للحصول على كل قائمة الفئات اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسي https://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-category

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف الفئة

name: اسم الفئة

أيقونة: أيقونة الفئة

type: أي نوع من الفئات، نوعان متاحان top_up,card

عناصر_فرعية_نشطة: كم عدد المنتجات النشطة في الفئة


var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/get-category',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
                                            
12345678910111213

import requests

url = "https://sari3.co/api/get-category"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
                                            
1234567891011

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/get-category', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
                                            
123456789

curl --location 'https://sari3.co/api/get-category' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                            
12

require "uri"
require "net/http"

url = URI("https://sari3.co/api/get-category")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body
                                            
1234567891011

{
    "status": "success",
    "message": {
        "categories": [
            {
                "id": 1,
                "name": "Mobile Game Cards",
                "icon": "fa-light fa-game-console-handheld",
                "type": "card",
                "active_children": 2
            },
            {
                "id": 2,
                "name": "Game Cards",
                "icon": "fa-light fa-diamond",
                "type": "card",
                "active_children": 2
            }
        ]
    }
}
                                            
12345678910111213141516171819

{
    "status": "failed",
    "errors": "Something went wrong"
}
                                            
1234

# Top Up API

#جلب عمليات الشحن

للحصول على كل قائمة الشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/top-up/list

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف الشحن

معرف_الفئة: فئة الشحن id

name: اسم الشحن

اسم_لطيف: اسم لطيف للشحن

region: منطقة الشحن

note: ملاحظة الشحن

تسليم_فوري: حالة التسليم الفوري للشحن. يجب أن تكون 1 لجميع عمليات الشحن ذات التسليم الفوري النشطة

معلومات_الطلب: معلومات طلبات الشحن

الوصف: وصف الشحن

دليل: دليل الشحن

إجمالي_المراجعات: إجمالي مراجعات الشحن

متوسط_التقييم: متوسط تقييم الشحن

فرز_حسب: فرز الشحن، 1 للفرز حسب التاريخ، 2 للفرز حسب السعر إلخ.

status: حالة الشحن. يجب أن تكون 1 لجميع عمليات الشحن النشطة

صورة: مسار رابط صورة الشحن

صورة_المعاينة: مسار رابط صورة معاينة الشحن

خدمات: خدمات الشحن

تاريخ_الإنشاء: تاريخ إنشاء الشحن

تاريخ_التحديث: تاريخ تحديث الشحن

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/top-up/list',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});






                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/top-up/list"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)




123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/top-up/list', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/top-up/list' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/top-up/list")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body



123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "current_page": 1,
        "items": [
            {
                "id": 2,
                "category_id": 8,
                "name": "MICO Live Coins",
                "slug": "mico-live-coins",
                "region": "Global",
                "note": null,
                "status": 1,
                "instant_delivery": 1,
                "image": {
                    "image": "top-up/gYwgPOr73OKgqyRoWiLH3zwQ8oXK55.webp",
                    "image_driver": "local",
                    "preview": "top-up/VPJS0Mr6yqkPR2YRzGZKAqunbuTf0D.webp",
                    "preview_driver": "local"
                },
                "order_information": {
                    "1": {
                        "field_value": "Name",
                        "field_name": "Name",
                        "field_placeholder": "Name",
                        "field_note": "Take is seriously",
                        "field_type": "text"
                    }
                },
                "description": "About MICO Live\r\n

MICO Live is one of the most popular worldwide social networking apps for live.

", "guide": "How to top-up MICO Live Coins?\r\n

Refer the simple steps below:

\r\n
    \r\n
  1. Enter your Mico Live ID and select the top up amount.
  2. \r\n
", "total_review": 0, "avg_rating": 0, "sort_by": 1, "deleted_at": null, "created_at": "2025-03-04T09:54:06.000000Z", "updated_at": "2025-03-04T09:54:06.000000Z", "preview_image": "http://192.168.0.123/gamers-arena/project/assets/upload/top-up/VPJS0Mr6yqkPR2YRzGZKAqunbuTf0D.webp", "top_up_detail_route": "http://192.168.0.123/gamers-arena/project/direct-topup/details/mico-live-coins", "services": [ { "id": 1, "top_up_id": 2, "name": "MICO Live 88 Coins", "image": "top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp", "image_driver": "local", "price": 2.8, "discount": 5, "discount_type": "percentage", "status": 1, "is_offered": 0, "offered_sell": 0, "max_sell": 0, "sort_by": 1, "old_data": null, "campaign_data": null, "created_at": "2025-03-04T09:57:49.000000Z", "updated_at": "2025-03-04T09:57:49.000000Z", "image_path": "http://192.168.0.123/gamers-arena/project/assets/upload/top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp" } ... ] }, ... ], "first_page_url": "https://sari3.co/api/top-up/list?page=1", "from": 1, "last_page": 1, "last_page_url": "https://sari3.co/api/top-up/list?page=1", "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "https://sari3.co/api/top-up/list?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ], "next_page_url": null, "path": "https://sari3.co/api/top-up/list", "per_page": 10, "prev_page_url": null, "to": 10, "total": 10 } }
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Top Up By Category API

#جلب الشحن حسب الفئة

للحصول على كل قائمة الشحن حسب معرف الفئة اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/top-up/list?category_id={category_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف الشحن

معرف_الفئة: فئة الشحن id

name: اسم الشحن

اسم_لطيف: اسم لطيف للشحن

region: منطقة الشحن

note: ملاحظة الشحن

تسليم_فوري: حالة التسليم الفوري للشحن. يجب أن تكون 1 لجميع عمليات الشحن ذات التسليم الفوري النشطة

معلومات_الطلب: معلومات طلبات الشحن

الوصف: وصف الشحن

دليل: دليل الشحن

إجمالي_المراجعات: إجمالي مراجعات الشحن

متوسط_التقييم: متوسط تقييم الشحن

فرز_حسب: فرز الشحن، 1 للفرز حسب التاريخ، 2 للفرز حسب السعر إلخ.

status: حالة الشحن. يجب أن تكون 1 لجميع عمليات الشحن النشطة

صورة: مسار رابط صورة الشحن

صورة_المعاينة: مسار رابط صورة معاينة الشحن

خدمات: خدمات الشحن

تاريخ_الإنشاء: تاريخ إنشاء الشحن

تاريخ_التحديث: تاريخ تحديث الشحن

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/top-up/list?category_id={category_id}',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/top-up/list?category_id={category_id}"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/top-up/list?category_id={category_id}', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/top-up/list?category_id=8' \
--header 'YOUR_BEARER_TOKEN' \
--header '..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/top-up/list?category_id={category_id}")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "current_page": 1,
        "items": [
            {
                "id": 2,
                "category_id": 8,
                "name": "MICO Live Coins",
                "slug": "mico-live-coins",
                "region": "Global",
                "note": null,
                "status": 1,
                "instant_delivery": 1,
                "image": {
                    "image": "top-up/gYwgPOr73OKgqyRoWiLH3zwQ8oXK55.webp",
                    "image_driver": "local",
                    "preview": "top-up/VPJS0Mr6yqkPR2YRzGZKAqunbuTf0D.webp",
                    "preview_driver": "local"
                },
                "order_information": {
                    "1": {
                        "field_value": "Name",
                        "field_name": "Name",
                        "field_placeholder": "Name",
                        "field_note": "Take is seriously",
                        "field_type": "text"
                    }
                },
                "description": "About MICO Live\r\n

MICO Live is one of the most popular worldwide social networking apps for live streaming.

", "guide": "How to top-up MICO Live Coins?\r\n

Refer the simple steps below:

\r\n
    \r\n
  1. Enter your Mico Live ID and select the top up amount.
  2. \r\n
  3. Check out and select your payment method.
  4. \r\n
  5. Once payment made, Mico Live coins will top up automatically into your Mico Live account.
  6. \r\n
", "total_review": 0, "avg_rating": 0, "sort_by": 4, "deleted_at": null, "created_at": "2025-03-04T09:54:06.000000Z", "updated_at": "2025-03-05T11:43:51.000000Z", "preview_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up/VPJS0Mr6yqkPR2YRzGZKAqunbuTf0D.webp", "top_up_detail_route": "http://192.168.0.123/gamers-arena/gamers/direct-topup/details/mico-live-coins", "services": [ { "id": 1, "top_up_id": 2, "name": "MICO Live 88 Coins", "image": "top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp", "image_driver": "local", "price": 2.8, "discount": 5, "discount_type": "percentage", "status": 1, "is_offered": 1, "offered_sell": 0, "max_sell": 0, "sort_by": 1, "old_data": null, "campaign_data": { "price": "2.8", "discount": "8", "discount_type": "percentage", "max_sell": "1000" }, "created_at": "2025-03-04T09:57:49.000000Z", "updated_at": "2025-03-06T04:58:15.000000Z", "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp" }, ... ] } .. ], "first_page_url": "http://192.168.0.123/gamers-arena/gamers/api/top-up/list?page=1", "from": 1, "last_page": 1, "last_page_url": "http://192.168.0.123/gamers-arena/gamers/api/top-up/list?page=1", "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "http://192.168.0.123/gamers-arena/gamers/api/top-up/list?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ], "next_page_url": null, "path": "http://192.168.0.123/gamers-arena/gamers/api/top-up/list", "per_page": 10, "prev_page_url": null, "to": 4, "total": 4 } }
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Top Up Details API

#تفاصيل الشحن

للحصول على كل معلومات الشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/top-up/details?slug={slug}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف الشحن

معرف_الفئة: فئة الشحن id

name: اسم الشحن

اسم_لطيف: اسم لطيف للشحن

region: منطقة الشحن

note: ملاحظة الشحن

تسليم_فوري: حالة التسليم الفوري للشحن. يجب أن تكون 1 لجميع عمليات الشحن ذات التسليم الفوري النشطة

معلومات_الطلب: معلومات طلبات الشحن

الوصف: وصف الشحن

دليل: دليل الشحن

إجمالي_المراجعات: إجمالي مراجعات الشحن

متوسط_التقييم: متوسط تقييم الشحن

فرز_حسب: فرز الشحن، 1 للفرز حسب التاريخ، 2 للفرز حسب السعر إلخ.

status: حالة الشحن. يجب أن تكون 1 لجميع عمليات الشحن النشطة

صورة: مسار رابط صورة الشحن

صورة_المعاينة: مسار رابط صورة معاينة الشحن

خدمات_نشطة: خدمات الشحن النشطة

تاريخ_الإنشاء: تاريخ إنشاء الشحن

تاريخ_التحديث: تاريخ تحديث الشحن

مسار_تفاصيل_الشحن: مسار تفاصيل الشحن

مراجعة_ثابتة: مراجعة الشحن وهل هي قابلة للمراجعة أم لا

بوابات: البوابات النشطة للدفع

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/top-up/details?slug={slug}',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/top-up/details?slug={slug}"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/top-up/details?slug={slug}', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/top-up/details?slug={slug}' \
--header 'Authorization: Bearer YOUR_BEARER_TOKEN' \
--header '..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/top-up/details?slug={slug}")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "topUp": {
            "id": 10,
            "category_id": 12,
            "name": "PUBG Mobile UC (Global)",
            "slug": "pubg-mobile-uc-global",
            "region": "Global",
            "note": "Important Note: Not for Japanese / Korean / Taiwan / Vietnam servers.",
            "status": 1,
            "instant_delivery": 1,
            "image": {
                "image": "top-up/EyIRfPvWAhJ8T1uxY6Ykmh4USLVHr2.webp",
                "image_driver": "local",
                "preview": "top-up/d5aGlVfRWsen1EHYcwhrV4IojFBEMP.webp",
                "preview_driver": "local"
            },
            "order_information": [
                {
                    "field_value": "User ID",
                    "field_name": "User_Id",
                    "field_placeholder": "User ID",
                    "field_note": "Check your user id from setting",
                    "field_type": "text"
                },
                {
                    "field_value": "Server",
                    "field_name": "Server",
                    "field_placeholder": "Server",
                    "field_note": "Check your server from setting",
                    "field_type": "select",
                    "option": {
                        "Asia": "Asia",
                        "Europe": "Europe",
                        "America": "America"
                    }
                }
            ],
            "description": "About PUBG Mobile UC\r\nPlayerUnknown Battleground Mobile or PUBG Mobile is an original battle royale.",
            "guide": "How to top-up PUBG Mobile UC?\r\n\r\nSelect the Unknown Cash UC denomination.\r\nEnter your PUBG Mobile Player ID.",
            "total_review": 1,
            "avg_rating": 5,
            "sort_by": 1,
            "deleted_at": null,
            "created_at": "2025-03-04T10:18:40.000000Z",
            "updated_at": "2025-03-05T11:43:51.000000Z",
            "preview_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up/d5aGlVfRWsen1EHYcwhrV4IojFBEMP.webp",
            "top_up_detail_route": "http://192.168.0.123/gamers-arena/gamers/direct-topup/details/pubg-mobile-uc-global",
            "active_services": [
                {
                    "id": 29,
                    "top_up_id": 10,
                    "name": "60 UC",
                    "image": "top-up-service/GDemkOKkh1hxhICw3jXl7A9Q10eIrI.webp",
                    "image_driver": "local",
                    "price": 10,
                    "discount": 2,
                    "discount_type": "percentage",
                    "status": 1,
                    "is_offered": 0,
                    "offered_sell": 0,
                    "max_sell": 0,
                    "sort_by": 1,
                    "old_data": null,
                    "campaign_data": null,
                    "created_at": "2025-03-04T10:21:36.000000Z",
                    "updated_at": "2025-03-06T04:58:14.000000Z",
                    "currency": "USD",
                    "currency_symbol": "$",
                    "discountedAmount": 0.2,
                    "discountedPriceWithoutDiscount": 9.8,
                    "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/GDemkOKkh1hxhICw3jXl7A9Q10eIrI.webp"
                },
                ..
            ]
        },
        "reviewStatic": {
            "reviews": [
                {
                    "id": 21,
                    "reviewable_type": "App\Models\TopUp",
                    "reviewable_id": 10,
                    "user_id": 24,
                    "rating": 5,
                    "comment": "Absolutely fantastic experience! The service was seamless, and everything worked perfectly. Highly recommended!",
                    "status": 1,
                    "created_at": "2025-03-06T05:10:17.000000Z",
                    "updated_at": "2025-03-06T05:10:17.000000Z",
                    "user": {
                        "id": 24,
                        "firstname": "Tony",
                        "lastname": "Grady",
                        "email": "torphy.yasmin@example.net",
                        "image_driver": null,
                        "image": null,
                        "LastSeenActivity": false,
                        "imgPath": "http://192.168.0.123/gamers-arena/gamers/assets/admin/img/default.png",
                        "fullname": "Tony Grady"
                    }
                },
                ..
            ],
            "hasAlreadyOrdered": true
        },
        "gateways": [
            {
                "id": 2,
                "code": "stripe",
                "name": "Stripe",
                "sort_by": 1,
                "image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/gateway/fkcARCIw6q6Fb3DY1AIS3FvxCc0khe.webp",
                "driver": "local",
                "status": 1,
                "parameters": {
                    "secret_key": "sk_test_aat3tzBCCXXBkS4sxY3M8A1B",
                    "publishable_key": "pk_test_AU3G7doZ1sbdpJLj0NaozPBu"
                },
                "currencies": {
                    "0": {
                        "USD": "USD",
                        "AUD": "AUD",
                        "BRL": "BRL",
                        "CAD": "CAD",
                        "CHF": "CHF",
                        "DKK": "DKK",
                        "EUR": "EUR",
                        "GBP": "GBP",
                        "HKD": "HKD",
                        "INR": "INR",
                        "JPY": "JPY",
                        "MXN": "MXN",
                        "MYR": "MYR",
                        "NOK": "NOK",
                        "NZD": "NZD",
                        "PLN": "PLN",
                        "SEK": "SEK",
                        "SGD": "SGD"
                    }
                },
                "extra_parameters": null,
                "supported_currency": [
                    "USD",
                    "EUR",
                    "GBP"
                ],
                "receivable_currencies": [
                    {
                        "name": "USD",
                        "currency_symbol": "USD",
                        "conversion_rate": "1",
                        "min_limit": "0.1",
                        "max_limit": "100000",
                        "percentage_charge": "1",
                        "fixed_charge": "0"
                    },
                    ..
                ],
                "description": "Send form your payment gateway. your bank may charge you a cash advance fee.",
                "currency_type": 1,
                "is_sandbox": 1,
                "environment": "test",
                "is_manual": null,
                "note": null,
                "created_at": "2020-09-10T09:05:02.000000Z",
                "updated_at": "2025-03-05T06:31:09.000000Z"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Top Up Services API

#جلب خدمات الشحن

للحصول على كل قائمة خدمات الشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/topup/services

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Service id

top_up_id: Top up id

name: Service Name

price: The price of service

discount: The discount amount of service

discount_type: The discount amount type. 1.percentage 2.flat

is_offered: The service is in campaign or not. 1=> yes, 0=> not

offered_sell: The campaign sell of the service

max_sell: The campaign max sell limit of the service

old_data: The actual data before campaign

campaign_data: The campaign data of the service

image_path: Service image path

فرز_حسب: فرز الشحن، 1 للفرز حسب التاريخ، 2 للفرز حسب السعر إلخ.

تاريخ_الإنشاء: تاريخ إنشاء الشحن

تاريخ_التحديث: تاريخ تحديث الشحن

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/topup/services',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/topup/services"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/topup/services', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/topup/services' \
--header 'YOUR_BEARER_TOKEN' \
--header '..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/api/topup/services")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "services": [
            {
                "id": 1,
                "top_up_id": 2,
                "name": "MICO Live 88 Coins",
                "price": 2.8,
                "discount": 5,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 1,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": {
                    "price": "2.8",
                    "discount": "8",
                    "discount_type": "percentage",
                    "max_sell": "1000"
                },
                "created_at": "2025-03-04T09:57:49.000000Z",
                "updated_at": "2025-03-06T04:58:15.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp"
            },
            ...
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Get Services By Top Up API

#جلب الخدمات حسب الشحن

للحصول على خدمات قائمة الشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/topup/services?top_up_id={top_up_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Service id

top_up_id: Top up id

name: Service Name

price: The price of service

discount: The discount amount of service

discount_type: The discount amount type. 1.percentage 2.flat

is_offered: The service is in campaign or not. 1=> yes, 0=> not

offered_sell: The campaign sell of the service

max_sell: The campaign max sell limit of the service

old_data: The actual data before campaign

campaign_data: The campaign data of the service

image_path: Service image path

فرز_حسب: فرز الشحن، 1 للفرز حسب التاريخ، 2 للفرز حسب السعر إلخ.

تاريخ_الإنشاء: تاريخ إنشاء الشحن

تاريخ_التحديث: تاريخ تحديث الشحن

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/topup/services?top_up_id={top_up_id}',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/topup/services?top_up_id=2"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/topup/services?top_up_id={top_up_id}', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/topup/services?top_up_id={top_up_id}' \
--header 'YOUR_BEARER_TOKEN' \
--header '..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/topup/services?top_up_id={top_up_id}")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "services": [
            {
                "id": 1,
                "top_up_id": 2,
                "name": "MICO Live 88 Coins",
                "price": 2.8,
                "discount": 5,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 1,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": {
                    "price": "2.8",
                    "discount": "8",
                    "discount_type": "percentage",
                    "max_sell": "1000"
                },
                "created_at": "2025-03-04T09:57:49.000000Z",
                "updated_at": "2025-03-06T04:58:15.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp"
            },
            {
                "id": 2,
                "top_up_id": 2,
                "name": "MICO Live 100 Coins",
                "price": 3.8,
                "discount": 3,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 0,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": null,
                "created_at": "2025-03-04T09:58:09.000000Z",
                "updated_at": "2025-03-06T04:58:14.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/1MrpTXWVGuN8jmV6wPfSUKnTs1xItE.webp"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Order Top Up API

#طلب شحن

لطلب شحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: POST

رابط API: https://sari3.co/api/top-up/make-order

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


معاملات الجسم

topUpId* integer

The id of Top-Up, Must be in integer positive value


serviceId* integer

The id of Top-Up Service, Must be in integer positive value


User_Id* text

Order information of the top up. You get from Top Up Details endpoint. Pass the all order_information field_name here


Zone_Name* text

Order information of the top up. You get from Top Up Details endpoint. Pass the all order_information field_name here


                                                                
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://sari3.co/api/top-up/make-order',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  },
  formData: {
    'topUpId': '2',
    'serviceId': '1',
    'Player_Id': '300',
    'Zone_Name': 'Asia'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});







                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/top-up/make-order"

payload = {'topUpId': '2',
'serviceId': '1',
'Player_Id': '300',
'Zone_Name': 'Asia'}
files=[

]
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': 'YOUR_BEARER_TOKEN'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)





123456789101112131415 1617181920212223242526

?php
$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$options = [
  'multipart' => [
    [
      'name' => 'topUpId',
      'contents' => '2'
    ],
    [
      'name' => 'serviceId',
      'contents' => '1'
    ],
    [
      'name' => 'Player_Id',
      'contents' => '300'
    ],
    [
      'name' => 'Zone_Name',
      'contents' => 'Asia'
    ]
]];
$request = new Request('POST', 'https://sari3.co/api/top-up/make-order', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();



                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/top-up/make-order' \
--header 'YOUR_BEARER_TOKEN' \
--header 'Cookie: ..' \
--form 'topUpId="2"' \
--form 'serviceId="1"' \
--form 'Player_Id="300"' \
--form 'Zone_Name="Asia"'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/top-up/make-order")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."
form_data = [['topUpId', '2'],['serviceId', '1'],['Player_Id', '300'],['Zone_Name', 'Asia']]
request.set_form form_data, 'multipart/form-data'
response = http.request(request)
puts response.read_body




123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": "Order has been placed successfully"
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": [
        "The top up id field is required.",
    ]
}
                                                            
                                                            
1234567891011121314

# Get Top Up Reviews API

#جلب مراجعات الشحن

للحصول على مراجعات قائمة الشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/topup/review?top_up_id={top_up_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Review id

rating: Top up rating. min value 1 max value 5

comment: Product rating comment

user: Who give the rating

status: Status 1 for published, 0 for holded

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/topup/review?top_up_id=10',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/topup/review?top_up_id=10"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/topup/review?top_up_id=10', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/topup/review?top_up_id=10' \
--header 'YOUR_BEARER_TOKEN' \
--header 'Cookie: ..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/topup/review?top_up_id=10")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body

123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "reviews": [
            {
                "id": 21,
                "rating": 5,
                "comment": "Absolutely fantastic experience! The service was seamless, and everything worked perfectly. Highly recommended!",
                "status": 1,
                "created_at": "2025-03-06T05:10:17.000000Z",
                "updated_at": "2025-03-06T05:10:17.000000Z",
                "user": {
                    "id": 24,
                    "firstname": "Tony",
                    "lastname": "Grady",
                    "image": null,
                    "image_driver": null,
                    "imgPath": "http://192.168.0.123/gamers-arena/gamers/assets/admin/img/default.png",
                    "LastSeenActivity": false,
                    "fullname": "Tony Grady"
                }
            },
            ..
        ],
        "pagination": {
            "total": 8,
            "per_page": 15,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null
        }
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Add Top Up Reviews API

#إضافة مراجعات الشحن

لإعطاء تقييم للشحن اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: POST

رابط API: https://sari3.co/api/topup/review

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


معاملات الجسم

topUpId* integer

The id of Top-Up, Must be in integer positive value


rating* number

Must be in positive number between 1 to 5


comment* text

What was your experience


                                                                
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://sari3.co/api/topup/review',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  },
  formData: {
    'topUpId': '2',
    'rating': '5',
    'comment': 'my comment'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});






                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/topup/review"

payload = {'topUpId': '2',
'rating': '5',
'comment': 'my comment'}
files=[

]
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)




123456789101112131415 1617181920212223242526

?php
$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$options = [
  'multipart' => [
    [
      'name' => 'topUpId',
      'contents' => '2'
    ],
    [
      'name' => 'rating',
      'contents' => '5'
    ],
    [
      'name' => 'comment',
      'contents' => 'my comment'
    ]
]];
$request = new Request('POST', 'https://sari3.co/api/topup/review', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/topup/review' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--header '..' \
--form 'topUpId="2"' \
--form 'rating="5"' \
--form 'comment="my comment"'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/topup/review")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."
form_data = [['topUpId', '2'],['rating', '5'],['comment', 'my comment']]
request.set_form form_data, 'multipart/form-data'
response = http.request(request)
puts response.read_body



123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": "Review Added Successfully"
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": [
        "The top up id field is required.",
        "The rating field is required.",
        "The comment field is required."
    ]
}
                                                            
                                                            
1234567891011121314

# Card API

#جلب البطاقات

للحصول على كل قائمة البطاقات اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسيhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-card

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف البطاقة

معرف_الفئة: معرف فئة البطاقة

name: اسم البطاقة

اسم_لطيف: الاسم اللطيف للبطاقة

status: حالة البطاقة. يجب أن تكون 1 لجميع البطاقات النشطة

صورة_المنتج: مسار رابط صورة البطاقة

صورة_المعاينة: مسار رابط صورة معاينة البطاقة

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/get-card',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN',
    'Cookie': '..'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/get-card"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN',
  'Cookie': '..'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN',
  'Cookie' => '..'
];
$request = new Request('GET', 'https://sari3.co/api/get-card', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/get-card' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--header 'Cookie: ..'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/get-card")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
request["Cookie"] = ".."

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "cards": [
            {
                "id": 1,
                "category_id": 1,
                "name": "Honor of Kings (Global)",
                "slug": "honor-of-kings-global",
                "status": 1,
                "product_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/M8H2HEgm9F5idIYoMoU2j6ZvRrJsA6.webp",
                "preview_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/mQnj7yQsc0ZrRn2XaGwPuOWXYiTVwz.webp"
            },
            {
                "id": 3,
                "category_id": 1,
                "name": "Mobile Legends Diamonds Pin",
                "slug": "mobile-legends-diamonds-pin",
                "status": 1,
                "product_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/7OcZfBfKnbcFotrUwDCExlIsNGS0kV.webp",
                "preview_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/oe0U1xKwbjjN4i1V7hjOjpfC2JSS1z.webp"
            },
            ...
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Get Card By Category API

#جلب البطاقة حسب الفئة

للحصول على كل قائمة البطاقات حسب معرف الفئة اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-card?category_id={category_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Card id

category_id: Card Category id

name: Card Name

slug: Card Slug

status: Card Status. It Should be 1 For All Active Card

product_image: The Card Image Url Path

preview_image: The Card Preview Image Url Path

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/get-card?category_id=5',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/get-card?category_id=5"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/get-card?category_id=5', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/get-card?category_id=5' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/get-card?category_id=5")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "cards": [
            {
                "id": 10,
                "category_id": 5,
                "name": "Netflix Gift Card (MY)",
                "slug": "netflix-gift-card-my",
                "status": 1,
                "product_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/vNK9c1bqfRqceCLfsR707XNr3IYhMS.webp",
                "preview_image": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card/Cpg8NhG9JWAoWCW63PB8zuo8rdHrKf.webp"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Card Details API

#تفاصيل البطاقة

للحصول على كل معلومات البطاقة اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/card/details?card_id={card_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Card up id

category_id: Card Category id

name: Card Name

slug: Card Slug

region: suppoerted region or country

note: any note for the Card

status: Card Status. It Should be 1 For All Active Card

instant_delivery: 1=> if Top Up send instantly to buyer

description: Card Description

guide: Card Guide

total_review: How many review give by the buyer

avg_rating: The average review rating by the buyer

sell_count: Total Sell time

trending: Trending item for 1, 0 is normal

preview_image: Card Preview Image

product_image: Card Image

services: Card Services

gateways: Active gateways for payment

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/card/details?card_id=1',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/card/details?card_id=1"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/card/details?card_id=1', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/details?card_id=1' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/details?card_id=1")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "services": [
            {
                "id": 1,
                "card_id": 1,
                "name": "Gift Card 10 INR IN",
                "price": 0.27,
                "discount": 2,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 0,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": null,
                "created_at": "2024-08-17T05:19:12.000000Z",
                "updated_at": "2024-11-11T13:03:09.000000Z",
                "image_path": "https://sari3.co/assets/upload/card-service/kTMWS2KWNVWh9GFAwgqlYJrMqhLxbg.webp"
            },
            {
                "id": 2,
                "card_id": 1,
                "name": "Gift Card 25 INR IN",
                "price": 0.42,
                "discount": 2,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 0,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 2,
                "old_data": null,
                "campaign_data": null,
                "created_at": "2024-08-17T05:20:36.000000Z",
                "updated_at": "2024-11-11T13:03:09.000000Z",
                "image_path": "https://sari3.co/assets/upload/card-service/jIWZPRKnzJ91k5KcI9SwKlWPsb8LKu.webp"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Get Card Services API

#جلب خدمات البطاقة

للحصول على كل قائمة خدمات البطاقات اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/card/services

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Service id

card_id: Card id

name: Service Name

price: The price of service

discount: The discount amount of service

discount_type: The discount amount type. 1.percentage 2.flat

is_offered: The service is in campaign or not. 1=> yes, 0=> not

offered_sell: The campaign sell of the service

max_sell: The campaign max sell limit of the service

old_data: The actual data before campaign

campaign_data: The campaign data of the service

created_at: Service Created date

updated_at: Service updated date

image_path: Service image path

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/card/services',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/card/services"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/card/services', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/services' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/services")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "services": [
            {
                "id": 1,
                "card_id": 1,
                "name": "Honor of Kings 16 Tokens",
                "price": 2.9,
                "discount": 1,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 0,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": null,
                "created_at": "2025-03-03T09:27:53.000000Z",
                "updated_at": "2025-03-06T04:58:16.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card-service/ksi6iDr9d26D82ZRlr0C3CK9JNpalL.webp"
            },
            {
                "id": 2,
                "card_id": 1,
                "name": "Honor of Kings 80 Tokens",
                "price": 2.45,
                "discount": 1,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 1,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": {
                    "price": "2.45",
                    "discount": "15",
                    "discount_type": "percentage",
                    "max_sell": "1000"
                },
                "created_at": "2025-03-03T09:28:28.000000Z",
                "updated_at": "2025-03-06T04:58:16.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card-service/zEhj4vofwEQIWzzbpiMj5FeOkGzcpl.webp"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Get Services By Card API

#جلب الخدمات حسب البطاقة

للحصول على خدمات قائمة البطاقات اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/card/services?card_id={card_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Service id

card_id: Card id

name: Service Name

price: The price of service

discount: The discount amount of service

discount_type: The discount amount type. 1.percentage 2.flat

is_offered: The service is in campaign or not. 1=> yes, 0=> not

offered_sell: The campaign sell of the service

max_sell: The campaign max sell limit of the service

old_data: The actual data before campaign

campaign_data: The campaign data of the service

created_at: Service Created date

updated_at: Service updated date

image_path: Service image path

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/card/services?card_id=1',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/card/services?card_id=1"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/card/services?card_id=1', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/services?card_id=1' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/services?card_id=1")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "services": [
            {
                "id": 1,
                "card_id": 1,
                "name": "Honor of Kings 16 Tokens",
                "price": 2.9,
                "discount": 1,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 0,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": null,
                "created_at": "2025-03-03T09:27:53.000000Z",
                "updated_at": "2025-03-06T04:58:16.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card-service/ksi6iDr9d26D82ZRlr0C3CK9JNpalL.webp"
            },
            {
                "id": 2,
                "card_id": 1,
                "name": "Honor of Kings 80 Tokens",
                "price": 2.45,
                "discount": 1,
                "discount_type": "percentage",
                "status": 1,
                "is_offered": 1,
                "offered_sell": 0,
                "max_sell": 0,
                "sort_by": 1,
                "old_data": null,
                "campaign_data": {
                    "price": "2.45",
                    "discount": "15",
                    "discount_type": "percentage",
                    "max_sell": "1000"
                },
                "created_at": "2025-03-03T09:28:28.000000Z",
                "updated_at": "2025-03-06T04:58:16.000000Z",
                "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card-service/zEhj4vofwEQIWzzbpiMj5FeOkGzcpl.webp"
            },
            ..
        ]
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Order Card API

#طلب بطاقة

لطلب بطاقة اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: POST

رابط API: https://sari3.co/api/card/make-order

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


معاملات الجسم

serviceIds* array

The id of Card Service, Must be in array


quantity* array

The Quantity of each Service, Must be in array. Each quantity index value represent the same index number of service_ids quantity


                                                                
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://sari3.co/api/card/make-order',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'YOUR_BEARER_TOKEN'
  },
  body: JSON.stringify({
    "serviceIds": [
      1,
      2
    ],
    "quantity": [
      3,
      4
    ]
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

                                                                
123456789101112131415 16 17181920212223242526

import requests
import json

url = "https://sari3.co/api/card/make-order"

payload = json.dumps({
  "serviceIds": [
    1,
    2
  ],
  "quantity": [
    3,
    4
  ]
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)






123456789101112131415 1617181920212223242526

?php
$client = new Client();
$headers = [
  'Content-Type' => 'application/json',
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$body = '{
  "serviceIds": [
    1,
    2
  ],
  "quantity": [
    3,
    4
  ]
}';
$request = new Request('POST', 'https://sari3.co/api/card/make-order', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/make-order' \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--data '{
    "serviceIds": [1,2],
    "quantity": [3,4]
}'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "json"
require "net/http"

url = URI("https://sari3.co/api/card/make-order")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["Authorization"] = "YOUR_BEARER_TOKEN"
request.body = JSON.dump({
  "serviceIds": [
    1,
    2
  ],
  "quantity": [
    3,
    4
  ]
})

response = http.request(request)
puts response.read_body



123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "utr": "OGRMDQJ71VF6Q"
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": [
        "The service ids field is required.",
    ]
}
                                                            
                                                            
1234567891011121314

# Get Card Reviews API

#جلب مراجعات البطاقة

للحصول على مراجعات قائمة البطاقات اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/card/review?card_id={card_id}

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Review id

user_id: Reviewed User ID

rating: Card rating. min value 1 max value 5

comment: Product rating comment

user: Who give the rating

status: Status 1 for published, 0 for holded

                                                                
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/card/review?card_id=9',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});





                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/card/review?card_id=9"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)



123456789101112131415 1617181920212223242526

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/card/review?card_id=9', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/review?card_id=9' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/review?card_id=9")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body


123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": {
        "reviews": [
            {
                "id": 5,
                "user_id": 1,
                "rating": 3,
                "comment": "Amazing product! Everything works flawlessly, and the convenience is unmatched. 70% satisfied!",
                "status": 1,
                "created_at": "2025-03-05T10:37:57.000000Z",
                "updated_at": "2025-03-05T10:37:57.000000Z",
                "user": {
                    "id": 1,
                    "firstname": "Demo",
                    "lastname": "User",
                    "image": "profileImage/fyT3Q7VjKDjvfYcuIXY4CqE2ob7DDP.webp",
                    "image_driver": "local",
                    "imgPath": "http://192.168.0.123/gamers-arena/gamers/assets/upload/profileImage/fyT3Q7VjKDjvfYcuIXY4CqE2ob7DDP.webp",
                    "LastSeenActivity": true,
                    "fullname": "Demo User"
                }
            },
            {
                "id": 10,
                "user_id": 29,
                "rating": 3,
                "comment": "Amazing product! Everything works flawlessly, and the convenience is unmatched. 70% satisfied!",
                "status": 1,
                "created_at": "2025-03-06T05:09:46.000000Z",
                "updated_at": "2025-03-06T05:09:46.000000Z",
                "user": {
                    "id": 29,
                    "firstname": "Angela",
                    "lastname": "Doyle",
                    "image": null,
                    "image_driver": null,
                    "imgPath": "http://192.168.0.123/gamers-arena/gamers/assets/admin/img/default.png",
                    "LastSeenActivity": false,
                    "fullname": "Angela Doyle"
                }
            },
            ..
        ],
        "pagination": {
            "total": 8,
            "per_page": 15,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null
        }
    }
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": "Something went wrong"
}
                                                            
                                                            
1234567891011121314

# Add Card Reviews API

#إضافة مراجعات البطاقة

لإعطاء تقييم للبطاقة اتبع كود المثال وكن حذراً مع المعاملات.

Base Urlhttps://sari3.co/api/

طريقة HTTP: POST

رابط API: https://sari3.co/api/card/review

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


معاملات الجسم

card_id* integer

The id of Card, Must be in integer positive value


rating* number

Must be in positive number between 1 to 5


comment* text

What was your experience


                                                                
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://sari3.co/api/card/review',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  },
  formData: {
    'card_id': '9',
    'rating': '5',
    'comment': 'This is review'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});






                                                                
123456789101112131415 16 17181920212223242526

import requests

url = "https://sari3.co/api/card/review"

payload = {'card_id': '9',
'rating': '5',
'comment': 'This is review'}
files=[

]
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)

print(response.text)




123456789101112131415 1617181920212223242526

?php
$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$options = [
  'multipart' => [
    [
      'name' => 'card_id',
      'contents' => '9'
    ],
    [
      'name' => 'rating',
      'contents' => '5'
    ],
    [
      'name' => 'comment',
      'contents' => 'This is review'
    ]
]];
$request = new Request('POST', 'https://sari3.co/api/card/review', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();


                                                                
123456789101112131415 1617181920212223242526

curl --location 'https://sari3.co/api/card/review' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--form 'card_id="9"' \
--form 'rating="5"' \
--form 'comment="This is review"'
                                                                
123456789101112131415 1617181920212223242526

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/review")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"
form_data = [['card_id', '9'],['rating', '5'],['comment', 'This is review']]
request.set_form form_data, 'multipart/form-data'
response = http.request(request)
puts response.read_body



123456789101112131415 1617181920212223242526

{
    "status": "success",
    "message": "Review Added Successfully"
}
                                                        
123456789101112131415 1617181920212223242526
                                                                
{
    "status": "failed",
    "errors": [
        "The top up id field is required.",
        "The rating field is required.",
        "The comment field is required."
    ]
}
                                                            
                                                            
1234567891011121314

# Money Transfer API

#Get Destinations

To get available countries for money transfer follow the example code.

الرابط الأساسي https://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/money-transfer/destinations

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

id: Country ID

name: Country Name

currency_code: Primary currency


curl --location 'https://sari3.co/api/money-transfer/destinations' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                    

# Agents & Coverage

#Get Online Agents

Fetch active/online agents covering a specific city for field delivery.

طريقة HTTP: GET

رابط API: https://sari3.co/api/money-transfer/agents


Query Params

city_id: integer (Required)


curl --location 'https://sari3.co/api/money-transfer/agents?city_id=5' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                    

# Calculate Transfer Rate

#Calculate Fees & Rate

Get real-time calculation for your transfer including fees, exchange rates, and agent availability status.

طريقة HTTP: POST

رابط API: https://sari3.co/api/money-transfer/calculate


معاملات الجسم

amount: numeric (Min: 1)

country_id: integer (Required)

city_id: integer (Optional)

Note: Returning has_online_agents: true means agents are ready for live delivery in this city.


curl --location 'https://sari3.co/api/money-transfer/calculate' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--data '{
    "amount": 100,
    "country_id": 1,
    "city_id": 5
}'
                                    

# Submit Money Transfer

#Send Money

Submit a final transfer request. Amount will be deducted from your wallet balance.

طريقة HTTP: POST

رابط API: https://sari3.co/api/money-transfer/send


معاملات الجسم

office_id: integer (Required)

amount: numeric (Required)

first_name: string

last_name: string

recipient_phone: string

lat: decimal (Optional - Destination Latitude)

lng: decimal (Optional - Destination Longitude)


curl --location 'https://sari3.co/api/money-transfer/send' \
--header 'Authorization: YOUR_BEARER_TOKEN' \
--data '{
    "office_id": 1,
    "amount": 100,
    "first_name": "John",
    "last_name": "Doe",
    "recipient_phone": "+123456789",
    "lat": 33.5138,
    "lng": 36.2765
}'
                                    

# Top Up Order List

#Get Top Up Order List

للحصول على كل قائمة طلبات الشحن اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسي https://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-topup/orders

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

رقم المعاملة (UTR): معرف طلب فريد

price: إجمالي مبلغ الطلب

العملة: عملة المبلغ المدفوع

status: حالة الطلب. 0=>بدء، 1=>مكتمل، 2=>استرداد، 3=>نقص مخزون

معلومات: معلومات طلب الشحن

مراجعة_معلومات_المستخدم: مراجعة المستخدم

تفاصيل_الطلب: مصفوفة كائنات. تفاصيل كل خدمة في الطلب


var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/topUp/order',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
                                            
12345678910111213

import requests

url = "https://sari3.co/api/topUp/order"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
                                            
1234567891011

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/topUp/order', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
                                            
123456789

curl --location 'https://sari3.co/api/topUp/order' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                            
12

require "uri"
require "net/http"

url = URI("BaseURL/topUp/order")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body
                                            
1234567891011

{
    "status": "success",
    "message": {
        "current_page": 1,
        "data": [
            {
                "utr": "O8NYH38WAQW8B",
                "price": 54,
                "currency": "USD",
                "symbol": "$",
                "status": "Wait Sending",
                "dateTime": "2025-03-05T11:59:52.000000Z",
                "order_details": [
                    {
                        "utr": "O8NYH38WAQW8B",
                        "rating": 5,
                        "image": "IMAGE_URL",
                        "discount": 54,
                        "quantity": 1,
                        "name": "Arena Breakout: Infinite Top Up",
                        "service": "500 +10 Bonds",
                        "base_price": 108,
                        "currency": "USD",
                        "symbol": "$",
                        "slug": "arena-breakout-infinite-top-up"
                    }
                ],
                "review_user_info": [
                    {
                        "review": {
                            "comment": "Amazing product!",
                            "rating": 5,
                            "status": "active"
                        }
                    }
                ],
                "informations": {
                    "Server ID": "server-5878",
                    "Server Name": "America"
                }
            }
        ]
    }
}
                                            
12345678910111213141516171819202122232425262728293031323334353637383940

{
    "status": "failed",
    "errors": "Something went wrong"
}
                                            
1234

# Card Order List

#Get Card Order List

للحصول على كل قائمة طلبات البطاقات اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسي https://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-card/orders

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

رقم المعاملة (UTR): معرف طلب فريد

price: إجمالي مبلغ الطلب

العملة: عملة المبلغ المدفوع

status: حالة الطلب. 0=>بدء، 1=>مكتمل، 2=>استرداد، 3=>نقص مخزون

معلومات: معلومات طلب الشحن

مراجعة_معلومات_المستخدم: مراجعة المستخدم

تفاصيل_الطلب: مصفوفة كائنات. تفاصيل كل خدمة في الطلب


var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/card/order',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
                                            
12345678910111213

import requests

url = "https://sari3.co/api/card/order"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
                                            
1234567891011

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/card/order', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
                                            
123456789

curl --location 'https://sari3.co/api/card/order' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                            
12

require "uri"
require "net/http"

url = URI("https://sari3.co/api/card/order")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body
                                            
1234567891011

{
    "status": "success",
    "message": {
        "current_page": 1,
        "data": [
            {
                "utr": "ONS8GNE4BJ884",
                "price": 34.48,
                "currency": "USD",
                "symbol": "$",
                "status": "Complete",
                "dateTime": "2025-03-05T12:02:42.000000Z",
                "order_details": [
                    {
                        "utr": "ONS8GNE4BJ884",
                        "id": 6,
                        "rating": 0,
                        "image": "IMAGE_URL",
                        "card": "Flexepin (CA)",
                        "slug": "flexepin-ca",
                        "service": "Flexepin 20 CAD",
                        "base_price": 12.62,
                        "currency": "USD",
                        "symbol": "$",
                        "discount": 0.38,
                        "quantity": 1,
                        "card_codes": [
                            "FP8796545425"
                        ]
                    }
                ]
            }
        ]
    }
}
                                            
1234567891011121314151617181920212223242526272829303132

{
    "status": "failed",
    "errors": "Something went wrong"
}
                                            
1234

# Campaign API

#جلب الحملة

للحصول على قائمة الحملات اتبع كود المثال وكن حذراً مع المعاملات.

الرابط الأساسي https://sari3.co/api/

طريقة HTTP: GET

رابط API: https://sari3.co/api/get-campaign

API Key: مرر bearer token الخاص بك إلى ترويسة المصادقة GET Bearer

تنسيق الاستجابة: JSON


جسم الاستجابة

معرف: معرف الحملة

name: اسم الحملة

تاريخ_البدء: متى تبدأ الحملة

تاريخ_الانتهاء: متى تنتهي الحملة

شحنات: قائمة خدمات الشحن للحملة

cards: قائمة خدمات البطاقات للحملة


var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://sari3.co/api/get-campaign',
  'headers': {
    'Authorization': 'YOUR_BEARER_TOKEN'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
                                            
12345678910111213

import requests

url = "https://sari3.co/api/get-campaign"

payload = {}
headers = {
  'Authorization': 'YOUR_BEARER_TOKEN'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
                                            
1234567891011

?php

$client = new Client();
$headers = [
  'Authorization' => 'YOUR_BEARER_TOKEN'
];
$request = new Request('GET', 'https://sari3.co/api/get-campaign', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
                                            
123456789

curl --location 'https://sari3.co/api/get-campaign' \
--header 'Authorization: YOUR_BEARER_TOKEN'
                                            
12

require "uri"
require "net/http"

url = URI("https://sari3.co/api/get-campaign")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "YOUR_BEARER_TOKEN"

response = http.request(request)
puts response.read_body
                                            
1234567891011

{
    "status": "success",
    "message": {
        "campaign": {
            "id": 1,
            "name": "Flash Deal",
            "start_date": "2025-03-06",
            "end_date": "2025-03-31",
            "status": 1,
            "created_at": "2025-03-06T04:58:14.000000Z",
            "updated_at": "2025-03-06T04:58:14.000000Z",
            "topups": [
                {
                    "id": 1,
                    "top_up_id": 2,
                    "name": "MICO Live 88 Coins",
                    "price": 2.8,
                    "discount": 5,
                    "discount_type": "percentage",
                    "status": 1,
                    "offered_sell": 0,
                    "max_sell": 0,
                    "old_data": null,
                    "campaign_data": {
                        "price": "2.8",
                        "discount": "8",
                        "discount_type": "percentage",
                        "max_sell": "1000"
                    },
                    "created_at": "2025-03-04T09:57:49.000000Z",
                    "updated_at": "2025-03-06T04:58:15.000000Z",
                    "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/top-up-service/EOPdhKAMgfaPhI1VxN30StKN3xytZI.webp"
                },
                ..
            ],
            "cards": [
                {
                    "id": 2,
                    "card_id": 1,
                    "name": "Honor of Kings 80 Tokens",
                    "price": 2.45,
                    "discount": 1,
                    "discount_type": "percentage",
                    "status": 1,
                    "offered_sell": 0,
                    "max_sell": 0,
                    "old_data": null,
                    "campaign_data": {
                        "price": "2.45",
                        "discount": "15",
                        "discount_type": "percentage",
                        "max_sell": "1000"
                    },
                    "created_at": "2025-03-03T09:28:28.000000Z",
                    "updated_at": "2025-03-06T04:58:16.000000Z",
                    "image_path": "http://192.168.0.123/gamers-arena/gamers/assets/upload/card-service/zEhj4vofwEQIWzzbpiMj5FeOkGzcpl.webp"
                },
                ..
            ]
        }
    }
}
                                            
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152

{
    "status": "failed",
    "errors": "Something went wrong"
}
                                            
1234
Loading..