The optional Quantity field (qty
) allows you to tell Communications REST v2 how many times to process a line items without have to duplicate the same item X number of times.
The Quantity field isn’t supported on these transactions:
To use the field, specify a positive value greater than 1. Setting qty
to 0
defaults the quantity to 1
.
In this example, the quantity (qty
) is set to 3
, meaning that the line item is processed 3 times.
The charge (chg
) is set to 300, which is the charge of the line item * 3.
In this example, the same line item is repeated three times, but quantity (qty
) is not specified (defaulted to 1).
The results returned total the same amounts as returned in the first example.