JSON representation |
---|
{
"lineItemId": string,
"productId": string,
"shipmentUnitIds": [
string
],
"unitInvoice": {
object ( |
Fields | |
---|---|
lineItemId |
ID of the line item. Either lineItemId or productId must be set. |
productId |
ID of the product. This is the REST ID used in the products service. Either lineItemId or productId must be set. |
shipmentUnitIds[] |
[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). |
unitInvoice |
[required] Invoice details for a single unit. |
UnitInvoice
JSON representation |
---|
{ "unitPriceTaxes": [ { object ( |
Fields | |
---|---|
unitPriceTaxes[] |
Tax amounts to apply to the unit price. |
additionalCharges[] |
Additional charges for a unit, for example, shipping costs. |
unitPrice |
[required] Pre-tax or post-tax price of one unit depending on the locality of the order. |
UnitInvoiceTaxLine
JSON representation |
---|
{
"taxType": string,
"taxAmount": {
object ( |
Fields | |
---|---|
taxType |
[required] Type of the tax. Acceptable values are:
|
taxAmount |
[required] Tax amount for the tax type. |
taxName |
Optional name of the tax type. This should only be provided if |
UnitInvoiceAdditionalCharge
JSON representation |
---|
{
"type": string,
"additionalChargeAmount": {
object ( |
Fields | |
---|---|
type |
[required] Type of the additional charge. Acceptable values are:
|
additionalChargeAmount |
[required] Amount of the additional charge per unit. |