Debian Codegraph @

docs/dyn/content_v2_1.orderinvoices.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="content_v2_1.html">Content API for Shopping</a> . <a href="content_v2_1.orderinvoices.html">orderinvoices</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#createchargeinvoice">createchargeinvoice(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.</p>
83 <p class="toc_element">
84 <code><a href="#createrefundinvoice">createrefundinvoice(merchantId, orderId, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="createchargeinvoice">createchargeinvoice(merchantId, orderId, body=None, x__xgafv=None)</code>
94 <pre>Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
95
96 Args:
97 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
98 orderId: string, The ID of the order. (required)
99 body: object, The request body.
100 The object takes the form of:
101
102 {
103 &quot;invoiceId&quot;: &quot;A String&quot;, # [required] The ID of the invoice.
104 &quot;invoiceSummary&quot;: { # [required] Invoice summary.
105 &quot;additionalChargeSummaries&quot;: [ # Summary of the total amounts of the additional charges.
106 {
107 &quot;totalAmount&quot;: { # [required] Total additional charge for this type.
108 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
109 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
110 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
111 },
112 &quot;taxAmount&quot;: { # [required] Tax value.
113 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
114 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
115 },
116 },
117 &quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
118 },
119 ],
120 &quot;productTotal&quot;: { # [required] Total price for the product.
121 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
122 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
123 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
124 },
125 &quot;taxAmount&quot;: { # [required] Tax value.
126 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
127 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
128 },
129 },
130 },
131 &quot;lineItemInvoices&quot;: [ # [required] Invoice details per line item.
132 {
133 &quot;lineItemId&quot;: &quot;A String&quot;, # ID of the line item. Either lineItemId or productId must be set.
134 &quot;productId&quot;: &quot;A String&quot;, # ID of the product. This is the REST ID used in the products service. Either lineItemId or productId must be set.
135 &quot;shipmentUnitIds&quot;: [ # [required] The shipment unit ID is assigned by the merchant and defines individual quantities within a line item. The same ID can be assigned to units that are the same while units that differ must be assigned a different ID (for example: free or promotional units).
136 &quot;A String&quot;,
137 ],
138 &quot;unitInvoice&quot;: { # [required] Invoice details for a single unit.
139 &quot;additionalCharges&quot;: [ # Additional charges for a unit, for example, shipping costs.
140 {
141 &quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge per unit. *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is the amount charged per unit, and will be multiplied by the number of entries in `shipmentUnitID`.
142 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
143 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
144 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
145 },
146 &quot;taxAmount&quot;: { # [required] Tax value.
147 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
148 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
149 },
150 },
151 &quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
152 },
153 ],
154 &quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of one unit depending on the locality of the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in `shipmentUnitId`.
155 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
156 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
157 },
158 &quot;unitPriceTaxes&quot;: [ # Tax amounts to apply to the unit price.
159 {
160 &quot;taxAmount&quot;: { # [required] Tax amount for the tax type.
161 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
162 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
163 },
164 &quot;taxName&quot;: &quot;A String&quot;, # Optional name of the tax type. This should only be provided if `taxType` is `otherFeeTax`.
165 &quot;taxType&quot;: &quot;A String&quot;, # [required] Type of the tax. Acceptable values are: - &quot;`otherFee`&quot; - &quot;`otherFeeTax`&quot; - &quot;`sales`&quot;
166 },
167 ],
168 },
169 },
170 ],
171 &quot;operationId&quot;: &quot;A String&quot;, # [required] The ID of the operation, unique across all operations for a given order.
172 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # [required] ID of the shipment group. It is assigned by the merchant in the `shipLineItems` method and is used to group multiple line items that have the same kind of shipping charges.
173 }
174
175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
179
180 Returns:
181 An object of the form:
182
183 {
184 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
185 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#orderinvoicesCreateChargeInvoiceResponse`&quot;.
186 }</pre>
187 </div>
188
189 <div class="method">
190 <code class="details" id="createrefundinvoice">createrefundinvoice(merchantId, orderId, body=None, x__xgafv=None)</code>
191 <pre>Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.
192
193 Args:
194 merchantId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
195 orderId: string, The ID of the order. (required)
196 body: object, The request body.
197 The object takes the form of:
198
199 {
200 &quot;invoiceId&quot;: &quot;A String&quot;, # [required] The ID of the invoice.
201 &quot;operationId&quot;: &quot;A String&quot;, # [required] The ID of the operation, unique across all operations for a given order.
202 &quot;refundOnlyOption&quot;: { # Option to create a refund-only invoice. Exactly one of `refundOnlyOption` or `returnOption` must be provided.
203 &quot;description&quot;: &quot;A String&quot;, # Optional description of the refund reason.
204 &quot;reason&quot;: &quot;A String&quot;, # [required] Reason for the refund. Acceptable values are: - &quot;`adjustment`&quot; - &quot;`autoPostInternal`&quot; - &quot;`autoPostInvalidBillingAddress`&quot; - &quot;`autoPostNoInventory`&quot; - &quot;`autoPostPriceError`&quot; - &quot;`autoPostUndeliverableShippingAddress`&quot; - &quot;`couponAbuse`&quot; - &quot;`courtesyAdjustment`&quot; - &quot;`customerCanceled`&quot; - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`customerSupportRequested`&quot; - &quot;`deliveredLateByCarrier`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`failToPushOrderGoogleError`&quot; - &quot;`failToPushOrderMerchantError`&quot; - &quot;`failToPushOrderMerchantFulfillmentError`&quot; - &quot;`failToPushOrderToMerchant`&quot; - &quot;`failToPushOrderToMerchantOutOfStock`&quot; - &quot;`feeAdjustment`&quot; - &quot;`invalidCoupon`&quot; - &quot;`lateShipmentCredit`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`merchantDidNotShipOnTime`&quot; - &quot;`noInventory`&quot; - &quot;`orderTimeout`&quot; - &quot;`other`&quot; - &quot;`paymentAbuse`&quot; - &quot;`paymentDeclined`&quot; - &quot;`priceAdjustment`&quot; - &quot;`priceError`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`promoReallocation`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`returnRefundAbuse`&quot; - &quot;`shippingCostAdjustment`&quot; - &quot;`shippingPriceError`&quot; - &quot;`taxAdjustment`&quot; - &quot;`taxError`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
205 },
206 &quot;returnOption&quot;: { # Option to create an invoice for a refund and mark all items within the invoice as returned. Exactly one of `refundOnlyOption` or `returnOption` must be provided.
207 &quot;description&quot;: &quot;A String&quot;, # Optional description of the return reason.
208 &quot;reason&quot;: &quot;A String&quot;, # [required] Reason for the return. Acceptable values are: - &quot;`customerDiscretionaryReturn`&quot; - &quot;`customerInitiatedMerchantCancel`&quot; - &quot;`deliveredTooLate`&quot; - &quot;`expiredItem`&quot; - &quot;`invalidCoupon`&quot; - &quot;`malformedShippingAddress`&quot; - &quot;`other`&quot; - &quot;`productArrivedDamaged`&quot; - &quot;`productNotAsDescribed`&quot; - &quot;`qualityNotAsExpected`&quot; - &quot;`undeliverableShippingAddress`&quot; - &quot;`unsupportedPoBoxAddress`&quot; - &quot;`wrongProductShipped`&quot;
209 },
210 &quot;shipmentInvoices&quot;: [ # Invoice details for different shipment groups.
211 {
212 &quot;invoiceSummary&quot;: { # [required] Invoice summary.
213 &quot;additionalChargeSummaries&quot;: [ # Summary of the total amounts of the additional charges.
214 {
215 &quot;totalAmount&quot;: { # [required] Total additional charge for this type.
216 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
217 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
218 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
219 },
220 &quot;taxAmount&quot;: { # [required] Tax value.
221 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
222 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
223 },
224 },
225 &quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
226 },
227 ],
228 &quot;productTotal&quot;: { # [required] Total price for the product.
229 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
230 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
231 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
232 },
233 &quot;taxAmount&quot;: { # [required] Tax value.
234 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
235 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
236 },
237 },
238 },
239 &quot;lineItemInvoices&quot;: [ # [required] Invoice details per line item.
240 {
241 &quot;lineItemId&quot;: &quot;A String&quot;, # ID of the line item. Either lineItemId or productId must be set.
242 &quot;productId&quot;: &quot;A String&quot;, # ID of the product. This is the REST ID used in the products service. Either lineItemId or productId must be set.
243 &quot;shipmentUnitIds&quot;: [ # [required] The shipment unit ID is assigned by the merchant and defines individual quantities within a line item. The same ID can be assigned to units that are the same while units that differ must be assigned a different ID (for example: free or promotional units).
244 &quot;A String&quot;,
245 ],
246 &quot;unitInvoice&quot;: { # [required] Invoice details for a single unit.
247 &quot;additionalCharges&quot;: [ # Additional charges for a unit, for example, shipping costs.
248 {
249 &quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge per unit. *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is the amount charged per unit, and will be multiplied by the number of entries in `shipmentUnitID`.
250 &quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
251 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
252 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
253 },
254 &quot;taxAmount&quot;: { # [required] Tax value.
255 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
256 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
257 },
258 },
259 &quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
260 },
261 ],
262 &quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of one unit depending on the locality of the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in `shipmentUnitId`.
263 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
264 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
265 },
266 &quot;unitPriceTaxes&quot;: [ # Tax amounts to apply to the unit price.
267 {
268 &quot;taxAmount&quot;: { # [required] Tax amount for the tax type.
269 &quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
270 &quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
271 },
272 &quot;taxName&quot;: &quot;A String&quot;, # Optional name of the tax type. This should only be provided if `taxType` is `otherFeeTax`.
273 &quot;taxType&quot;: &quot;A String&quot;, # [required] Type of the tax. Acceptable values are: - &quot;`otherFee`&quot; - &quot;`otherFeeTax`&quot; - &quot;`sales`&quot;
274 },
275 ],
276 },
277 },
278 ],
279 &quot;shipmentGroupId&quot;: &quot;A String&quot;, # [required] ID of the shipment group. It is assigned by the merchant in the `shipLineItems` method and is used to group multiple line items that have the same kind of shipping charges.
280 },
281 ],
282 }
283
284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
288
289 Returns:
290 An object of the form:
291
292 {
293 &quot;executionStatus&quot;: &quot;A String&quot;, # The status of the execution. Acceptable values are: - &quot;`duplicate`&quot; - &quot;`executed`&quot;
294 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#orderinvoicesCreateRefundInvoiceResponse`&quot;.
295 }</pre>
296 </div>
297
298 </body></html>