متصلون الآن  

/v1/infractions/

Private user-infraction reporting, staff adjudication and bounty administration.
GET

/v1/infractions/get_bounty_estimate

#
Estimate the maximum USD bounty for a signed-in reporter using the current type, reported user's penalty permission and reporter's bounty rate. Assumes a full contribution share; staff decides the actual outcome and may award no bounty. Does not create a report or financial entry.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
typeID int نعم — Active infraction type.
userAlias string نعم — Reported user's alias. Self-reporting is not allowed.
incidentDate string لا "" Incident date in YYYY-MM-DD format; empty uses today for the estimate until a date is selected.
subjectTransactionSource string لا "" Required for transaction-based types: transaction or custom_article.
subjectTransactionID int لا 0 Required canonical transaction ID for transaction-based types.
مثال طلب (cURL)
curl --get \
  'https://ar.appointmenttrader.com/v1/infractions/get_bounty_estimate' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'typeID={{typeID}}' \
  --data-urlencode 'userAlias={{userAlias}}' \
  --data-urlencode 'incidentDate={{incidentDate}}' \
  --data-urlencode 'subjectTransactionSource={{subjectTransactionSource}}' \
  --data-urlencode 'subjectTransactionID={{subjectTransactionID}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_get_bounty_estimate_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].Payloadobject نعم
$.oneOf[0].allOf[1].Payload.amountCentsinteger نعم
$.oneOf[0].allOf[1].Payload.currency = "USD" نعم
$.oneOf[0].allOf[1].Payload.formattedAmountstring نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/get_bounty_estimate",
    "RequestUserAlias": "example-user",
    "Payload": {
        "amountCents": 0,
        "currency": "USD",
        "formattedAmount": "synthetic-example"
    }
}
توثيق نقطة النهاية القابل للقراءة آليًا
GET

/v1/infractions/get_my_reports

#
Get only reports submitted by the acting user, including when the caller is staff. Reports against the caller are excluded. Merged reports retain their private chat and use the current case status and classification.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
start int لا 0 Non-negative offset; negative values use zero.
مثال طلب (cURL)
curl --get \
  'https://ar.appointmenttrader.com/v1/infractions/get_my_reports' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'start={{start}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_get_my_reports_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].Payloadobject نعم
$.oneOf[0].allOf[1].Payload.reportsarray نعم
$.oneOf[0].allOf[1].Payload.reports[]object لا
$.oneOf[0].allOf[1].Payload.reports[].reportIDinteger نعم
$.oneOf[0].allOf[1].Payload.reports[].caseIDinteger نعم
$.oneOf[0].allOf[1].Payload.reports[].reportedUserIDinteger نعم
$.oneOf[0].allOf[1].Payload.reports[].typeNamestring نعم
$.oneOf[0].allOf[1].Payload.reports[].createdDatestring نعم
$.oneOf[0].allOf[1].Payload.reports[].statusstring ["Open","Confirmed","Warning","Rejected","Merged"] نعم
$.oneOf[0].allOf[1].Payload.reports[].chatIDinteger نعم
$.oneOf[0].allOf[1].Payload.startinteger نعم
$.oneOf[0].allOf[1].Payload.hasMoreboolean نعم
$.oneOf[0].allOf[1].Payload.nextStart نعم
$.oneOf[0].allOf[1].Payload.nextStart.anyOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.nextStart.anyOf[1]null نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/get_my_reports",
    "RequestUserAlias": "example-user",
    "Payload": {
        "reports": [],
        "start": 0,
        "hasMore": false,
        "nextStart": 0
    }
}
توثيق نقطة النهاية القابل للقراءة آليًا
GET

/v1/infractions/get_options

#
Get reportable types or staff configuration, numeric permissions and audit history.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
admin bool لا false Include inactive types and administration data; requires RefundAppointments.
مثال طلب (cURL)
curl --get \
  'https://ar.appointmenttrader.com/v1/infractions/get_options' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'admin={{admin}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_get_options_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].Payloadobject نعم
