carrierstringCarrier name.classstringShipping class.productobjectShipping product.+Show 2 propertiespickupLocationobjectPickup location.+Show 3 properties{ "carrier": "string", "class": "string", "product": { "reference": "string", "name": "string" }, "pickupLocation": { "reference": "string", "name": "string", "address": { … } } }
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 } }