Maginium
Admin Api
Admin Api
  • About
  • API reference
    • CustomerGroups
      • Permissions
      • Default
      • Search
    • Customers
      • Confirm
      • BillingAddress
      • ShippingAddress
      • Carts
      • Me
        • Activate
        • Password
        • BillingAddress
        • ShippingAddress
      • Search
      • Activate
      • Password
        • ResetLinkToken
      • ResetPassword
      • Validate
      • IsEmailAvailable
      • Addresses
      • Permissions
        • Readonly
    • CmsPage
      • Search
    • CmsBlock
      • Search
    • Products
      • Media
        • Types
      • Options
        • Types
      • Links
        • Types
        • Attributes
      • Websites
      • Downloadable links
        • Samples
      • Attributes
        • Options
        • Types
      • Attribute sets
        • Attributes
        • Groups
          • List
        • Sets
          • List
      • Tier prices
      • Types
      • Tier prices information
      • Tier prices delete
      • Base prices information
      • Base prices
      • Cost information
      • Cost
      • Cost delete
      • Special price information
      • Special price
      • Special price delete
      • StockItems
      • Group prices
        • Tiers
          • Price
    • Categories
      • Attributes
        • Options
      • Products
      • Move
      • List
    • StockItems
      • LowStock
        • /
    • Carts
      • Items
      • Selected payment method
      • Billing address
      • Coupons
      • Gift message
      • Order
      • Shipping methods
      • Estimate shipping methods by address id
      • Estimate shipping methods
      • Payment methods
      • Totals
      • Shipping information
      • Totals information
      • Mine
        • Items
        • Selected payment method
        • Billing address
        • Coupons
        • Payment information
        • Gift message
        • Order
        • Shipping methods
        • Estimate shipping methods by address id
        • Estimate shipping methods
        • Payment methods
        • Totals
        • Collect totals
        • Shipping information
        • Totals information
        • Set payment information
      • Licence
        • List
      • /
      • Search
    • Guest carts
      • Items
      • Selected payment method
      • Billing address
      • Coupons
      • Payment information
      • Gift message
      • Order
      • Shipping methods
      • Estimate shipping methods
      • Payment methods
      • Collect totals
      • Totals
      • Shipping information
      • Totals information
      • Set payment information
    • Orders
      • Comments
      • Statuses
      • Cancel
      • Emails
      • Hold
      • Unhold
      • Items
      • Create
    • Invoices
      • Comments
      • Emails
      • Void
      • Capture
      • /
    • Creditmemo
      • Comments
      • Emails
      • Refund
    • Shipment
      • Comments
      • Emails
      • Label
      • Track
      • /
    • Transactions
    • TaxRates
      • Search
    • TaxRules
      • Search
    • TaxClasses
      • Search
    • SalesRules
      • Search
    • Coupons
      • Search
      • Generate
      • DeleteByIds
      • DeleteByCodes
    • Bulk
      • Detailed status
      • Status
      • Operation status
    • Modules
    • Search
    • Addresses
    • Products render info
    • StockStatuses
    • Creditmemos
    • Shipments
    • Amazon shipping address
    • Amazon billing address
    • Store
      • StoreViews
      • StoreGroups
      • Websites
      • StoreConfigs
    • Adobestock
      • Asset
        • Search
        • List
      • Search
    • Directory
      • Countries
      • Currency
    • Eav
      • Attribute sets
        • List
    • AttributeMetadata
      • Customer
        • Attribute
        • Form
        • Custom
      • CustomerAddress
        • Attribute
        • Form
        • Custom
    • Bundle products
      • Links
      • Options
        • Children
        • All
        • Types
        • Add
      • Children
    • Order
      • Refund
      • Ship
      • Invoice
      • Notify orders are ready for pickup
    • Configurable products
      • Children
      • Options
        • All
      • Child
      • Variation
    • Inventory
      • Sources
      • Stocks
      • Stock source links
      • Source items
      • Low quantity notification
      • Get sources assigned to stock ordered by priority
      • Stock source links delete
      • Source items delete
      • Bulk product source assign
      • Bulk product source unassign
      • Bulk product source transfer
      • Bulk partial source transfer
      • Get distance provider code
      • Get distance
      • Get latlng from address
      • Get latslngs from address
      • Export stock salable qty
      • Dump stock index data
      • Get product salable quantity
      • Is product salable
      • Are products salable
      • Is product salable for requested qty
      • Stock resolver
      • Source selection algorithm list
      • Source selection algorithm result
      • Low quantity notifications delete
      • Are product salable for requested qty
        • /
      • In store pickup
        • Pickup locations
          • /
    • Invoice
      • Refund
    • Analytics
      • Link
    • Amazon
      • Order ref
    • Applepay
      • Auth
    • Address
      • Cleanse
    • Guest address
      • Cleanse
    • Vertex address validation
      • Vertex address
    • Integration
      • Admin
        • Token
      • Customer
        • Token
Powered by GitBook
On this page
  1. API reference
  2. Carts
  3. Mine

Totals information

PreviousShipping informationNextSet payment information

checkout Totals Information Management V1Calculate Post

post

Calculate quote totals based on address and shipping method.

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"addressInformation":{"address":{"region":"proident in","region_id":-22795182,"region_code":"velit dolor mollit","country_id":"laboris esse","street":["ips","aliquip ut voluptate"],"telephone":"laborum proident dolor Lorem adipisicing","postcode":"consequat reprehenderit","city":"aute nu","firstname":"quis eli","lastname":"sed veniam aliquip","email":"eiusmod Lorem exercitation ea","id":25529874,"company":"irure veniam","fax":"dolo","middlename":"Duis ut id","prefix":"aliquip ","suffix":"consectetur elit amet dolor","vat_id":"ea veniam ullamco","customer_id":-66706733,"same_as_billing":-296209,"customer_address_id":-49779685,"save_in_address_book":-78805376,"extension_attributes":{"pickup_location_code":"do sunt","discounts":[{"discount_data":{"value":"<Error: Too many levels of nesting to fake this schema>"},"rule_label":"dolore ad","rule_id":-53456639},{"discount_data":{"value":"<Error: Too many levels of nesting to fake this schema>"},"rule_label":"in eiusmod","rule_id":50280654}]},"custom_attributes":[{"attribute_code":"cupidatat eu","value":"officia reprehenderit"},{"attribute_code":"sint quis Lorem Ut","value":"dolor in Duis occaecat"}]},"shipping_method_code":"<string>","shipping_carrier_code":"<string>","extension_attributes":"<object>","custom_attributes":[{"attribute_code":"dolor fugiat quis dolore","value":"veniam"},{"attribute_code":"in mollit","value":"enim aute"}]}}
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/carts/mine/totals-information HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 1403

