An important part of the program points is awarding point for purchases that customers made. In order for points to be given we need to receive purchases that the customers made.
In BonifiQ an order can be in one of these 3 states:
You dont need to send pending orders to BonifiQ. You can send them when they are completed (or canceled).
The pending state exists for integrations that requires this flow.
To set the State of the order use the IsCompleted and IsCancelledOrReturned fields. Whenever one of them is true the respective OrderCompletedDate or OrderCancelledDate must be set.
The OrderStatus field is the status in the platform. This is merely informative
This is a very important field as it determines how many points the user will be awarded. This value must not consider shipping costs, taxes, discounts, promotions, giftcard, etc In other words, the value must be what the customer really paid discounted shipping
The Coupon field is important as is the way BonifiQ is aware of an used coupon or reward. Use this field as follow:
Redeem endpoint, them pass here the ExternalCode return from the redeem api callUse API Basic Auth Keys
Purchase Order Model
This is the Id in the client store.
Date of the customer's purchase.
Date the order reached the completed state (usually it's invoiced or delivered).
if the order is cancelled, contains the date.
Status at the client's order system.
if true the order was cancelled or returned.
If true it means the order has reached its final status and points can be awarded to the consumer.
Can be used at Loyalty Programs. Important: these values should not include Shipping costs.
Buyer registration.
Products listed on the order.
the date from the last update on this order.
Coupon code used on this order.
This is a key-value list of extra information regarding the order. It could be informative only or being part of an business rule to be used later.
The Payment Method used in this purchase. Should be the more specific as possible (ie: instead of using "Credit Card" use "Visa Credit Card" and so on). This field can be used later on to create extra points purchase rules
A Branch is physical location or outlet of a store (loja, filial, etc). This is used to receive information of which store the purchase was made. It can be later used to create rules for points or filtering reports.
A sales person is the person responsible for the sale. It can be used for filtering reports.