DOCS

手動付款結算

手動付款結算

在 Zonos Dashboard 以外的地方履行訂單時,按需結算付款。

啟用延遲付款結算後,Zonos 會在訂單下單三天後,或訂單從 Zonos Dashboard 出貨為止(以先發生者為準)自動結算付款。

如果您在 Dashboard 以外的地方履行訂單,可以使用我們的 orderPaymentCapture 變更,在 3 天延遲期或訂單出貨前(以較早者為準)結算付款。

手動結算付款 

若要為訂單結算付款,請呼叫 orderPaymentCapture 變更,並將 orderId 作為輸入參數傳遞。

1mutation manualCapture {
2 orderPaymentCapture(
3 input: { orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc" }
4 ) {
5 id
6 charges {
7 id
8 paymentStatus
9 }
10 }
11}

驗證付款狀態 

訂單可以有下列其中一種狀態:

  • UNPAID
  • PAID
  • PARTIALLY_REFUNDED
  • REFUNDED
  • VOIDED

呼叫結算付款後,您可以查詢該訂單,確認其付款狀態已變更為 PAID。

1query order {
2 order(orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc") {
3 id
4 charges {
5 id
6 paymentStatus
7 }
8 }
9}
GraphQL API ReferenceTypes, inputs, and operations used in this guide
預約演示

這個頁面有幫助嗎?


在此頁面: