税関の詳細を取得

出荷の準備のために注文の詳細を取得します。

GraphQL

あなたがZonosのパートナーであり、顧客があなたのプラットフォームを使用して出荷を行っている場合、注文の詳細についてZonosに問い合わせることができます。これらの詳細は、運送業者へのラベルリクエストで使用され、出荷に対してZonosが保証する関税および税金が評価されるために使用される詳細と同じであることを確認するために使用できます。税ID、アイテム(HSコードや税関の説明を含む)、および関税および税金の請求先アカウント番号に関する詳細を返します。

税関の詳細を取得するためにZonosに問い合わせる 

以下の手順に従って、顧客が出荷を作成する際に使用できる税関の詳細を取得できるようにします。

1

顧客が自分のZonos API資格情報を入力できるようにする

Zonos APIcredentialTokenによってアクセス可能です。あなたのプラットフォームは、顧客Zonos Dashboardから自分のcredentialTokenを入力できるようにする必要があります。ここから、顧客の代理としてZonosにリクエストを行うことができます。

2

税関の詳細をクエリする

出荷を作成するために必要な税関の詳細を取得するには、以下のクエリを使用します。orderIdには、Zonosの注文IDまたは、あなたのシステムにすでに存在する可能性のあるaccountOrderNumberを使用できます。

クエリ

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
query {
  customsSpecByReference(
    referenceId: "order_d8d0893b-cac5-4759-8842-bef4a5abbacf"
  ) {
    id
    currencyCode
    amountSubtotals {
      items
      shipping
    }
    reasonForExport
    incoterm
    declarationStatement
    attributes {
      type
      value
    }
    serviceLevel {
      name
      code
      carrier {
        name
        code
      }
    }
    parties {
      id
      type
      person {
        companyName
        firstName
        lastName
        email
        phone
      }
      location {
        countryCode
        line1
        locality
        postalCode
        administrativeAreaCode
        administrativeArea
      }
    }
    customsItems {
      id
      amount
      quantity
      hsCode
      hsCodeSource
      description
      countryOfOrigin
      items {
        id
        amount
        currencyCode
        quantity
      }
    }
  }
}

応答

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
  "data": {
    "customsSpecByReference": {
      "id": "customs_spec_0jnbyj1fc2dhv",
      "currencyCode": "GBP",
      "amountSubtotals": {
        "items": 128.42,
        "shipping": 16.05
      },
      "reasonForExport": "NOT_FOR_RESALE",
      "incoterm": "DAP",
      "declarationStatement": null,
      "attributes": [
        {
          "type": "GST",
          "value": "1234567890"
        }
      ],
      "serviceLevel": null,
      "parties": [
        {
          "id": "party_02ca9b01-341a-450e-bff4-8bcd9c799c67",
          "type": "PAYOR",
          "person": {
            "companyName": "Test",
            "firstName": "firstName",
            "lastName": "lastName",
            "email": "test@gmail.com",
            "phone": "5022303021"
          },
          "location": {
            "countryCode": "GB",
            "line1": "40 Stone Street",
            "locality": "Craigton",
            "postalCode": "DD5 7JE",
            "administrativeAreaCode": null,
            "administrativeArea": null
          }
        },
        {
          "id": "party_7f22f3b2-2f4d-4f82-a13f-2688397b8ee6",
          "type": "ORIGIN",
          "person": null,
          "location": {
            "countryCode": "US",
            "line1": "215 test st",
            "locality": "St George",
            "postalCode": "84770",
            "administrativeAreaCode": "UT",
            "administrativeArea": "Utah"
          }
        },
        {
          "id": "party_604ee39f-369e-458a-b3e3-2958dec42f35",
          "type": "DESTINATION",
          "person": {
            "companyName": "test",
            "firstName": "firstName",
            "lastName": "lastName",
            "email": "test@gmail.com",
            "phone": "5022303021"
          },
          "location": {
            "countryCode": "GB",
            "line1": "40 Stone Street",
            "locality": "Craigton",
            "postalCode": "DD5 7JE",
            "administrativeAreaCode": null,
            "administrativeArea": null
          }
        }
      ],
      "customsItems": [
        {
          "id": "customs_item_0jnbyjc5m2dhq",
          "amount": 7.22,
          "quantity": 1,
          "hsCode": "6203.42",
          "hsCodeSource": "API_REQUEST",
          "description": "Cotton denim trousers",
          "countryOfOrigin": "TR",
          "items": [
            {
              "id": "item_0jnbyey9r4xcf",
              "amount": 9.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dhr",
          "amount": 28.09,
          "quantity": 2,
          "hsCode": "6109.10",
          "hsCodeSource": "API_REQUEST",
          "description": "Cotton knitted apparel",
          "countryOfOrigin": "US",
          "items": [
            {
              "id": "item_0jnbyey9r4xc7",
              "amount": 5.0,
              "currencyCode": "USD",
              "quantity": 1
            },
            {
              "id": "item_0jnbyey9r4xcb",
              "amount": 30.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dhs",
          "amount": 20.07,
          "quantity": 1,
          "hsCode": "6214.90",
          "hsCodeSource": "API_REQUEST",
          "description": "Cotton scarf, textile",
          "countryOfOrigin": "IN",
          "items": [
            {
              "id": "item_0jnbyey9r4xcd",
              "amount": 25.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dht",
          "amount": 13.64,
          "quantity": 2,
          "hsCode": "6204.49",
          "hsCodeSource": "API_REQUEST",
          "description": "Silk apparel items",
          "countryOfOrigin": "IN",
          "items": [
            {
              "id": "item_0jnbyey9r4xcg",
              "amount": 5.0,
              "currencyCode": "USD",
              "quantity": 1
            },
            {
              "id": "item_0jnbyey9r4xcc",
              "amount": 12.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dhv",
          "amount": 36.12,
          "quantity": 1,
          "hsCode": "6109.90",
          "hsCodeSource": "API_REQUEST",
          "description": "Synthetic t-shirt, man-made",
          "countryOfOrigin": "VN",
          "items": [
            {
              "id": "item_0jnbyey9r4xc9",
              "amount": 45.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dhw",
          "amount": 6.42,
          "quantity": 1,
          "hsCode": "6110.11",
          "hsCodeSource": "API_REQUEST",
          "description": "Wool knitted sweater",
          "countryOfOrigin": "IT",
          "items": [
            {
              "id": "item_0jnbyey9r4xce",
              "amount": 8.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        },
        {
          "id": "customs_item_0jnbyjc5m2dhx",
          "amount": 16.86,
          "quantity": 2,
          "hsCode": "4203.10",
          "hsCodeSource": "API_REQUEST",
          "description": "Leather apparel articles",
          "countryOfOrigin": "IT",
          "items": [
            {
              "id": "item_0jnbyey9r4xca",
              "amount": 6.0,
              "currencyCode": "USD",
              "quantity": 1
            },
            {
              "id": "item_0jnbyey9r4xc8",
              "amount": 15.0,
              "currencyCode": "USD",
              "quantity": 1
            }
          ]
        }
      ]
    }
  }
}
3

キャリアと一緒に出荷を作成する

注文のための税関の詳細を取得したら、それらの詳細をキャリアへのリクエストに使用できます。キャリアからラベルと追跡番号を取得したらshipmentCreate ミューテーションを使用して、Zonos に追跡番号を通知します ので、私たちが注文のステータスを更新できるようになります。

このページは役に立ちましたか?