wire docs

Object schemas

Wire API-ийн бүх объектын талбарын бүтэц — нэг хуудсанд.

API-ийн буцаадаг болон хүлээж авдаг бүх объектын талбарын бүтэц — нийт 11 объект. Заавал баганын ✓ нь тухайн талбар заавал байхыг заана. Хүсэлт, хариу бүрийн бодит жишээг API reference-ийн endpoint хуудсаас үз.

ListBase

ТалбарТөрөлЗаавалТайлбар
object"list"
urlstring
has_moreboolean

Deleted

ТалбарТөрөлЗаавалТайлбар
idstring
objectstring
deletedtrue

Error

ТалбарТөрөлЗаавалТайлбар
errorobject

PaymentIntentCreate

ТалбарТөрөлЗаавалТайлбар
amountintegerMinor units (MNT ₮).
currencystringV1 supports MNT only.
descriptionstringГүйлгээний утга — төлбөр төлөгчид харагдах тайлбар. Max 500 тэмдэгт.
automatic_operatorboolean
allowed_operatorsstring[]
metadataobject

PaymentIntent

ТалбарТөрөлЗаавалТайлбар
idstring
object"payment_intent"
amountinteger
currencystring
descriptionstringГүйлгээний утга — төлбөр төлөгчид харагдах тайлбар.
status"new" | "requires_payment_method" | "requires_action" | "requires_capture" | "processing" | "succeeded" | "canceled"
client_secretstring
automatic_operatorboolean
allowed_operatorsstring[]
selected_operatorstring | null
next_actionobject | null
metadataobject
livemodeboolean
createdinteger
expires_atinteger | null

Charge

ТалбарТөрөлЗаавалТайлбар
idstring
object"charge"
payment_intentstring
operatorstring
operator_charge_idstring | null
status"pending" | "succeeded" | "failed"
amountinteger
feeinteger
amount_refundedinteger
failure_codestring | null
failure_messagestring | null
livemodeboolean
createdinteger

Event

ТалбарТөрөлЗаавалТайлбар
idstring
object"event"
typestring
api_versionstring
dataobjectThe event payload (e.g. the affected resource).
livemodeboolean
createdinteger

WebhookEndpoint

ТалбарТөрөлЗаавалТайлбар
idstring
object"webhook_endpoint"
urlstring
enabled_eventsstring[]
status"enabled" | "disabled"
livemodeboolean
createdinteger

WebhookEndpointWithSecret

ТалбарТөрөлЗаавалТайлбар
idstring
object"webhook_endpoint"
urlstring
enabled_eventsstring[]
status"enabled" | "disabled"
livemodeboolean
createdinteger
secretstringSigning secret (whsec_...), returned only at creation.

OperatorConnection

ТалбарТөрөлЗаавалТайлбар
idstring
object"operator_connection"
operatorstring
mode"byo" | "reseller"
statusstring
capabilitiesstring[]
createdinteger

OperatorConnectionTest

ТалбарТөрөлЗаавалТайлбар
object"operator_connection_test"
operatorstring
statusstring
capabilitiesstring[]

Энэ хуудсанд