Add a discount to a specific article in a payment.
Request
- Base URLhttps://api.c1st.com/api
- URLhttps://api.c1st.com/api/pospayments/{paymentId}/articles/{paymentArticleId}/discount
- AuthHTTP bearer
Request body
Which discount tag that should be applied to the discount
Mode for the discount e.g. percentage, subtract, total, perItem
Value set for the discount
Quantity of the discount line, either 1 or -1. Defaults to 1 when omitted.
Response
Ok
A unique ID generated automatically
The title of the article sold
Price of the article. By default price includes VAT but can be changed in the store config "prices_include_vat".
The cost price of the article sold
Number of articles sold.
VAT percentage.
< normal vat calculation is based on price second_hand vat calulation is based on price - costprice
Consistently give the calculcated price without VAT. Regardless of the value of store config "prices_include_vat"
The calculated VAT for the price field.
Provide this if you want to issue a giftcard with the payment. The amount on the giftcard will be the value of price.
Provide this if you want use a giftcard as means of payment. The value of price will be deducted from the giftcard balance
Id of issued giftcard
Id of the attached customerarticle
For legacy support, instead refer to product.productno. This is only used for voucher and deposit
< The the id of the product you want to sell. Stock will be deducted from the product after succesful payment. Deleted products are allowed. This is useful for return sales and payments of tickets with deleted products.
Relate the payment article to a taskmaterial. Use this to keep track of the payment status of task.
If the article has a discount. This will be a reference to the discount article. This will be autofilled by matching the value of discountToken and discountedToken
If a promotion is deleted from an article, this is set to 1, thus no further promotions will be applied to it
Can either be "recurringpaymentterm", "newservicesubscription" or "newrecurringpayment"
The id of the recurring payment
The id of the servicesubscription to be activated when payment completed
The amount of desired loyalty points to be credited by this paymentmaterial.
The transactioned changed of loyalty points when payment is completed.
The id of the parent material. If set, this paymentmaterial is considered to be an addon
The id of the discount added to the paymentmaterial
An id referencing the paymentmaterial being returned
An id referencing the return tag (reason) of the paymentmaterial being returned
Total vat amount
Total price excluding VAT
Total price including VAT
Total discount including VAT for this line item (negative number; 0 when no discount)
The id of the vat type from the product at the time it was created.
Changes
No recorded changes to this operation across all 1 revision of this API.