Post receipt for discount
Find discounts available for the receipt
Active discounts
customer_idwill be used to find active discounts for the purchase.customer.tokenwill be used to resolvecustomer_idif nocustomer_idis provided.- No discounts will be given if the token does not resolve to any customer_id.
- A receipt with no
customer_idand nocustomer.tokenwill only be applicable for active discounts given to/(see)
Requirement of the receipt
- all items must have
eligible_for_discountset to enable for discount - all items must have a positive
gross_amountto qualify for discount - a
netbase discount reward requires the receipt to include existing discounts as discount_lines (on item) in order to calculate net
A receipt that qualified for discount will have the is_change
property set to true. Any items that has received a discount will be
flagged by is_change and have one or more new entries to its
discount_lines.
The receipt discounts list will be populated with all discounts the
receipt is qualified to receive
scopes:
- admin:discounts
- write:discounts
- write:discounts:/available_for_receipt
Documentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
Authorization: Bearer {access_token}where the access_token is JSON Web Tokens (JWT).
Path Parameters
An id that uniquely identifies the account.
9Body
receipt
"714118"
The date and time for the receipt purchase
List all discounts referenced in discount_lines
Details for the delivery
The customer id identifying the customer. (must not have trailing or leading spaces)
255"C13db4f63"
The customer, owner of the receipt
Monetary amount in smallest unit for the currency before discounts
59800
Monetary amount in smallest unit for the currency before discounts with decimal
"59800.01"
Monetary amount in smallest unit for the currency after discounts
47840
Monetary value in smallest unit for the currency after discounts with decimal
"47840.01"
100
The three-character ISO-4217 currency. https://en.wikipedia.org/wiki/ISO_4217
"NOK"
"order12345"
How much more need to be paid before the transaction is completed. Monetary amount in smallest unit for the currency
2050
Monetary value with decimal
"2050.10"
How many items did the customer buy
4
Discount applied to gross amount
"SC999-9991-1828"
0
Monetary amount in smallest unit for the currency
0
0
POS user
"000210"
Name of the POS user
"Ole Anders"
ID of the POS user
"000111"
"Jesper"
Status for the transaction
None, Voided, Posted, Concluded, Cancelled, OnHold, Training, Reprinted "Kunden ønsker mer for info"
Breakdown of the tax to different tax groups
Response
Receipt with discount
"714118"
The date and time for the receipt purchase
An UUID that uniquely identifies the resource
The date-time when the resource was created
The ID of the user/client created the resource
"1c92f7e1-2897-4d46-bdcc-c127a914fb4e"
The date-time when the resource was last updated
The ID of the user/client created the resource
"1c92f7e1-2897-4d46-bdcc-c127a914fb4e"
List all discounts referenced in discount_lines
Details for the delivery
The customer id identifying the customer. (must not have trailing or leading spaces)
255"C13db4f63"
The customer, owner of the receipt
Monetary amount in smallest unit for the currency before discounts
59800
Monetary amount in smallest unit for the currency before discounts with decimal
"59800.01"
Monetary amount in smallest unit for the currency after discounts
47840
Monetary value in smallest unit for the currency after discounts with decimal
"47840.01"
100
The three-character ISO-4217 currency. https://en.wikipedia.org/wiki/ISO_4217
"NOK"
"order12345"
How much more need to be paid before the transaction is completed. Monetary amount in smallest unit for the currency
2050
Monetary value with decimal
"2050.10"
How many items did the customer buy
4
Discount applied to gross amount
"SC999-9991-1828"
0
Monetary amount in smallest unit for the currency
0
0
POS user
"000210"
Name of the POS user
"Ole Anders"
ID of the POS user
"000111"
"Jesper"
Status for the transaction
None, Voided, Posted, Concluded, Cancelled, OnHold, Training, Reprinted "Kunden ønsker mer for info"
Breakdown of the tax to different tax groups