$.oneOf[0].allOf[1].Payload.typesarray نعم
$.oneOf[0].allOf[1].Payload.types[]object لا
$.oneOf[0].allOf[1].Payload.types[].IDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.types[].ID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.types[].ID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.types[].Slugstring نعم
$.oneOf[0].allOf[1].Payload.types[].Statusstring ["Draft","Active","Retired"] نعم
$.oneOf[0].allOf[1].Payload.types[].SortOrderDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.types[].SortOrder.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.types[].SortOrder.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.types[].CurrentVersionID نعم
$.oneOf[0].allOf[1].Payload.types[].CurrentVersionID.anyOf[0]DatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.types[].CurrentVersionID.anyOf[0].oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.types[].CurrentVersionID.anyOf[0].oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.types[].CurrentVersionID.anyOf[1]null نعم
$.oneOf[0].allOf[1].Payload.types[].CreatedDatestring نعم
$.oneOf[0].allOf[1].Payload.types[].VersionNumberDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.types[].VersionNumber.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.types[].VersionNumber.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.types[].configobject نعم
$.oneOf[0].allOf[1].Payload.types[].config.namestring نعم
$.oneOf[0].allOf[1].Payload.types[].config.descriptionstring نعم
$.oneOf[0].allOf[1].Payload.types[].config.evidenceGuidancestring نعم
$.oneOf[0].allOf[1].Payload.types[].config.subjectstring ["seller","transaction","listing"] نعم
$.oneOf[0].allOf[1].Payload.types[].config.referenceRequired نعم
$.oneOf[0].allOf[1].Payload.types[].config.referenceRequired.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].config.referenceRequired.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].config.penaltyModestring ["warning","fixed","annual_sales","transaction_amount"] نعم
$.oneOf[0].allOf[1].Payload.types[].config.penaltyPermissionstring نعم
$.oneOf[0].allOf[1].Payload.types[].config.bountyEnabled نعم
$.oneOf[0].allOf[1].Payload.types[].config.bountyEnabled.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].config.bountyEnabled.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].config.bountyBasisPointsinteger نعم
$.oneOf[0].allOf[1].Payload.types[].config.buyerPosingAllowed نعم
$.oneOf[0].allOf[1].Payload.types[].config.buyerPosingAllowed.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].config.buyerPosingAllowed.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[0]object نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[0].*object لا
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[0].*.namestring نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[0].*.descriptionstring نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[0].*.evidenceGuidancestring نعم
$.oneOf[0].allOf[1].Payload.types[].config.translations.anyOf[1] = [] نعم
$.oneOf[0].allOf[1].Payload.types[].config.seedKeystring لا
$.oneOf[0].allOf[1].Payload.types[].config.penaltyMultiplier = 3 لا
$.oneOf[0].allOf[1].Payload.types[].defaultPenaltyValue نعم
$.oneOf[0].allOf[1].Payload.types[].defaultPenaltyValue.anyOf[0]DatabaseNumber نعمNumeric value; MySQL reads can serialize numbers as numeric strings.
$.oneOf[0].allOf[1].Payload.types[].defaultPenaltyValue.anyOf[0].oneOf[0]number نعم
$.oneOf[0].allOf[1].Payload.types[].defaultPenaltyValue.anyOf[0].oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.types[].defaultPenaltyValue.anyOf[1]null نعم
$.oneOf[0].allOf[1].Payload.types[].reporterBountyBasisPointsinteger نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfigobject لا
$.oneOf[0].allOf[1].Payload.types[].rawConfig.namestring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.descriptionstring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.evidenceGuidancestring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.subjectstring ["seller","transaction","listing"] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.referenceRequired نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.referenceRequired.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.referenceRequired.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.penaltyModestring ["warning","fixed","annual_sales","transaction_amount"] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.penaltyPermissionstring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.bountyEnabled نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.bountyEnabled.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.bountyEnabled.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.bountyBasisPointsinteger نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.buyerPosingAllowed نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.buyerPosingAllowed.oneOf[0]boolean نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.buyerPosingAllowed.oneOf[1]integer [0,1] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[0]object نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[0].*object لا
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[0].*.namestring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[0].*.descriptionstring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[0].*.evidenceGuidancestring نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.translations.anyOf[1] = [] نعم
$.oneOf[0].allOf[1].Payload.types[].rawConfig.seedKeystring لا
$.oneOf[0].allOf[1].Payload.types[].rawConfig.penaltyMultiplier = 3 لا
$.oneOf[0].allOf[1].Payload.permissionsarray نعم
$.oneOf[0].allOf[1].Payload.permissions[]object لا
$.oneOf[0].allOf[1].Payload.permissions[].Namestring نعم
$.oneOf[0].allOf[1].Payload.permissions[].Descriptionstring نعم
$.oneOf[0].allOf[1].Payload.permissions[].DefaultSettingPayloadstring نعم
$.oneOf[0].allOf[1].Payload.overridesarray نعم
$.oneOf[0].allOf[1].Payload.overrides[]object لا
$.oneOf[0].allOf[1].Payload.overrides[].IDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.overrides[].ID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.overrides[].ID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.overrides[].UserIDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.overrides[].UserID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.overrides[].UserID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.overrides[].TypeIDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.overrides[].TypeID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.overrides[].TypeID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.overrides[].BountyBasisPointsDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.overrides[].BountyBasisPoints.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.overrides[].BountyBasisPoints.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.overrides[].UpdatedByUserIDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.overrides[].UpdatedByUserID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.overrides[].UpdatedByUserID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.overrides[].LastUpdateDatestring نعم
$.oneOf[0].allOf[1].Payload.auditarray نعم
$.oneOf[0].allOf[1].Payload.audit[]object لا
$.oneOf[0].allOf[1].Payload.audit[].IDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.audit[].ID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.audit[].ID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.audit[].CaseID = null نعم
$.oneOf[0].allOf[1].Payload.audit[].TypeID نعم
$.oneOf[0].allOf[1].Payload.audit[].TypeID.anyOf[0]DatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.audit[].TypeID.anyOf[0].oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.audit[].TypeID.anyOf[0].oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.audit[].TypeID.anyOf[1]null نعم
$.oneOf[0].allOf[1].Payload.audit[].ActorUserIDDatabaseInteger نعمInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.audit[].ActorUserID.oneOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.audit[].ActorUserID.oneOf[1]string نعم
$.oneOf[0].allOf[1].Payload.audit[].EventNamestring نعم
$.oneOf[0].allOf[1].Payload.audit[].Payloadstring (application/json) نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload (JSON بعد فك الترميز) نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[0]object نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[0].versionIDinteger نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[0].statusstring ["Draft","Active","Retired"] نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[0].sortOrderinteger نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[1]object نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[1].hunterIDinteger نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[1].basisPoints نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[1].basisPoints.anyOf[0]integer نعم
$.oneOf[0].allOf[1].Payload.audit[].Payload.oneOf[1].basisPoints.anyOf[1]null نعم
$.oneOf[0].allOf[1].Payload.audit[].CreatedDatestring نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/get_options",
    "RequestUserAlias": "example-user",
    "Payload": {
        "types": [],
        "permissions": [],
        "overrides": [],
        "audit": []
    }
}
توثيق نقطة النهاية القابل للقراءة آليًا
GET

