Totalize CheckoutSession

It totalizes the operation in progress, calculating all the benefits that can be applied for that customer, and for that checkout specifically.
The caller will be responsible for applying the specified discounts, both to the OrderLine and Order level. Wapping assumes that the benefits will be applied as informed.
The benefits are preauthorized, meaning that the customer won't have them to use in another checkout at the same time.
The preauthorization can be released after certain time has passed, another total operation is performed, or a cancel operation is called.
When the last step (Commit) is done, the informed benefits will be substracted from the customer's wallet.
All the calculations are done in the Wapping side, meaning that the POS or ecommerce only has to apply them as-is, without performing calculations or any kind of logic.

Important: The amounts informed cannot have the discounts from wapping, in the event of a re-totalization, make sure to inform only the amounts without wapping discounts, otherwise there might be a recurring discount.
Important: The amounts in the orderLine has to be specified with all the external discounts applied (discounts from other sources than wapping, if it applies). The discountAmount in the CheckoutSession level is to inform
about all the discounts (again, external to Wapping) that are applied to the order level, if any.

  • The detail of the applied promotions, coupons, etc. can be consulted using the {CheckoutSession.Detail} property.
  • In this property you can query the items affected, this will be specified in the response so that the ecommerce modifies the order lines and calculates the total.
  • This operation should be called just before the e-commerce totalizes the order to update the value of the item lines if necessary in the case of application of promotions or discounts by item.
  • Recent Requests
    Log in to see full request history
    TimeStatusUser Agent
    Retrieving recent requests…
    LoadingLoading…
    Path Params
    int64
    required

    A unique identifier to reference the Checkout Session. This is returned when the CheckoutSession is created

    Body Params

    Information regarding items, date and amount to totalize.

    A request to totalize the order

    string
    required

    Order identifier within business

    items
    array of objects
    required

    List of ítems/services in the order to sale o refund

    items*
    boolean

    In this request not apply discounts

    boolean

    In this request not apply payments with money card

    discounts
    array of objects

    Detail of the discounts applied to the order

    discounts
    double

    Shipping Cost

    double

    Shipping Cost without taxation

    string

    Receipt language

    Headers
    string
    enum
    Defaults to application/json-patch+json

    Generated from available request content types

    Allowed:
    Responses

    Language
    Credentials
    Header
    LoadingLoading…
    Response
    Click Try It! to start a request and see the response here! Or choose an example:
    application/json