For the complete documentation index, see llms.txt. This page is also available as Markdown.

حذف كيان معتمد

حذف كيان معتمد

DELETE https://api.iafcertsearch.org/api/client/v1/mncb/ce/{company_id}

يتيح هذا النقطة النهائية حذف كيان معتمد وشهاداته.

Headers

Name
Type
Description

Content-Type*

String

application/json

x-http-authorization*

String

مفتاح واجهة البرمجة الذي تم الحصول عليه من https://iafcertsearch.org/import-management/api-integration

مثال:

x-http-authorization: <<مفتاح الواجهة>>

{
  "data": 1
}
{
    "error": true,
    "timestamp": number (الوقت الزمني الفائق),
    "elapse": number,
    "errors": {
      "message": "تم استخدام رمز جلسة غير صالح.",
      "code": "رمز الجلسة غير الصالح"
    }
}
{
  "error": true,
  "timestamp": number (الوقت الزمني الفائق),
  "elapse": number,
  "errors": {
    "message": "لا يمكن العثور على المورد المطلوب ولكن قد يكون متاحًا مرة أخرى في المستقبل. الطلبات التالية من العميل مسموح بها.",
    "code": "غير_موجود"
  }
}

لعرض مثال على بيانات الاستجابة، انقر على السهم الأيمن في الجانب الأيمن من وصف الاستجابة.

يمكنك أيضًا استخدام https://api.sandbox.iafcertsearch.org/api/client/v1/mncb/ce/{company_id} لاختباره على خادم الاختبار الرملي (Sandbox).

تفضل بالنظر إلى كيفية استدعاء هذه الطريقة:

curl --location -g --request DELETE 'https://api.iafcertsearch.org/api/client/v1/mncb/ce/{company_id}' \
--header 'Content-Type: application/json' \
--header 'x-http-authorization: <<API_KEY>>'
require "uri"
require "json"
require "net/http"

url = URI("https://api.iafcertsearch.org/api/client/v1/mncb/ce/{company_id}")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Content-Type"] = "application/json"
request["x-http-authorization"] = "<<API_KEY>>"

response = https.request(request)
puts response.read_body
import http.client
import json

conn = http.client.HTTPSConnection("api.iafcertsearch.org")
payload = ''
headers = {
  'Content-Type': 'application/json',
  'x-http-authorization': '<<API_KEY>>'
}
conn.request("DELETE", "/api/client/v1/mncb/ce/{company_id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Last updated