/v1/infractions/get_report_context

#
Resolve report context from a listing, participant-owned transaction, accessible chat or reported user. Chat targets use structured context or the sole other participant; ambiguous groups leave the user unselected.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
listingID int لا 0 Listing identifier, or zero.
transactionID int لا 0 Transaction identifier, or zero.
chatID int لا 0 Source chat accessible to the reporter, or zero.
userID int لا 0 Reported user to preselect, or zero.
subjectTransactionSource string لا "" Optional exact transaction source, transaction or custom_article; does not alter the reported user.
subjectTransactionID int لا 0 Canonical transaction ID paired with its source.
مثال طلب (cURL)
curl --get \
  'https://ar.appointmenttrader.com/v1/infractions/get_report_context' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'listingID={{listingID}}' \
  --data-urlencode 'transactionID={{transactionID}}' \
  --data-urlencode 'chatID={{chatID}}' \
  --data-urlencode 'userID={{userID}}' \
  --data-urlencode 'subjectTransactionSource={{subjectTransactionSource}}' \
  --data-urlencode 'subjectTransactionID={{subjectTransactionID}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_get_report_context_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].PayloadInfractionReportContext نعم
$.oneOf[0].allOf[1].Payload.oneOf[0]object نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].chatIDinteger لا
$.oneOf[0].allOf[1].Payload.oneOf[0].chatNamestring لا
$.oneOf[0].allOf[1].Payload.oneOf[0].listingID لا
$.oneOf[0].allOf[1].Payload.oneOf[0].listingID.anyOf[0]DatabaseInteger لاInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.oneOf[0].listingID.anyOf[0].oneOf[0]integer لا
$.oneOf[0].allOf[1].Payload.oneOf[0].listingID.anyOf[0].oneOf[1]string لا
$.oneOf[0].allOf[1].Payload.oneOf[0].listingID.anyOf[1]null لا
$.oneOf[0].allOf[1].Payload.oneOf[0].transactionIDDatabaseInteger لاInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.oneOf[0].transactionID.oneOf[0]integer لا
$.oneOf[0].allOf[1].Payload.oneOf[0].transactionID.oneOf[1]string لا
$.oneOf[0].allOf[1].Payload.oneOf[0].sellerIDDatabaseInteger لاInteger value; legacy MySQL reads may serialize it as a numeric string.
$.oneOf[0].allOf[1].Payload.oneOf[0].sellerID.oneOf[0]integer لا
$.oneOf[0].allOf[1].Payload.oneOf[0].sellerID.oneOf[1]string لا
$.oneOf[0].allOf[1].Payload.oneOf[0].sellerAliasstring لا
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction لا
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0]object لا
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].sourcestring ["transaction","custom_article"] نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].idinteger نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].amountCentsinteger نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].datestring نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].labelstring نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].statusstring ["PENDING","COMPLETED","RECORDED"] نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[0].formattedAmountstring نعم
$.oneOf[0].allOf[1].Payload.oneOf[0].subjectTransaction.anyOf[1]null لا
$.oneOf[0].allOf[1].Payload.oneOf[1] = [] نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/get_report_context",
    "RequestUserAlias": "example-user",
    "Payload": []
}
توثيق نقطة النهاية القابل للقراءة آليًا
GET

