typestringIndicates if the discount applies to items or shipping. Enum"item""shipping"namestringName of the discount.codestringDiscount code.valueobjectTotal sum of discount.+Show 2 propertiesattributesobjectAllows you to store any custom attributes for the discount.+Show property{ "type": "item", "name": "string", "code": "string", "value": { "includingVat": 1234, "excludingVat": 987.2 }, "attributes": { "property1": null, "property2": null } }