מחוברים עכשיו  

/v1/checkout/

GET

/v1/checkout/get_context

#
Public-by-design: same-origin guest payment preparation uses a session-bound anti-forgery token.
דוגמת בקשה (cURL)
curl --get \
  'https://he.appointmenttrader.com/v1/checkout/get_context' \
  --data-urlencode 'key={{API_KEY}}'

ערך מוחזר

JSON
See the shared response schema and synthetic example.
שדות התגובה
שדהסוגחובהתיאור
$checkout_get_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].Payloadobject כן
$.oneOf[0].allOf[1].Payload.csrfstring כןOpaque anti-forgery token bound to the browser session. Synthetic examples never contain a usable token.
$.oneOf[0].allOf[1].Payload.settingsobject כן
$.oneOf[0].allOf[1].Payload.settings.listingboolean כן
$.oneOf[0].allOf[1].Payload.settings.bidboolean כן
$.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/checkout/get_context",
    "RequestUserAlias": "example-user",
    "Payload": {
        "csrf": "FAKE_CSRF_TOKEN",
        "settings": {
            "listing": false,
            "bid": false
        }
    }
}
תיעוד נקודת קצה קריא למכונה
GET

/v1/checkout/get_status

#
Public-by-design: only the originating browser or verified intended buyer can read this attempt.

פרמטרים

שםסוגחובהברירת מחדלתיאור
attempt string כן — Opaque checkout attempt.
דוגמת בקשה (cURL)
curl --get \
  'https://he.appointmenttrader.com/v1/checkout/get_status' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'attempt={{attempt}}'

ערך מוחזר

JSON
See the shared response schema and synthetic example.
שדות התגובה
שדהסוגחובהתיאור
$checkout_get_status_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.attemptstring כן
$.oneOf[0].allOf[1].Payload.expiresAtinteger כן
$.oneOf[0].allOf[1].Payload.serverTimeinteger כן
$.oneOf[0].allOf[1].Payload.flowstring ["listing","bid"] כן
$.oneOf[0].allOf[1].Payload.resumeURLstring כן
$.oneOf[0].allOf[1].Payload.statestring ["prepared","authorized","completing","completed","canceling","canceled","expired","recovery"] כן
$.oneOf[0].allOf[1].Payload.paymentState כן
$.oneOf[0].allOf[1].Payload.paymentState.anyOf[0]string ["requires_payment_method","requires_confirmation","requires_action","processing","requires_capture","canceled","succeeded"] כן
$.oneOf[0].allOf[1].Payload.paymentState.anyOf[1]null כן
$.oneOf[0].allOf[1].Payload.resultURL כן
$.oneOf[0].allOf[1].Payload.resultURL.anyOf[0]string כן
$.oneOf[0].allOf[1].Payload.resultURL.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/checkout/get_status",
    "RequestUserAlias": "example-user",
    "Payload": {
        "attempt": "synthetic-example",
        "expiresAt": 0,
        "serverTime": 0,
        "flow": "listing",
        "resumeURL": "synthetic-example",
        "state": "prepared",
        "paymentState": "requires_payment_method",
        "resultURL": "synthetic-example"
    }
}
תיעוד נקודת קצה קריא למכונה
POST

/v1/checkout/set_cancel

#
Public-by-design: cancellation requires the originating browser's token and attempt ownership.

פרמטרים

שםסוגחובהברירת מחדלתיאור
attempt string כן — Opaque checkout attempt.
csrf string כן — Browser token from get_context. POST required.
דוגמת בקשה (cURL)
curl --request POST \
  'https://he.appointmenttrader.com/v1/checkout/set_cancel' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'attempt={{attempt}}' \
  --data-urlencode 'csrf={{csrf}}'

ערך מוחזר

JSON
See the shared response schema and synthetic example.
שדות התגובה
שדהסוגחובהתיאור
$checkout_set_cancel_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].Payload = true כן
$.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/checkout/set_cancel",
    "RequestUserAlias": "example-user",
    "Payload": true
}
תיעוד נקודת קצה קריא למכונה
POST

/v1/checkout/set_prepare

#
Public-by-design: prepares a session-owned manual-capture payment; never purchases or creates a bid.

פרמטרים

שםסוגחובהברירת מחדלתיאור
payloadJSON string כן — Listing UUID or canonical composer checkout fields and the selected reward.
requestKey string כן — Random 64-character hexadecimal retry identity.
csrf string כן — Browser token from get_context. POST required.
דוגמת בקשה (cURL)
curl --request POST \
  'https://he.appointmenttrader.com/v1/checkout/set_prepare' \
  --data-urlencode 'key={{API_KEY}}' \
  --data-urlencode 'payloadJSON={{payloadJSON}}' \
  --data-urlencode 'requestKey={{requestKey}}' \
  --data-urlencode 'csrf={{csrf}}'

ערך מוחזר

JSON
See the shared response schema and synthetic example.
פרמטרים: payloadJSON
שדהסוגחובהתיאור
payloadJSONstring (application/json) כן
payloadJSONGuestCheckoutPrepareInput (JSON מפוענח) כן
payloadJSON.oneOf[0]object כן
payloadJSON.oneOf[0].listingUUIDstring כן
payloadJSON.oneOf[0].expectedAmountinteger כן
payloadJSON.oneOf[1]object כןCanonical fields must match the session-owned frozen composer snapshot. composersnapshot is an opaque token, not serialized request content. expectedAmount is the displayed total in USD cents; bidamount is the displayed principal in the active currency. Unknown fields are discarded.
payloadJSON.oneOf[1].lidDatabaseInteger כןInteger value; legacy MySQL reads may serialize it as a numeric string.
payloadJSON.oneOf[1].lid.oneOf[0]integer כן
payloadJSON.oneOf[1].lid.oneOf[1]string כן
payloadJSON.oneOf[1].inventorytypeidDatabaseInteger כןInteger value; legacy MySQL reads may serialize it as a numeric string.
payloadJSON.oneOf[1].inventorytypeid.oneOf[0]integer כן
payloadJSON.oneOf[1].inventorytypeid.oneOf[1]string כן
payloadJSON.oneOf[1].unitDatabaseInteger כןInteger value; legacy MySQL reads may serialize it as a numeric string.
payloadJSON.oneOf[1].unit.oneOf[0]integer כן
payloadJSON.oneOf[1].unit.oneOf[1]string כן
payloadJSON.oneOf[1].bidamountDatabaseNumber כןNumeric value; MySQL reads can serialize numbers as numeric strings.
payloadJSON.oneOf[1].bidamount.oneOf[0]number כן
payloadJSON.oneOf[1].bidamount.oneOf[1]string כן
payloadJSON.oneOf[1].startdatestring כן
payloadJSON.oneOf[1].enddatestring כן
payloadJSON.oneOf[1].starttimestring לא
payloadJSON.oneOf[1].enddtimestring לא
payloadJSON.oneOf[1].exactstarttimestring כן
payloadJSON.oneOf[1].exactendtimestring כן
payloadJSON.oneOf[1].cuidlstring לא
payloadJSON.oneOf[1].composersnapshotstring כן
payloadJSON.oneOf[1].atv2ComposerDraftInstanceKeystring לא
payloadJSON.oneOf[1].atv2ComposerDraftViewerKeystring לא
payloadJSON.oneOf[1].uridDatabaseInteger לאInteger value; legacy MySQL reads may serialize it as a numeric string.
payloadJSON.oneOf[1].urid.oneOf[0]integer לא
payloadJSON.oneOf[1].urid.oneOf[1]string לא
payloadJSON.oneOf[1].composeruridDatabaseInteger לאInteger value; legacy MySQL reads may serialize it as a numeric string.
payloadJSON.oneOf[1].composerurid.oneOf[0]integer לא
payloadJSON.oneOf[1].composerurid.oneOf[1]string לא
payloadJSON.oneOf[1].premiumbid לאPresence selects the premium fee; omit entirely for standard pricing.
payloadJSON.oneOf[1].premiumbid.anyOf[0]string לא
payloadJSON.oneOf[1].premiumbid.anyOf[1]boolean לא
payloadJSON.oneOf[1].premiumbid.anyOf[2]integer לא
payloadJSON.oneOf[1].expectedAmountinteger כן
שדות התגובה
שדהסוגחובהתיאור
$checkout_set_prepare_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.attemptstring כן
$.oneOf[0].allOf[1].Payload.expiresAtinteger כן
$.oneOf[0].allOf[1].Payload.serverTimeinteger כן
$.oneOf[0].allOf[1].Payload.flowstring ["listing","bid"] כן
$.oneOf[0].allOf[1].Payload.resumeURLstring כן
$.oneOf[0].allOf[1].Payload.clientSecretstring כן
$.oneOf[0].allOf[1].Payload.paymentIntentIDstring כן
$.oneOf[0].allOf[1].Payload.paymentStatestring ["requires_payment_method","requires_confirmation","requires_action","processing","requires_capture","canceled","succeeded"] כן
$.oneOf[0].allOf[1].Payload.amountinteger כןTotal payable USD cents including the applicable publishing fee.
$.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/checkout/set_prepare",
    "RequestUserAlias": "example-user",
    "Payload": {
        "attempt": "synthetic-example",
        "expiresAt": 0,
        "serverTime": 0,
        "flow": "listing",
        "resumeURL": "synthetic-example",
        "clientSecret": "pi_FAKE_secret_PLACEHOLDER",
        "paymentIntentID": "pi_FAKE",
        "paymentState": "requires_payment_method",
        "amount": 0
    }
}
תיעוד נקודת קצה קריא למכונה