/v1/infractions/get_report_transactions

#
Resolve an exact transaction reference for a signed-in reporter, regardless of ownership. Staff verifies the connection to the reported user. Only pending/completed marketplace transactions and non-deleted recorded custom articles with valid amounts are returned.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
referenceType string نعم — post_link, bid, appointment, transaction, or custom_article.
referenceID int لا 0 Exact identifier in the selected namespace; positive except for post_link, which uses postLink.
postLink string لا "" AppointmentTrader post URL or root-relative post path, required for post_link. Resolves the viewable post's stored bid association without fetching the URL. Supports /posts/{id} and the v2 newsfeed postId route.
مثال طلب (cURL)
curl --get \
  'https://ar.appointmenttrader.com/v1/infractions/get_report_transactions' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'referenceType={{referenceType}}' \
  --data-urlencode 'referenceID={{referenceID}}' \
  --data-urlencode 'postLink={{postLink}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_get_report_transactions_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].Payloadobject نعم
$.oneOf[0].allOf[1].Payload.transactionsarray نعم
$.oneOf[0].allOf[1].Payload.transactions[]object لا
$.oneOf[0].allOf[1].Payload.transactions[].sourcestring ["transaction","custom_article"] نعم
$.oneOf[0].allOf[1].Payload.transactions[].idinteger نعم
$.oneOf[0].allOf[1].Payload.transactions[].amountCentsinteger نعم
$.oneOf[0].allOf[1].Payload.transactions[].datestring نعم
$.oneOf[0].allOf[1].Payload.transactions[].labelstring نعم
$.oneOf[0].allOf[1].Payload.transactions[].statusstring ["PENDING","COMPLETED","RECORDED"] نعم
$.oneOf[0].allOf[1].Payload.transactions[].formattedAmountstring نعم
$.oneOf[0].allOf[1].Payload.hasMoreboolean نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/get_report_transactions",
    "RequestUserAlias": "example-user",
    "Payload": {
        "transactions": [],
        "hasMore": false
    }
}
توثيق نقطة النهاية القابل للقراءة آليًا
POST

/v1/infractions/set_report

#
Submit a private infraction report with optional uploaded images, videos or PDFs. Attachments and later evidence-chat uploads are linked to the report and visible only to its reporter and authorized reviewers.

المعلمات

الاسمالنوعمطلوبالافتراضيالوصف
submissionKey string نعم — Stable unique retry identifier, 16-80 alphanumeric, underscore or hyphen characters.
reportJson string نعم — JSON containing typeID, userID or userAlias, incidentDate (YYYY-MM-DD), required description, optional legacy evidence text, mediaIDs [owned ATMedia IDs], references [{type: seller|transaction|listing|chat|custom_article,id}], and subjectTransactionSource/subjectTransactionID. Transaction-based types require exactly one canonical source/ID pair at submission; other internal references are optional; staff must verify configured required references before approving an adverse finding. Chat references require the reporter's current access and remain private to the reporter and case reviewers. Legacy sellerID/sellerAlias are accepted when neither canonical user field is supplied.
isWritingRequest bool لا false Must be true to submit.
مثال طلب (cURL)
curl --request POST \
  'https://ar.appointmenttrader.com/v1/infractions/set_report' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'submissionKey={{submissionKey}}' \
  --data-urlencode 'reportJson={{reportJson}}' \
  --data-urlencode 'isWritingRequest={{isWritingRequest}}'

القيمة المُرجعة

JSON
See the shared response schema and synthetic example.
المعلمات: reportJson
الحقلالنوعمطلوبالوصف
reportJsonstring (application/json) نعم
reportJsonobject (JSON بعد فك الترميز) نعم
reportJson.userIDinteger لا
reportJson.userAliasstring لا
reportJson.sellerIDinteger لا
reportJson.sellerAliasstring لا
reportJson.incidentDatestring نعم
reportJson.descriptionstring نعم
reportJson.evidencestring لا
reportJson.referencesarray لا
reportJson.references[]object لا
reportJson.references[].typestring ["seller","transaction","listing","chat","custom_article"] نعم
reportJson.references[].idinteger نعم
reportJson.mediaIDsarray لا
reportJson.mediaIDs[]DatabaseInteger لاInteger value; legacy MySQL reads may serialize it as a numeric string.
reportJson.mediaIDs[].oneOf[0]integer لا
reportJson.mediaIDs[].oneOf[1]string لا
reportJson.typeIDinteger نعم
reportJson.subjectTransactionSourcestring ["transaction","custom_article"] لا
reportJson.subjectTransactionIDinteger لا
حقول الاستجابة
الحقلالنوعمطلوبالوصف
$infractions_set_report_Response نعم
$.oneOf[0] نعم
$.oneOf[0].allOf[0]object نعم
$.oneOf[0].allOf[0].RequestUserAliasstring نعم
$.oneOf[0].allOf[0].RequestPathstring | null نعم
$.oneOf[0].allOf[0].RequestStatus = "Succeeded" نعم
$.oneOf[0].allOf[0].ResponseCodeinteger نعم
$.oneOf[0].allOf[0].ResponseMessageAPIResponseMessage نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1]array نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2]object نعم
$.oneOf[0].allOf[0].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[0].allOf[0].RequestImpersonatedByUserAliasstring لا
$.oneOf[0].allOf[1]object نعم
$.oneOf[0].allOf[1].Payloadobject نعم
$.oneOf[0].allOf[1].Payload.caseIDinteger نعم
$.oneOf[0].allOf[1].Payload.chatIDinteger نعم
$.oneOf[1]object نعم
$.oneOf[1].RequestUserAliasstring نعم
$.oneOf[1].RequestPathstring | null نعم
$.oneOf[1].RequestStatus = "Failed" نعم
$.oneOf[1].ResponseCodeinteger نعم
$.oneOf[1].ResponseMessageAPIResponseMessage نعم
$.oneOf[1].ResponseMessage.oneOf[0]string | number | boolean | null نعم
$.oneOf[1].ResponseMessage.oneOf[1]array نعم
$.oneOf[1].ResponseMessage.oneOf[1][]APIResponseMessage لا
$.oneOf[1].ResponseMessage.oneOf[2]object نعم
$.oneOf[1].ResponseMessage.oneOf[2].*APIResponseMessage لا
$.oneOf[1].RequestImpersonatedByUserAliasstring لا
مثال استجابة
{
    "RequestStatus": "Succeeded",
    "ResponseCode": 100,
    "ResponseMessage": "Synthetic success example.",
    "RequestPath": "/v1/infractions/set_report",
    "RequestUserAlias": "example-user",
    "Payload": {
        "caseID": 0,
        "chatID": 0
    }
}
توثيق نقطة النهاية القابل للقراءة آليًا