DOCS

시작하기

Collect 시작하기

delivery 전 consignee로부터 duty, tax, fee를 수금합니다.

작동 방식 

Zonos Collect는 기존 landed cost workflow에 통합됩니다. landedCostCalculateWorkflow mutation에 quoteType: COLLECT를 추가하면 standard landed cost calculation과 동일하게 작동하며 동일한 data를 반환하지만 Collect workflow도 trigger합니다.

process는 simple합니다: request에 quoteType: COLLECT를 specify하면 system이 payment cart를 자동 생성하고 destination party email로 cart link를 send하며 payment 완료 시 quote를 order로 convert합니다.

Collect quote 생성 

이미 familiar한 GraphQL workflow에 parameter 하나만 추가합니다. landedCostCalculateWorkflow input에 quoteType: COLLECT를 추가하면 기존 functionality를 유지하면서 Collect process 전체를 trigger합니다. response links field는 checkout session URL을 반환하며 payee follow-up에 store하여 사용할 수 있습니다.

1mutation CollectQuote(
2$parties: [PartyCreateWorkflowInput!]!
3$items: [ItemCreateWorkflowInput!]!
4$shipmentRating: ShipmentRatingCreateWorkflowInput!
5$landedCost: LandedCostCalculateWorkflowInput!
6) {
7 partyCreateWorkflow(input: $parties) {
8 type
9 id
10 organization
11 }
12 
13 itemCreateWorkflow(input: $items) {
14 id
15 amount
16 quantity
17 description
18 }
19 
20 cartonizeWorkflow {
21 id
22 }
23 
24 shipmentRatingCreateWorkflow(input: $shipmentRating) {
25 id
26 amount
27 }
28 
29 landedCostCalculateWorkflow(input: $landedCost) {
30 id
31 landedCostGuaranteeCode
32 links {
33 key
34 url
35 }
36 amountSubtotals {
37 duties
38 fees
39 taxes
40 landedCostTotal
41 }
42 fees {
43 amount
44 currency
45 type
46 item {
47 productId
48 }
49 }
50 }
51}

Webhook

quote가 order로 convert되면 notification을 받도록 ORDER_CREATED webhook을 configure합니다:

1mutation CreateOrderWebhook($input: WebhookCreateInput!) {
2 webhookCreate(input: $input) {
3 id
4 status
5 url
6 }
7}

payload에 type field가 포함됩니다. Collect order만 처리하려면 payload.type === "COLLECT"를 확인합니다:

javascript

if (payload.type === 'COLLECT') {
}

Dashboard management 

Quote 및 order: Collect quote 및 order는 Dashboard에 „COLLECT" badge로 표시됩니다. quote type으로 filter하여 collect-specific quote를 view/manage하고 payment status를 monitor할 수 있습니다.

Email branding: DashboardSettingsEmail Templates에서 Collect payment cart email branding을 adjust합니다

Consignee experience 

Collect quote를 생성하면 customer는 secure payment link가 포함된 automated email을 받습니다. payment cart는 product pricing을 private로 유지하면서 duty, tax, fee를 full transparency로 표시합니다.

payment process, 지원 country 및 language, customization option에 대한 complete detail은 Consignee experience guide를 참조하세요.

이 페이지가 도움이 되었나요?