{
  "addressInformation": {
    "address": {
      "region": "proident in",
      "region_id": -22795182,
      "region_code": "velit dolor mollit",
      "country_id": "laboris esse",
      "street": [
        "ips",
        "aliquip ut voluptate"
      ],
      "telephone": "laborum proident dolor Lorem adipisicing",
      "postcode": "consequat reprehenderit",
      "city": "aute nu",
      "firstname": "quis eli",
      "lastname": "sed veniam aliquip",
      "email": "eiusmod Lorem exercitation ea",
      "id": 25529874,
      "company": "irure veniam",
      "fax": "dolo",
      "middlename": "Duis ut id",
      "prefix": "aliquip ",
      "suffix": "consectetur elit amet dolor",
      "vat_id": "ea veniam ullamco",
      "customer_id": -66706733,
      "same_as_billing": -296209,
      "customer_address_id": -49779685,
      "save_in_address_book": -78805376,
      "extension_attributes": {
        "pickup_location_code": "do sunt",
        "discounts": [
          {
            "discount_data": {
              "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "rule_label": "dolore ad",
            "rule_id": -53456639
          },
          {
            "discount_data": {
              "value": "<Error: Too many levels of nesting to fake this schema>"
            },
            "rule_label": "in eiusmod",
            "rule_id": 50280654
          }
        ]
      },
      "custom_attributes": [
        {
          "attribute_code": "cupidatat eu",
          "value": "officia reprehenderit"
        },
        {
          "attribute_code": "sint quis Lorem Ut",
          "value": "dolor in Duis occaecat"
        }
      ]
    },
    "shipping_method_code": "<string>",
    "shipping_carrier_code": "<string>",
    "extension_attributes": "<object>",
    "custom_attributes": [
      {
        "attribute_code": "dolor fugiat quis dolore",
        "value": "veniam"
      },
      {
        "attribute_code": "in mollit",
        "value": "enim aute"
      }
    ]
  }
}
{
  "weee_tax_applied_amount": 60755706.8580344,
  "total_segments": [
    {
      "code": "ad tempor anim ipsum",
      "value": 16297270.936728075,
      "title": "dolor dolore pariatur",
      "area": "occaecat",
      "extension_attributes": {
        "tax_grandtotal_details": [
          {
            "amount": -82934909.15754491,
            "rates": [
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              },
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              }
            ],
            "group_id": -24838007
          },
          {
            "amount": -20775294.562663138,
            "rates": [
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              },
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              }
            ],
            "group_id": -70022741
          }
        ],
        "vertex_tax_calculation_messages": [
          "ut ex Duis do",
          "ad eu occaecat"
        ]
      }
    },
    {
      "code": "elit est",
      "value": -9983868.413395718,
      "title": "tempor adipisicing aute",
      "area": "dolor Excepteur minim id voluptate",
      "extension_attributes": {
        "tax_grandtotal_details": [
          {
            "amount": -59899499.6119877,
            "rates": [
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              },
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              }
            ],
            "group_id": 24209409
          },
          {
            "amount": -34005626.344232894,
            "rates": [
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              },
              {
                "value": "<Error: Too many levels of nesting to fake this schema>"
              }
            ],
            "group_id": -97748780
          }
        ],
        "vertex_tax_calculation_messages": [
          "qui sed",
          "consectetur quis dolore est"
        ]
      }
    }
  ],
  "grand_total": 53388921.572937995,
  "base_grand_total": 74430602.28983408,
  "subtotal": 61832736.098612875,
  "base_subtotal": 17993435.48102285,
  "discount_amount": 21508241.72508794,
  "base_discount_amount": 93733227.36224553,
  "subtotal_with_discount": -74486915.22384454,
  "base_subtotal_with_discount": -81404334.97137111,
  "shipping_amount": -23336906.65898244,
  "base_shipping_amount": 19371395.13158205,
  "shipping_discount_amount": 87786472.47204217,
  "base_shipping_discount_amount": 80062701.42786613,
  "tax_amount": 86005818.12712583,
  "base_tax_amount": -78833183.76671675,
  "shipping_tax_amount": -76092538.74097401,
  "base_shipping_tax_amount": 15397382.709030256,
  "subtotal_incl_tax": 69362008.96207744,
  "base_subtotal_incl_tax": 36939107.429860115,
  "shipping_incl_tax": 4963547.948041305,
  "base_shipping_incl_tax": 19414568.369195044,
  "base_currency_code": "est do in tempor",
  "quote_currency_code": "Lorem tempor Excepteur nulla officia",
  "coupon_code": "officia in",
  "items_qty": -51912152,
  "items": [
    {
      "item_id": 37459718,
      "price": 34515738.4445273,
      "base_price": 39845150.853557736,
      "qty": -15413531.592034206,
      "row_total": -34881793.505893596,
      "base_row_total": 61195261.704752415,
      "options": "voluptate",
      "weee_tax_applied_amount": -64938872.74466652,
      "weee_tax_applied": "dolore quis adipisicing aliqua pariatur",
      "row_total_with_discount": 40996810.44143927,
      "tax_amount": -22518782.453900024,
      "base_tax_amount": -74167559.54631445,
      "tax_percent": -40548829.03644925,
      "discount_amount": 92886270.66723058,
      "base_discount_amount": -36722725.20734872,
      "discount_percent": 12187945.589098483,
      "price_incl_tax": 7139442.109478503,
      "base_price_incl_tax": 46118216.54988706,
      "row_total_incl_tax": -57649996.221814215,
      "base_row_total_incl_tax": -46786751.130193725,
      "extension_attributes": {},
      "name": "irure et Duis ipsum aliquip"
    },
    {
      "item_id": -40278158,
      "price": -75868165.99584365,
      "base_price": 21725817.957303077,
      "qty": -48538804.96811307,
      "row_total": 14553380.314327091,
      "base_row_total": 6476155.691399649,
      "options": "ad aliqua quis",
      "weee_tax_applied_amount": 27045337.737182036,
      "weee_tax_applied": "labore do id",
      "row_total_with_discount": 31683139.385813728,
      "tax_amount": -25052170.762623444,
      "base_tax_amount": -94623591.8447809,
      "tax_percent": -29573850.794136852,
      "discount_amount": 75741154.20852757,
      "base_discount_amount": -11475092.026047885,
      "discount_percent": 55414421.9585551,
      "price_incl_tax": 38037654.69392055,
      "base_price_incl_tax": -23859367.50927922,
      "row_total_incl_tax": 25051576.59574531,
      "base_row_total_incl_tax": 54196575.08320376,
      "extension_attributes": {},
      "name": "nisi irure"
    }
  ],
  "extension_attributes": {
    "coupon_label": "magna"
  }
}