LogoLogo
CommunitySupport PortalYouTubeStart a free trial
  • Welcome
  • Commerce Engine
  • Orchestration Engine
  • API Documentation
  • Release Notes
  • Changelog
  • Emporix API
  • OpenAPI Generator
  • Standard Practices
    • General Info
    • Mixins
    • Query Parameter
    • Translations
    • Custom ID
    • Upsert
    • B2B Token
  • API Guides and References
    • Authorization
      • OAuth Service
        • API Reference
          • Customer Token
          • Anonymous Token
          • Service Access Token
          • Models
        • Download API Specification
    • Artificial Intelligence
      • AI Service
        • AI Tutorials
        • API Reference
          • Text Generation
          • AI Completions
          • Models
        • Download API Specification
    • Configuration
      • Configuration Service
        • Language Tutorials
        • API Reference
          • Tenant configurations
          • Client configurations
          • Global configurations
          • Models
        • Download API Specification
      • Country Service
        • Country Tutorial
        • API Reference
          • Countries
          • Regions
          • Models
        • Download API Specification
      • Currency Service
        • Currency Tutorial
        • API Reference
          • Currencies
          • Currency exchange
          • Models
        • Download API Specification
      • Unit Handling Service
        • Unit Handling Tutorial
        • API Reference
          • Unit management
          • Unit conversion
          • Type management
          • Models
        • Download API Specification
      • Site Settings Service
        • Site Settings Tutorial
        • API Reference
          • Mixins
          • Site settings
          • Models
        • Download API Specification
      • Indexing Service
        • Indexing Tutorial
        • API Reference
          • Configuration
          • Public Configuration
          • Reindex
          • Models
        • Download API Specification
    • Catalogs and Categories
      • Catalog Service
        • Catalog Tutorials
        • API Reference
          • List catalogs
          • Catalog management
          • Models
        • Download API Specification
      • Category Service
        • Category Tutorials
        • API Reference
          • Category Resources
          • Category Assignment Resources
          • Assignment Resources
          • Category Tree Resources
          • Models
        • Download API Specification
    • Products, Labels and Brands
      • Product Service
        • Product Tutorial
        • API Reference
          • Products
          • Product Templates
          • Models
        • Download API Specification
      • Label Service
        • Label Tutorial
        • API Reference
          • Label
          • Media
          • Models
        • Download API Specification
      • Brand Service
        • Brand Tutorial
        • API Reference
          • Brands
          • Media
          • Models
        • Download API Specification
    • Prices and Taxes
      • Price Service
        • Price Tutorials
        • API Reference
          • Price lists
          • Price matching
          • Price models
          • Prices
          • Prices assigned to price lists
          • Models
        • Download API Specification
      • Tax Service
        • Tax Tutorials
        • API Reference
          • Taxes
          • Tax calculation
          • Models
        • Download API Specification
    • Users and Permissions
      • IAM Service
        • IAM Tutorial
        • API Reference
          • Access Controls
          • Group Assignments
          • Groups
          • Permissions
          • Resources
          • Roles
          • Access Control Templates
          • Users
          • Management Dashboard Users
          • Models
        • Download API Specification
      • Session-context Service
        • Session-context Tutorial
        • API Reference
          • Session management
          • Session context modification
          • Own session management
          • Own session context modification
          • Models
        • Download API Specification
    • Companies and Customers
      • Customer Management
        • Customer Management Tutorial
        • API Reference
          • Locations
          • Contact Assignments
          • Legal Entities
          • Models
        • Download API Specification
      • Customer Service (Customer Managed)
        • API Reference
          • Addresses
          • Account and profile
          • Authentication and authorization
          • Double opt In
          • Credentials
          • Models
        • Download API Specification
      • Customer Service (Tenant Managed)
        • API Reference
          • Account and profile
          • Addresses
          • Models
        • Download API Specification
      • Customer Segments
        • Segments Tutorial
        • API Reference
          • Segments
          • Items Assignments
          • Customers Assignments
          • Models
        • Download API Specification
      • Approval Service
        • Approval Tutorials
        • API Reference
          • Approvals
          • Approval
          • Search
          • Models
        • Download API Specification
    • Delivery and Shipping
      • Shipping Service
        • Shipping Tutorial
        • API Reference
          • Customer Group Relations
          • Delivery Windows
          • Shipping Cost
          • Shipping Zones
          • Shipping Methods
          • Shipping Groups
          • Sites
          • Delivery Times Management
          • Delivery Times Slots Management
          • Delivery Cycles
          • Models
        • Download API Specification
      • Delivery Providers Service
        • API Reference
          • Delivery Orders
          • Delivery Plan
          • Models
        • Download API Specification
    • Rewards and Promotions
      • Coupon Service
        • Coupon Tutorial
        • API Reference
          • Coupon Management
          • Coupon Validation
          • Coupon Redemption
          • Referral Coupon Management
          • Models
        • Download API Specification
      • Reward-points Service
        • Reward-points Tutorial
        • API Reference
          • Redeem Options Management
          • Reward Points Management
          • Signed In Customer Reward Points
          • Models
        • Download API Specification
    • Quotes
      • Quote Service
        • Quote Tutorial
        • API Reference
          • Quote management
          • Quote history
          • Quote pdf
          • Quote reason
          • Models
        • Download API Specification
    • Checkout
      • Cart Service
        • Cart Tutorial
        • API Reference
          • Carts
          • Cart items
          • Discounts
          • Models
        • Download API Specification
      • Payment-gateway Service
        • Payment-gateway Tutorial
        • API Reference
          • Payment
          • Payment mode
          • Payment frontend
          • Payment mode frontend
          • Transaction
          • Models
        • Download API Specification
      • Checkout Service
        • Checkout Tutorial
        • API Reference
          • Checkouts
          • Models
        • Download API Specification
      • Fee Service
        • Fee Tutorial
        • API Reference
          • Fee management
          • Item Fee management
          • Product Fees management
          • Item Fee search
          • Models
        • Download API Specification
      • Shopping List
        • API Reference
          • Shopping Lists
          • Models
        • Download API Specification
    • Orders
      • Availability Service
        • Availability Tutorial
        • API Reference
          • Locations
          • Availabilities
          • Models
        • Download API Specification
      • Order Service
        • Order Tutorial
        • API Reference
          • Orders (tenant Managed)
          • Orders (customer Managed)
          • Models
        • Download API Specification
      • Pick-pack Service
        • API Reference
          • Orders
          • Order cycles
          • Assignees
          • Recalculations
          • Events
          • Models
        • Download API Specification
      • Invoice Service
        • Invoice Tutorial
        • API Reference
          • Invoice Jobs
          • Models
        • Download API Specification
      • Returns Service
        • Returns Tutorial
        • API Reference
          • Returns
          • Models
        • Download API Specification
      • SEPA Export Service
        • API Reference
          • Files
          • Jobs
          • Models
        • Download API Specification
    • Utilities
      • Schema Service
        • Schema Tutorial
        • API Reference
          • Schema
          • Type
          • Reference
          • Custom Schema Type
          • Custom Instance
          • Models
        • Download API Specification
      • Sequential-id Service
        • Sequential-id Tutorial
        • API Reference
          • Sequential IDs management
          • Models
        • Download API Specification
    • Media
      • Media Service
        • Media Tutorial
        • API Reference
          • Assets
          • Models
        • Download API Specification
    • Webhooks
      • Webhook Service
        • Webhooks Tutorial
        • API Reference
          • Config
          • Events
          • Svix Emporix Shared Account
          • Models
        • Download API Specification
      • Events-Availability
      • Events-Cart
      • Events-Catalog
      • Events-Category
      • Events-Client Management
      • Events-Customer
      • Events-Index
      • Events-Order
      • Events-Price
      • Events-Product
      • Events-Quote
      • Events-Product
    • Integrations
      • Emporix and Make
      • Identity Providers
      • Workflow Automation
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. API Guides and References
  2. Orders
  3. Order Service
  4. API Reference

Orders (tenant Managed)

PreviousAPI ReferenceNextOrders (customer Managed)

Was this helpful?

LogoLogo

Resources

  • Emporix.com
  • Developer Policy
  • Terms of Use

Find us

  • LinkedIn

© 2025 Emporix. All Rights Reserved.

Manage tenant orders

Retrieving the number of orders

head

Retrieves the number of orders for the specified query and siteCode. To be used by tenant's employees.

Required scopes

  • order.order_read

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
qstringOptional

A standard query parameter is used to search for specific values.

  • Searching for an item by string property: q=currency:USD where currency is the name of string field and USD is its required value.
  • Searching for items by number-based property:
    • Searching for items with specific value: q=tax.total.amount:20
    • Searching for items with value greater than: q=tax.total.amount:>20
    • Searching for items with value lower than: q=tax.total.amount:<20
    • Searching for items with value greater or equal than: q=tax.total.amount:>=20
    • Searching for items with value lower or equal than: q=tax.total.amount:<=20
    • Searching for items with within a range of values: q=tax.total.amount:(>=10 AND <=20)
      where tax.total.amount is name of number-based field and 20 is it's querying value.
  • Searching for items by date property. All number-based property queries are valid also for dates. In that case the date should be placed within double quotes: q=created:(>="2021-05-18T07:27:27.455Z" AND <"2021-05-20T07:27:27.455Z")
  • Searching for items by boolean value: q=customer.mixins.generalAttributes.invoiceNotDeliveryAddress:true where customer.mixins.generalAttributes.invoiceNotDeliveryAddress is a name of boolean field and 'true' is it`s required value.
  • Searching for items with non existing or empty property: q=billingAddress.contactPhone:null where billingAddress.contactPhone is a name of fields that has value null.
  • Searching for items with existing property: q=mixin:exists where mixin is a name of field that has non null value.
  • Searching for items by multiple specific values: q=id:(order_id1,order_id2) where id is name of field and strings within a bracket are it's required value.
  • Searching for items by multiple fields: q=id:order_id1 status:COMPLETED where id and status are the names of fields. All documents that contain given values of these fields are returned. Multiple fields separated by space can be specified. Multiple values for each field can be also specified in a format presented above.
Example: currency:USD
Responses
200
The request was successful. Number of orders returned in header.
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
500
Some server side error occurred.
application/json
head
HEAD /order-v2/{tenant}/salesorders HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Retrieving a specific order by ID

get

Retrieves a specific order by order ID. To be used by tenant's employees.

Required scopes

  • order.order_read

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
200
The request was successful. Given order details are returned.
application/json
Responseall of
and
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
get
GET /order-v2/{tenant}/salesorders/{orderId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "EON1145",
  "createdBy": "45620894",
  "status": "CREATED",
  "lastStatusChange": "2025-04-09T12:50:51.578Z",
  "created": "2025-04-09T12:50:51.578Z",
  "channel": {
    "name": "storefront",
    "source": "https://your-storefront.com/"
  },
  "entries": [
    {
      "id": "samsung-galaxy-s24-gross",
      "itemYrn": "urn:yaas:saasag:caasproduct:product:b2b2cstage;samsung-galaxy-s24-gross",
      "amount": 1,
      "orderedAmount": 1,
      "effectiveQuantity": 1,
      "originalAmount": 350,
      "originalPrice": 350,
      "unitPrice": 350,
      "calculatedUnitPrice": {
        "netValue": 294.118,
        "grossValue": 350,
        "taxValue": 55.882,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "totalPrice": 350,
      "authorizedAmount": 350,
      "product": {
        "id": "samsung-galaxy-s24-gross",
        "sku": "Samsung Galaxy s24 gross",
        "name": "Samsung Galaxy s24 gross",
        "localizedName": {
          "en": "Samsung Galaxy s24 gross"
        },
        "published": true,
        "images": [
          {
            "id": "67169928ceaab717e17f3734",
            "url": "http://res.cloudinary.com/saas-ag/image/upload/v1729534248/b2b2cstage/media/67169928ceaab717e17f3734",
            "stored": false
          }
        ],
        "productType": "BASIC"
      },
      "tax": {
        "lines": [
          {
            "amount": 55.88,
            "currency": "EUR",
            "code": "STANDARD",
            "name": "STANDARD",
            "rate": 19,
            "sequenceId": 0,
            "inclusive": true
          }
        ],
        "total": {
          "amount": 0,
          "currency": "EUR",
          "inclusive": true
        }
      },
      "price": {
        "priceId": "679ca63dbcdefe5b380c98bc",
        "priceListId": "abc123",
        "currency": "EUR",
        "originalAmount": 350,
        "effectiveAmount": 350,
        "basePrice": {},
        "presentationPrice": {},
        "metadata": {
          "createdAt": "2025-01-31T10:30:21.998Z",
          "modifiedAt": "2025-01-31T10:30:21.998Z",
          "version": 1
        }
      },
      "totalDiscount": {
        "amount": 35.35,
        "currency": "EUR"
      },
      "fees": {
        "elements": [
          {
            "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
            "name": {
              "de": "Apple Picking Fee",
              "en": "Apple Picking Fee"
            },
            "taxCode": "REDUCED",
            "total": {
              "subTotal": 3.5,
              "totalTax": 0,
              "total": 3.15
            }
          }
        ],
        "total": {
          "subTotal": 3.5,
          "totalTax": 0,
          "total": 3.15
        }
      },
      "metadata": {
        "mixins": {
          "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
        }
      },
      "mixins": {
        "fees": {
          "elements": [
            {
              "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
              "name": {
                "de": "Apple Picking Fee",
                "en": "Apple Picking Fee"
              },
              "taxCode": "REDUCED",
              "total": {
                "subTotal": 3.5,
                "totalTax": 0,
                "total": 3.15,
                "discount": 0.35
              }
            }
          ],
          "total": {
            "subTotal": 3.5,
            "totalTax": 0,
            "total": 3.15,
            "discount": 0.35
          }
        }
      },
      "calculatedPrice": {
        "price": {
          "netValue": 294.118,
          "grossValue": 350,
          "taxValue": 55.882,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "discountedPrice": {
          "netValue": 179.832,
          "grossValue": 214,
          "taxValue": 34.168,
          "taxCode": "STANDARD",
          "taxRate": 19,
          "appliedDiscounts": [
            {
              "value": 35,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            },
            {
              "id": "ext-discount-001",
              "value": 101,
              "discountType": "ABSOLUTE",
              "origin": "EXTERNAL"
            }
          ]
        },
        "fees": [
          {
            "id": "677d49ca3a421b451eab23f2",
            "type": "ABSOLUTE",
            "origin": "INTERNAL",
            "name": {
              "de": "Apple Picking Fee",
              "en": "Apple Picking Fee"
            },
            "price": {
              "netValue": 3.5,
              "grossValue": 3.745,
              "taxValue": 0.245,
              "taxCode": "REDUCED",
              "taxRate": 7
            },
            "discountedPrice": {
              "netValue": 3.15,
              "grossValue": 3.37,
              "taxValue": 0.22,
              "taxCode": "REDUCED",
              "taxRate": 7,
              "appliedDiscounts": [
                {
                  "value": 0.375,
                  "discountType": "PERCENT",
                  "origin": "INTERNAL"
                }
              ]
            }
          }
        ],
        "totalFee": {
          "netValue": 3.15,
          "grossValue": 3.37,
          "taxValue": 0.22,
          "taxCode": "REDUCED",
          "taxRate": 7,
          "appliedDiscounts": [
            {
              "value": 0.375,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            }
          ]
        },
        "totalDiscount": {
          "calculationType": "ApplyDiscountAfterTax",
          "value": 136.375,
          "appliedDiscounts": [
            {
              "value": 35.375,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            },
            {
              "id": "ext-discount-001",
              "value": 101,
              "discountType": "ABSOLUTE",
              "origin": "EXTERNAL"
            }
          ]
        },
        "finalPrice": {
          "netValue": 182.982,
          "grossValue": 217.37,
          "taxValue": 34.388
        }
      },
      "priceMatchDetails": {
        "netValue": 294.11764705882354,
        "grossValue": 350,
        "taxValue": 55.88235294117647,
        "taxCode": "STANDARD",
        "taxRate": 19,
        "taxCountry": "DE"
      },
      "externalDiscounts": [
        {
          "id": "ext-discount-001",
          "discountType": "ABSOLUTE",
          "value": 101,
          "sequence": 1
        }
      ]
    }
  ],
  "discounts": [
    {
      "code": "TOTAL",
      "amount": 36.35,
      "currency": "EUR",
      "sequenceId": 1,
      "categoryRestricted": false
    },
    {
      "code": "LS10PTOTAL",
      "currency": "EUR",
      "name": "LS10PTOTAL",
      "discountRate": 10,
      "calculationType": "ApplyDiscountBeforeTax",
      "discountType": "PERCENT",
      "discountCalculationType": "TOTAL",
      "categoryRestricted": false
    }
  ],
  "customer": {
    "id": "45620894",
    "name": "John Dutton",
    "firstName": "John",
    "lastName": "Dutton",
    "email": "cartb2c.emporix@yopmail.com"
  },
  "siteCode": "GrossSite",
  "countryCode": "DE",
  "billingAddress": {
    "contactName": "Dom",
    "street": "Kochanowskiego",
    "streetNumber": "21",
    "streetAppendix": "",
    "zipCode": "44-122",
    "city": "Gliwice",
    "country": "DE",
    "state": "Slaskie",
    "contactPhone": ""
  },
  "shippingAddress": {
    "contactName": "Dom",
    "street": "Kochanowskiego",
    "streetNumber": "21",
    "streetAppendix": "",
    "zipCode": "44-122",
    "city": "Gliwice",
    "country": "DE",
    "state": "Slaskie",
    "contactPhone": ""
  },
  "payments": [
    {
      "status": "PENDING",
      "method": "invoice",
      "paidAmount": 0,
      "currency": "EUR",
      "provider": "stripe"
    }
  ],
  "shipping": {
    "total": {
      "amount": 10.9,
      "currency": "EUR"
    },
    "lines": [
      {
        "amount": 10,
        "currency": "EUR",
        "code": "Pickup",
        "name": "Pickup",
        "localizedName": {
          "en": "Pickup"
        },
        "tax": {
          "total": {
            "amount": 1.9,
            "currency": "EUR",
            "inclusive": false
          },
          "rate": 19
        },
        "shippingTaxCode": "STANDARD"
      }
    ]
  },
  "tax": {
    "lines": [
      {
        "amount": 57.78,
        "currency": "EUR",
        "code": "STANDARD",
        "name": "STANDARD",
        "rate": 19,
        "sequenceId": 0,
        "inclusive": false
      }
    ],
    "total": {
      "amount": 1.9,
      "currency": "EUR",
      "inclusive": false
    }
  },
  "subTotalPrice": 350,
  "totalPrice": 361.96,
  "totalAuthorizedAmount": 248.622,
  "currency": "EUR",
  "metadata": {
    "mixins": {
      "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
      "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json"
    },
    "version": 1
  },
  "mixins": {
    "payments": {
      "elements": [
        {
          "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:b2b2cstage;invoice",
          "fees": {
            "elements": [
              {
                "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;678f552a949c723de46bdb14",
                "name": {
                  "de": "Payment fee",
                  "en": "Payment fee"
                },
                "taxCode": "REDUCED",
                "total": {
                  "subTotal": 32.91,
                  "totalTax": 0,
                  "total": 32.91,
                  "discount": 0
                }
              }
            ],
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          },
          "total": {
            "subTotal": 32.91,
            "totalTax": 0,
            "total": 32.91,
            "discount": 0
          }
        }
      ],
      "total": {
        "subTotal": 32.91,
        "totalTax": 0,
        "total": 32.91,
        "discount": 0
      }
    },
    "generalAttributes": {
      "extendedOrderStatus": "10",
      "customerFirstOrder": false,
      "orderNumber": "EON1145"
    }
  },
  "feeYrnAggregate": {
    "elements": [
      {
        "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
        "name": {
          "de": "Apple Picking Fee",
          "en": "Apple Picking Fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 3.5,
          "totalTax": 0,
          "total": 3.15
        }
      },
      {
        "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;678f552a949c723de46bdb14",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 32.91,
          "totalTax": 0,
          "total": 32.91
        }
      }
    ],
    "total": {
      "subTotal": 36.41,
      "totalTax": 0,
      "total": 36.06
    }
  },
  "calculatedPrice": {
    "price": {
      "netValue": 294.118,
      "grossValue": 350,
      "taxValue": 55.882,
      "taxCode": "STANDARD",
      "taxRate": 19
    },
    "discountedPrice": {
      "netValue": 179.832,
      "grossValue": 214,
      "taxValue": 34.168,
      "taxCode": "STANDARD",
      "taxRate": 19,
      "appliedDiscounts": [
        {
          "value": 35,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        },
        {
          "id": "ext-discount-001",
          "value": 101,
          "discountType": "ABSOLUTE",
          "origin": "EXTERNAL"
        }
      ]
    },
    "paymentFees": [
      {
        "id": "678f552a949c723de46bdb14",
        "type": "PERCENT",
        "origin": "INTERNAL",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "price": {
          "netValue": 19.198,
          "grossValue": 20.542,
          "taxValue": 1.344,
          "taxCode": "REDUCED",
          "taxRate": 7
        }
      }
    ],
    "totalFee": {
      "netValue": 22.348,
      "grossValue": 23.912,
      "taxValue": 1.564,
      "taxCode": "REDUCED",
      "taxRate": 7,
      "appliedDiscounts": [
        {
          "value": 0.375,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        }
      ]
    },
    "totalDiscount": {
      "calculationType": "ApplyDiscountAfterTax",
      "value": 137.565,
      "appliedDiscounts": [
        {
          "value": 36.565,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        },
        {
          "id": "ext-discount-001",
          "value": 101,
          "discountType": "ABSOLUTE",
          "origin": "EXTERNAL"
        }
      ]
    },
    "totalShipping": {
      "netValue": 9,
      "grossValue": 10.71,
      "taxValue": 1.71,
      "taxCode": "STANDARD",
      "taxRate": 19,
      "appliedDiscounts": [
        {
          "value": 1.19,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        }
      ]
    },
    "finalPrice": {
      "netValue": 211.18,
      "grossValue": 248.622,
      "taxValue": 37.442,
      "taxAggregate": {
        "lines": [
          {
            "netValue": 22.348,
            "grossValue": 23.912,
            "taxValue": 1.564,
            "taxCode": "REDUCED",
            "taxRate": 7
          },
          {
            "netValue": 188.832,
            "grossValue": 224.71,
            "taxValue": 35.878,
            "taxCode": "STANDARD",
            "taxRate": 19
          }
        ]
      }
    }
  }
}

Deleting an order

delete

Deletes order with the specified ID. To be used by tenant's employees.

Required scopes

  • order.order_delete

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
204
Successful deletion
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
delete
DELETE /order-v2/{tenant}/salesorders/{orderId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Retrieving status transitions for an order

get

Retrieves all possible status transitions for a specific order. To be used by tenant's employees.

Required scopes

  • order.order_read

  • order.order_update

  • order.order_update_completed - for orders with a completed status

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
200
The request was successful. Status transitions for specific order returned.
application/json
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
get
GET /order-v2/{tenant}/salesorders/{orderId}/transitions HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "status": "CONFIRMED"
  }
]
  • GETRetrieving orders
  • POSTCreating a new order
  • HEADRetrieving the number of orders
  • GETRetrieving a specific order by ID
  • PUTUpdating an order
  • DELETEDeleting an order
  • PATCHPartially updating an order
  • GETRetrieving status transitions for an order
  • POSTUpdating order status
  • POSTRecalculating number of entries
  • POSTAdding entries to an order

Retrieving orders

get

Retrieves tenant's orders for administrative purposes. To be used by tenant's employees.

Required scopes

  • order.order_read

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
sortstringOptional

The list of comma-separated properties used to sort the results. By default, the column values are sorted in ascending order. Can either be in the form of fieldName or fieldName:asc,fieldName:desc. If you want to sort by localized attributes, you must use the following form: fieldName.language or fieldName.language:asc,fieldName.language:desc.

pageNumberinteger · min: 1Optional

The page number to be retrieved where the size of the pages must be specified by the pageSize parameter. The number of the first page is 1.

Default: 1
pageSizeinteger · min: 1Optional

The number of documents being retrieved on the page.

Default: 16
qstringOptional

A standard query parameter is used to search for specific values.

  • Searching for an item by string property: q=currency:USD where currency is the name of string field and USD is its required value.
  • Searching for items by number-based property:
    • Searching for items with specific value: q=tax.total.amount:20
    • Searching for items with value greater than: q=tax.total.amount:>20
    • Searching for items with value lower than: q=tax.total.amount:<20
    • Searching for items with value greater or equal than: q=tax.total.amount:>=20
    • Searching for items with value lower or equal than: q=tax.total.amount:<=20
    • Searching for items with within a range of values: q=tax.total.amount:(>=10 AND <=20)
      where tax.total.amount is name of number-based field and 20 is it's querying value.
  • Searching for items by date property. All number-based property queries are valid also for dates. In that case the date should be placed within double quotes: q=created:(>="2021-05-18T07:27:27.455Z" AND <"2021-05-20T07:27:27.455Z")
  • Searching for items by boolean value: q=customer.mixins.generalAttributes.invoiceNotDeliveryAddress:true where customer.mixins.generalAttributes.invoiceNotDeliveryAddress is a name of boolean field and 'true' is it`s required value.
  • Searching for items with non existing or empty property: q=billingAddress.contactPhone:null where billingAddress.contactPhone is a name of fields that has value null.
  • Searching for items with existing property: q=mixin:exists where mixin is a name of field that has non null value.
  • Searching for items by multiple specific values: q=id:(order_id1,order_id2) where id is name of field and strings within a bracket are it's required value.
  • Searching for items by multiple fields: q=id:order_id1 status:COMPLETED where id and status are the names of fields. All documents that contain given values of these fields are returned. Multiple fields separated by space can be specified. Multiple values for each field can be also specified in a format presented above.
Example: currency:USD
fieldsstringOptional

A list of comma-separated fields names of the Order. If the field is empty then full order is returned. Otherwise, only the indicated fields will be populated in a response.

Responses
200
The request was successful. List of orders with details are returned.
application/json
400
Request was syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
500
Some server side error occurred.
application/json
get
GET /order-v2/{tenant}/salesorders HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "status": "IN_CHECKOUT",
    "entries": [
      {
        "id": "BC10033--BC10033-43",
        "itemYrn": "urn:yaas:saasag:caasproduct:product:test;BC10033--BC10033-43",
        "amount": 3,
        "orderedAmount": 3,
        "effectiveQuantity": 3,
        "originalAmount": 100,
        "originalPrice": 100,
        "unitPrice": 100,
        "calculatedUnitPrice": {
          "netValue": 100,
          "grossValue": 119,
          "taxValue": 19,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "totalPrice": 300,
        "authorizedAmount": 300,
        "product": {
          "metadata": {
            "mixins": {
              "productTemplateAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-templateAttributes_v1.json",
              "productVariantAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-variantAttributes_v1.json"
            }
          },
          "id": "BC10033--BC10033-43",
          "sku": "8033546091234",
          "name": "Safety shoes high Reptile RS S3 SRC, black",
          "localizedName": {
            "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
            "en": "Safety shoes high Reptile RS S3 SRC, black"
          },
          "description": "[de:Sicherheitsstiefel, klassisch und robust, U-Power Style&Job Linie, Obermaterial aus wasserabweisendem, bedrucktem Leder, Stahlkappe, Durchtrittsicherheit, rutschfest, ergonomisches Inox Laminat und PU/PU Sohle, RS S3 SRC., en:Safety shoes high, U-Power, classic and strong of the \"Style & Job\" range, with water repellent printed leather upper, steel toe cap, anti-puncture, anti-slip, ergonomic steel foil and PU / PU sole, RS S3 SRC.]",
          "published": true,
          "images": [
            {
              "id": "6437eb7f8fc03d22f4e856ce",
              "url": "http://res.cloudinary.com/saas-ag/image/upload/v1681386368/test/media/6437eb7f8fc03d22f4e856ce",
              "stored": false
            }
          ],
          "mixins": {
            "productVariantAttributes": {
              "size": 43
            }
          },
          "productType": "VARIANT"
        },
        "tax": {
          "lines": [
            {
              "amount": 57,
              "currency": "EUR",
              "code": "STANDARD",
              "name": "STANDARD",
              "rate": 19,
              "sequenceId": 0,
              "inclusive": false
            }
          ],
          "total": {
            "amount": 0,
            "currency": "EUR",
            "inclusive": false
          }
        },
        "price": {
          "priceId": "6763cd21139f370cd9244d37",
          "currency": "EUR",
          "originalAmount": 100,
          "effectiveAmount": 100,
          "basePrice": {},
          "presentationPrice": {},
          "metadata": {
            "createdAt": "2024-12-19T07:37:05.559Z",
            "modifiedAt": "2024-12-19T07:37:05.559Z",
            "version": 1
          }
        },
        "totalDiscount": {
          "amount": 0,
          "currency": "EUR"
        },
        "fees": {
          "total": {
            "subTotal": 0,
            "totalTax": 0,
            "total": 0
          }
        },
        "metadata": {
          "mixins": {
            "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
          }
        },
        "mixins": {
          "fees": {
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          }
        },
        "calculatedPrice": {
          "price": {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          },
          "finalPrice": {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          }
        },
        "priceMatchDetails": {
          "netValue": 100,
          "grossValue": 119,
          "taxValue": 19,
          "taxCode": "STANDARD",
          "taxRate": 19,
          "taxCountry": "DE"
        }
      }
    ],
    "discounts": [],
    "customer": {
      "id": "61443563",
      "name": "Test name",
      "firstName": "John",
      "lastName": "Smith",
      "company": "Emporix",
      "email": "test@test.com"
    },
    "siteCode": "DE",
    "countryCode": "DE",
    "billingAddress": {
      "contactName": "Templatecompany",
      "companyName": "Templatecompany",
      "street": "Strasse 1",
      "streetNumber": "",
      "zipCode": "12221",
      "city": "Berlin",
      "country": "DE",
      "state": "DE"
    },
    "shippingAddress": {
      "contactName": "Templatecompany",
      "companyName": "Templatecompany",
      "street": "Strasse 1",
      "streetNumber": "",
      "zipCode": "12221",
      "city": "Berlin",
      "country": "DE",
      "state": "DE"
    },
    "payments": [
      {
        "status": "PENDING",
        "method": "invoice",
        "paymentResponse": "Payment is handled externally",
        "paidAmount": 0,
        "currency": "EUR",
        "transactionId": "fcc2bf50-f064-4dc3-833f-0909a7857387",
        "authorizedAmount": 373.12,
        "provider": "payment-gateway"
      }
    ],
    "shipping": {
      "total": {
        "amount": 39.2,
        "currency": "EUR"
      },
      "lines": [
        {
          "amount": 35,
          "currency": "EUR",
          "code": "pickup",
          "name": "pickup",
          "localizedName": {
            "en": "pickup",
            "de": "pickup"
          },
          "tax": {
            "total": {
              "amount": 4.2,
              "currency": "EUR",
              "inclusive": false
            },
            "rate": 12
          },
          "shippingTaxCode": "REDUCED"
        }
      ]
    },
    "tax": {
      "lines": [
        {
          "amount": 4.2,
          "currency": "EUR",
          "code": "REDUCED",
          "name": "REDUCED",
          "rate": 12,
          "sequenceId": 0,
          "inclusive": false
        },
        {
          "amount": 57,
          "currency": "EUR",
          "code": "STANDARD",
          "name": "STANDARD",
          "rate": 19,
          "sequenceId": 1,
          "inclusive": false
        }
      ],
      "total": {
        "amount": 0,
        "currency": "EUR",
        "inclusive": false
      }
    },
    "subTotalPrice": 300,
    "totalPrice": 333.92,
    "totalAuthorizedAmount": 373.12,
    "currency": "EUR",
    "metadata": {
      "mixins": {
        "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
        "deliveryTime": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryTimeMixIn.v2.json",
        "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
        "payment": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/paymentMixIn.v3.json"
      },
      "version": 1
    },
    "mixins": {
      "payments": {
        "elements": [
          {
            "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:test;invoice",
            "fees": {
              "elements": [
                {
                  "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
                  "name": {
                    "de": "Payment fee",
                    "en": "Payment fee"
                  },
                  "taxCode": "REDUCED",
                  "total": {
                    "subTotal": 33.92,
                    "totalTax": 0,
                    "total": 33.92,
                    "discount": 0
                  }
                }
              ],
              "total": {
                "subTotal": 0,
                "totalTax": 0,
                "total": 0,
                "discount": 0
              }
            },
            "total": {
              "subTotal": 33.92,
              "totalTax": 0,
              "total": 33.92,
              "discount": 0
            }
          }
        ],
        "total": {
          "subTotal": 33.92,
          "totalTax": 0,
          "total": 33.92,
          "discount": 0
        }
      },
      "deliveryTime": {
        "deliveryTimeId": "64e36da5814eba1635228dfe",
        "deliveryDate": "2025-02-07T11:00:00.000Z",
        "deliveryTimeFrom": "10:00",
        "deliveryTimeTo": "14:30",
        "deliveryTimeZoneId": "deliveryarea",
        "deliveryTimeMethodId": "pickup",
        "deliveryCosts": 35
      },
      "generalAttributes": {
        "extendedOrderStatus": "05",
        "customerFirstOrder": false,
        "orderNumber": "EON2076"
      },
      "payment": {
        "paymentType": "invoice"
      }
    },
    "deliveryWindow": {
      "id": "64e36da5814eba1635228dfe",
      "slotId": "c291c677-5460-4efb-b893-145c866a2af2",
      "deliveryDate": "2025-02-07",
      "deliveryCycle": "2025-02-07-15pickupFriday1000-1430",
      "deliveryCycleName": "pickupFriday1000-1430",
      "deliveryTimeRange": {
        "timeFrom": "10:00",
        "timeTo": "14:30"
      }
    },
    "feeYrnAggregate": {
      "elements": [
        {
          "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
          "name": {
            "de": "Payment fee",
            "en": "Payment fee"
          },
          "taxCode": "REDUCED",
          "total": {
            "subTotal": 33.92,
            "totalTax": 0,
            "total": 33.92
          }
        }
      ],
      "total": {
        "subTotal": 33.92,
        "totalTax": 0,
        "total": 33.92
      }
    },
    "calculatedPrice": {
      "price": {
        "netValue": 300,
        "grossValue": 357,
        "taxValue": 57,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "paymentFees": [
        {
          "id": "678f552a949c723de46bdb14",
          "type": "PERCENT",
          "name": {
            "de": "Payment fee",
            "en": "Payment fee"
          },
          "price": {
            "netValue": 33.5,
            "grossValue": 37.52,
            "taxValue": 4.02,
            "taxCode": "REDUCED",
            "taxRate": 12
          }
        }
      ],
      "totalFee": {
        "netValue": 33.5,
        "grossValue": 37.52,
        "taxValue": 4.02,
        "taxCode": "REDUCED",
        "taxRate": 12
      },
      "totalShipping": {
        "netValue": 35,
        "grossValue": 39.2,
        "taxValue": 4.2,
        "taxCode": "REDUCED",
        "taxRate": 12
      },
      "finalPrice": {
        "netValue": 368.5,
        "grossValue": 433.72,
        "taxValue": 65.22,
        "taxAggregate": {
          "lines": [
            {
              "netValue": 33.5,
              "grossValue": 37.52,
              "taxValue": 4.02,
              "taxCode": "REDUCED",
              "taxRate": 12
            },
            {
              "netValue": 300,
              "grossValue": 357,
              "taxValue": 57,
              "taxCode": "STANDARD",
              "taxRate": 19
            },
            {
              "netValue": 35,
              "grossValue": 39.2,
              "taxValue": 4.2,
              "taxCode": "REDUCED",
              "taxRate": 12
            }
          ]
        }
      }
    },
    "channel": {},
    "created": "2025-01-30T13:45:34.406Z",
    "lastStatusChange": "2025-01-30T13:45:34.406Z",
    "id": "EON2076",
    "createdBy": "61443563"
  },
  {
    "status": "IN_CHECKOUT",
    "entries": [
      {
        "id": "BC10033--BC10033-43",
        "itemYrn": "urn:yaas:saasag:caasproduct:product:test;BC10033--BC10033-43",
        "amount": 3,
        "orderedAmount": 3,
        "effectiveQuantity": 3,
        "originalAmount": 100,
        "originalPrice": 100,
        "unitPrice": 100,
        "calculatedUnitPrice": {
          "netValue": 100,
          "grossValue": 119,
          "taxValue": 19,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "totalPrice": 300,
        "authorizedAmount": 300,
        "product": {
          "metadata": {
            "mixins": {
              "productTemplateAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-templateAttributes_v1.json",
              "productVariantAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-variantAttributes_v1.json"
            }
          },
          "id": "BC10033--BC10033-43",
          "sku": "8033546091234",
          "name": "Safety shoes high Reptile RS S3 SRC, black",
          "localizedName": {
            "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
            "en": "Safety shoes high Reptile RS S3 SRC, black"
          },
          "description": "[de:Sicherheitsstiefel, klassisch und robust, U-Power Style&Job Linie, Obermaterial aus wasserabweisendem, bedrucktem Leder, Stahlkappe, Durchtrittsicherheit, rutschfest, ergonomisches Inox Laminat und PU/PU Sohle, RS S3 SRC., en:Safety shoes high, U-Power, classic and strong of the \"Style & Job\" range, with water repellent printed leather upper, steel toe cap, anti-puncture, anti-slip, ergonomic steel foil and PU / PU sole, RS S3 SRC.]",
          "published": true,
          "images": [
            {
              "id": "6437eb7f8fc03d22f4e856ce",
              "url": "http://res.cloudinary.com/saas-ag/image/upload/v1681386368/test/media/6437eb7f8fc03d22f4e856ce",
              "stored": false
            }
          ],
          "mixins": {
            "productVariantAttributes": {
              "size": 43
            }
          },
          "productType": "VARIANT"
        },
        "tax": {
          "lines": [
            {
              "amount": 57,
              "currency": "EUR",
              "code": "STANDARD",
              "name": "STANDARD",
              "rate": 19,
              "sequenceId": 0,
              "inclusive": false
            }
          ],
          "total": {
            "amount": 0,
            "currency": "EUR",
            "inclusive": false
          }
        },
        "price": {
          "priceId": "6763cd21139f370cd9244d37",
          "currency": "EUR",
          "originalAmount": 100,
          "effectiveAmount": 100,
          "basePrice": {},
          "presentationPrice": {},
          "metadata": {
            "createdAt": "2024-12-19T07:37:05.559Z",
            "modifiedAt": "2024-12-19T07:37:05.559Z",
            "version": 1
          }
        },
        "totalDiscount": {
          "amount": 0,
          "currency": "EUR"
        },
        "fees": {
          "total": {
            "subTotal": 0,
            "totalTax": 0,
            "total": 0
          }
        },
        "metadata": {
          "mixins": {
            "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
          }
        },
        "mixins": {
          "fees": {
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          }
        },
        "calculatedPrice": {
          "price": {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          },
          "finalPrice": {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          }
        },
        "priceMatchDetails": {
          "netValue": 100,
          "grossValue": 119,
          "taxValue": 19,
          "taxCode": "STANDARD",
          "taxRate": 19,
          "taxCountry": "DE"
        }
      }
    ],
    "discounts": [],
    "customer": {
      "id": "61443563",
      "name": "Test name",
      "firstName": "John",
      "lastName": "Smith",
      "company": "Emporix",
      "email": "test@test.com"
    },
    "siteCode": "DE",
    "countryCode": "DE",
    "billingAddress": {
      "contactName": "Templatecompany",
      "companyName": "Templatecompany",
      "street": "Strasse 1",
      "streetNumber": "",
      "zipCode": "12221",
      "city": "Berlin",
      "country": "DE",
      "state": "DE"
    },
    "shippingAddress": {
      "contactName": "Templatecompany",
      "companyName": "Templatecompany",
      "street": "Strasse 1",
      "streetNumber": "",
      "zipCode": "12221",
      "city": "Berlin",
      "country": "DE",
      "state": "DE"
    },
    "payments": [
      {
        "status": "PENDING",
        "method": "invoice",
        "paymentResponse": "Payment is handled externally",
        "paidAmount": 0,
        "currency": "EUR",
        "transactionId": "fcc2bf50-f064-4dc3-833f-0909a7857387",
        "authorizedAmount": 373.12,
        "provider": "payment-gateway"
      }
    ],
    "shipping": {
      "total": {
        "amount": 39.2,
        "currency": "EUR"
      },
      "lines": [
        {
          "amount": 35,
          "currency": "EUR",
          "code": "pickup",
          "name": "pickup",
          "localizedName": {
            "en": "pickup",
            "de": "pickup"
          },
          "tax": {
            "total": {
              "amount": 4.2,
              "currency": "EUR",
              "inclusive": false
            },
            "rate": 12
          },
          "shippingTaxCode": "REDUCED"
        }
      ]
    },
    "tax": {
      "lines": [
        {
          "amount": 4.2,
          "currency": "EUR",
          "code": "REDUCED",
          "name": "REDUCED",
          "rate": 12,
          "sequenceId": 0,
          "inclusive": false
        },
        {
          "amount": 57,
          "currency": "EUR",
          "code": "STANDARD",
          "name": "STANDARD",
          "rate": 19,
          "sequenceId": 1,
          "inclusive": false
        }
      ],
      "total": {
        "amount": 0,
        "currency": "EUR",
        "inclusive": false
      }
    },
    "subTotalPrice": 300,
    "totalPrice": 333.92,
    "totalAuthorizedAmount": 373.12,
    "currency": "EUR",
    "metadata": {
      "mixins": {
        "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
        "deliveryTime": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryTimeMixIn.v2.json",
        "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
        "payment": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/paymentMixIn.v3.json"
      },
      "version": 1
    },
    "mixins": {
      "payments": {
        "elements": [
          {
            "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:test;invoice",
            "fees": {
              "elements": [
                {
                  "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
                  "name": {
                    "de": "Payment fee",
                    "en": "Payment fee"
                  },
                  "taxCode": "REDUCED",
                  "total": {
                    "subTotal": 33.92,
                    "totalTax": 0,
                    "total": 33.92,
                    "discount": 0
                  }
                }
              ],
              "total": {
                "subTotal": 0,
                "totalTax": 0,
                "total": 0,
                "discount": 0
              }
            },
            "total": {
              "subTotal": 33.92,
              "totalTax": 0,
              "total": 33.92,
              "discount": 0
            }
          }
        ],
        "total": {
          "subTotal": 33.92,
          "totalTax": 0,
          "total": 33.92,
          "discount": 0
        }
      },
      "deliveryTime": {
        "deliveryTimeId": "64e36da5814eba1635228dfe",
        "deliveryDate": "2025-02-07T11:00:00.000Z",
        "deliveryTimeFrom": "10:00",
        "deliveryTimeTo": "14:30",
        "deliveryTimeZoneId": "deliveryarea",
        "deliveryTimeMethodId": "pickup",
        "deliveryCosts": 35
      },
      "generalAttributes": {
        "extendedOrderStatus": "05",
        "customerFirstOrder": false,
        "orderNumber": "EON2076"
      },
      "payment": {
        "paymentType": "invoice"
      }
    },
    "deliveryWindow": {
      "id": "64e36da5814eba1635228dfe",
      "slotId": "c291c677-5460-4efb-b893-145c866a2af2",
      "deliveryDate": "2025-02-07",
      "deliveryCycle": "2025-02-07-15pickupFriday1000-1430",
      "deliveryCycleName": "pickupFriday1000-1430",
      "deliveryTimeRange": {
        "timeFrom": "10:00",
        "timeTo": "14:30"
      }
    },
    "feeYrnAggregate": {
      "elements": [
        {
          "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
          "name": {
            "de": "Payment fee",
            "en": "Payment fee"
          },
          "taxCode": "REDUCED",
          "total": {
            "subTotal": 33.92,
            "totalTax": 0,
            "total": 33.92
          }
        }
      ],
      "total": {
        "subTotal": 33.92,
        "totalTax": 0,
        "total": 33.92
      }
    },
    "calculatedPrice": {
      "price": {
        "netValue": 300,
        "grossValue": 357,
        "taxValue": 57,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "paymentFees": [
        {
          "id": "678f552a949c723de46bdb14",
          "type": "PERCENT",
          "name": {
            "de": "Payment fee",
            "en": "Payment fee"
          },
          "price": {
            "netValue": 33.5,
            "grossValue": 37.52,
            "taxValue": 4.02,
            "taxCode": "REDUCED",
            "taxRate": 12
          }
        }
      ],
      "totalFee": {
        "netValue": 33.5,
        "grossValue": 37.52,
        "taxValue": 4.02,
        "taxCode": "REDUCED",
        "taxRate": 12
      },
      "totalShipping": {
        "netValue": 35,
        "grossValue": 39.2,
        "taxValue": 4.2,
        "taxCode": "REDUCED",
        "taxRate": 12
      },
      "finalPrice": {
        "netValue": 368.5,
        "grossValue": 433.72,
        "taxValue": 65.22,
        "taxAggregate": {
          "lines": [
            {
              "netValue": 33.5,
              "grossValue": 37.52,
              "taxValue": 4.02,
              "taxCode": "REDUCED",
              "taxRate": 12
            },
            {
              "netValue": 300,
              "grossValue": 357,
              "taxValue": 57,
              "taxCode": "STANDARD",
              "taxRate": 19
            },
            {
              "netValue": 35,
              "grossValue": 39.2,
              "taxValue": 4.2,
              "taxCode": "REDUCED",
              "taxRate": 12
            }
          ]
        }
      }
    },
    "channel": {},
    "created": "2025-01-30T13:45:34.406Z",
    "lastStatusChange": "2025-01-30T13:45:34.406Z",
    "id": "EON2076",
    "createdBy": "61443563"
  }
]

Creating a new order

post

Creates an order by the tenant's employee, on behalf of a customer.

Note: The entries.originalAmount is DEPRECATED. Use the entries.originalPrice field instead.

Required scopes

  • order.order_create

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
all ofOptional

The order creation DTO.

and
Responses
201
The collection resource has been successfully created.
application/json
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Given authorization scopes are not sufficient and do not match required scopes.
application/json
409
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
application/json
500
Some server side error occurred.
application/json
post
POST /order-v2/{tenant}/salesorders HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 7041

{
  "status": "IN_CHECKOUT",
  "entries": [
    {
      "id": "BC10033--BC10033-43",
      "itemYrn": "urn:yaas:saasag:caasproduct:product:test;BC10033--BC10033-43",
      "amount": 3,
      "orderedAmount": 3,
      "effectiveQuantity": 3,
      "originalAmount": 100,
      "originalPrice": 100,
      "unitPrice": 100,
      "calculatedUnitPrice": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "totalPrice": 300,
      "authorizedAmount": 300,
      "product": {
        "metadata": {
          "mixins": {
            "productTemplateAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-templateAttributes_v1.json",
            "productVariantAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-variantAttributes_v1.json"
          }
        },
        "id": "BC10033--BC10033-43",
        "sku": "8033546091234",
        "name": "Safety shoes high Reptile RS S3 SRC, black",
        "localizedName": {
          "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
          "en": "Safety shoes high Reptile RS S3 SRC, black"
        },
        "description": "[de:Sicherheitsstiefel, klassisch und robust, U-Power Style&Job Linie, Obermaterial aus wasserabweisendem, bedrucktem Leder, Stahlkappe, Durchtrittsicherheit, rutschfest, ergonomisches Inox Laminat und PU/PU Sohle, RS S3 SRC., en:Safety shoes high, U-Power, classic and strong of the \"Style & Job\" range, with water repellent printed leather upper, steel toe cap, anti-puncture, anti-slip, ergonomic steel foil and PU / PU sole, RS S3 SRC.]",
        "published": true,
        "images": [
          {
            "id": "6437eb7f8fc03d22f4e856ce",
            "url": "http://res.cloudinary.com/saas-ag/image/upload/v1681386368/test/media/6437eb7f8fc03d22f4e856ce",
            "stored": false
          }
        ],
        "mixins": {
          "productVariantAttributes": {
            "size": 43
          }
        },
        "productType": "VARIANT"
      },
      "tax": {
        "lines": [
          {
            "amount": 57,
            "currency": "EUR",
            "code": "STANDARD",
            "name": "STANDARD",
            "rate": 19,
            "sequenceId": 0,
            "inclusive": false
          }
        ],
        "total": {
          "amount": 0,
          "currency": "EUR",
          "inclusive": false
        }
      },
      "price": {
        "priceId": "6763cd21139f370cd9244d37",
        "currency": "EUR",
        "originalAmount": 100,
        "effectiveAmount": 100,
        "basePrice": {},
        "presentationPrice": {},
        "metadata": {
          "createdAt": "2024-12-19T07:37:05.559Z",
          "modifiedAt": "2024-12-19T07:37:05.559Z",
          "version": 1
        }
      },
      "totalDiscount": {
        "amount": 0,
        "currency": "EUR"
      },
      "fees": {
        "total": {
          "subTotal": 0,
          "totalTax": 0,
          "total": 0
        }
      },
      "metadata": {
        "mixins": {
          "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
        }
      },
      "mixins": {
        "fees": {
          "total": {
            "subTotal": 0,
            "totalTax": 0,
            "total": 0,
            "discount": 0
          }
        }
      },
      "calculatedPrice": {
        "price": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "finalPrice": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        }
      },
      "priceMatchDetails": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19,
        "taxCountry": "DE"
      }
    }
  ],
  "discounts": [],
  "customer": {
    "id": "61443563",
    "name": "Test name",
    "firstName": "John",
    "lastName": "Smith",
    "company": "Emporix",
    "email": "test@test.com"
  },
  "siteCode": "DE",
  "countryCode": "DE",
  "billingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "shippingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "payments": [
    {
      "status": "PENDING",
      "method": "invoice",
      "paymentResponse": "Payment is handled externally",
      "paidAmount": 0,
      "currency": "EUR",
      "transactionId": "fcc2bf50-f064-4dc3-833f-0909a7857387",
      "authorizedAmount": 373.12,
      "provider": "payment-gateway"
    }
  ],
  "shipping": {
    "total": {
      "amount": 39.2,
      "currency": "EUR"
    },
    "lines": [
      {
        "amount": 35,
        "currency": "EUR",
        "code": "pickup",
        "name": "pickup",
        "localizedName": {
          "en": "pickup",
          "de": "pickup"
        },
        "tax": {
          "total": {
            "amount": 4.2,
            "currency": "EUR",
            "inclusive": false
          },
          "rate": 12
        },
        "shippingTaxCode": "REDUCED"
      }
    ]
  },
  "tax": {
    "lines": [
      {
        "amount": 4.2,
        "currency": "EUR",
        "code": "REDUCED",
        "name": "REDUCED",
        "rate": 12,
        "sequenceId": 0,
        "inclusive": false
      },
      {
        "amount": 57,
        "currency": "EUR",
        "code": "STANDARD",
        "name": "STANDARD",
        "rate": 19,
        "sequenceId": 1,
        "inclusive": false
      }
    ],
    "total": {
      "amount": 0,
      "currency": "EUR",
      "inclusive": false
    }
  },
  "subTotalPrice": 300,
  "totalPrice": 333.92,
  "totalAuthorizedAmount": 373.12,
  "currency": "EUR",
  "metadata": {
    "mixins": {
      "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
      "deliveryTime": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryTimeMixIn.v2.json",
      "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
      "payment": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/paymentMixIn.v3.json"
    },
    "version": 1
  },
  "mixins": {
    "payments": {
      "elements": [
        {
          "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:test;invoice",
          "fees": {
            "elements": [
              {
                "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
                "name": {
                  "de": "Payment fee",
                  "en": "Payment fee"
                },
                "taxCode": "REDUCED",
                "total": {
                  "subTotal": 33.92,
                  "totalTax": 0,
                  "total": 33.92,
                  "discount": 0
                }
              }
            ],
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          },
          "total": {
            "subTotal": 33.92,
            "totalTax": 0,
            "total": 33.92,
            "discount": 0
          }
        }
      ],
      "total": {
        "subTotal": 33.92,
        "totalTax": 0,
        "total": 33.92,
        "discount": 0
      }
    },
    "deliveryTime": {
      "deliveryTimeId": "64e36da5814eba1635228dfe",
      "deliveryDate": "2025-02-07T11:00:00.000Z",
      "deliveryTimeFrom": "10:00",
      "deliveryTimeTo": "14:30",
      "deliveryTimeZoneId": "deliveryarea",
      "deliveryTimeMethodId": "pickup",
      "deliveryCosts": 35
    },
    "generalAttributes": {
      "extendedOrderStatus": "05",
      "customerFirstOrder": false,
      "orderNumber": "EON2076"
    },
    "payment": {
      "paymentType": "invoice"
    }
  },
  "deliveryWindow": {
    "id": "64e36da5814eba1635228dfe",
    "slotId": "c291c677-5460-4efb-b893-145c866a2af2",
    "deliveryDate": "2025-02-07",
    "deliveryCycle": "2025-02-07-15pickupFriday1000-1430",
    "deliveryCycleName": "pickupFriday1000-1430",
    "deliveryTimeRange": {
      "timeFrom": "10:00",
      "timeTo": "14:30"
    }
  },
  "feeYrnAggregate": {
    "elements": [
      {
        "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 33.92,
          "totalTax": 0,
          "total": 33.92
        }
      }
    ],
    "total": {
      "subTotal": 33.92,
      "totalTax": 0,
      "total": 33.92
    }
  },
  "calculatedPrice": {
    "price": {
      "netValue": 300,
      "grossValue": 357,
      "taxValue": 57,
      "taxCode": "STANDARD",
      "taxRate": 19
    },
    "paymentFees": [
      {
        "id": "678f552a949c723de46bdb14",
        "type": "PERCENT",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "price": {
          "netValue": 33.5,
          "grossValue": 37.52,
          "taxValue": 4.02,
          "taxCode": "REDUCED",
          "taxRate": 12
        }
      }
    ],
    "totalFee": {
      "netValue": 33.5,
      "grossValue": 37.52,
      "taxValue": 4.02,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "totalShipping": {
      "netValue": 35,
      "grossValue": 39.2,
      "taxValue": 4.2,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "finalPrice": {
      "netValue": 368.5,
      "grossValue": 433.72,
      "taxValue": 65.22,
      "taxAggregate": {
        "lines": [
          {
            "netValue": 33.5,
            "grossValue": 37.52,
            "taxValue": 4.02,
            "taxCode": "REDUCED",
            "taxRate": 12
          },
          {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          },
          {
            "netValue": 35,
            "grossValue": 39.2,
            "taxValue": 4.2,
            "taxCode": "REDUCED",
            "taxRate": 12
          }
        ]
      }
    },
    "channel": {},
    "created": "2025-01-30T13:45:34.406Z",
    "lastStatusChange": "2025-01-30T13:45:34.406Z",
    "id": "EON2076",
    "createdBy": "61443563"
  }
}
{
  "id": "1234546"
}

Updating an order

put

Updates an order with the specified order ID. To be used by tenant's employees.

Required scopes

  • order.order_update

  • order.order_update_completed - for updating orders with a completed status

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
recalculatebooleanOptional

Flag that enforces order recalculation. If set to true, the whole order, including the coupon discounts, will be recalculated.

Default: false
Body
all ofOptional
and
Responses
204
Successful order update
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
409
Optimistic locking failed. User sends metadata/version attribute which is outdated (someone else updated order in the time user was performing his changes). User should retrieve the latest order data and retry the request.
application/json
500
Some server side error occurred.
application/json
put
PUT /order-v2/{tenant}/salesorders/{orderId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 7041

{
  "status": "IN_CHECKOUT",
  "entries": [
    {
      "id": "BC10033--BC10033-43",
      "itemYrn": "urn:yaas:saasag:caasproduct:product:test;BC10033--BC10033-43",
      "amount": 3,
      "orderedAmount": 3,
      "effectiveQuantity": 3,
      "originalAmount": 100,
      "originalPrice": 100,
      "unitPrice": 100,
      "calculatedUnitPrice": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "totalPrice": 300,
      "authorizedAmount": 300,
      "product": {
        "metadata": {
          "mixins": {
            "productTemplateAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-templateAttributes_v1.json",
            "productVariantAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-variantAttributes_v1.json"
          }
        },
        "id": "BC10033--BC10033-43",
        "sku": "8033546091234",
        "name": "Safety shoes high Reptile RS S3 SRC, black",
        "localizedName": {
          "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
          "en": "Safety shoes high Reptile RS S3 SRC, black"
        },
        "description": "[de:Sicherheitsstiefel, klassisch und robust, U-Power Style&Job Linie, Obermaterial aus wasserabweisendem, bedrucktem Leder, Stahlkappe, Durchtrittsicherheit, rutschfest, ergonomisches Inox Laminat und PU/PU Sohle, RS S3 SRC., en:Safety shoes high, U-Power, classic and strong of the \"Style & Job\" range, with water repellent printed leather upper, steel toe cap, anti-puncture, anti-slip, ergonomic steel foil and PU / PU sole, RS S3 SRC.]",
        "published": true,
        "images": [
          {
            "id": "6437eb7f8fc03d22f4e856ce",
            "url": "http://res.cloudinary.com/saas-ag/image/upload/v1681386368/test/media/6437eb7f8fc03d22f4e856ce",
            "stored": false
          }
        ],
        "mixins": {
          "productVariantAttributes": {
            "size": 43
          }
        },
        "productType": "VARIANT"
      },
      "tax": {
        "lines": [
          {
            "amount": 57,
            "currency": "EUR",
            "code": "STANDARD",
            "name": "STANDARD",
            "rate": 19,
            "sequenceId": 0,
            "inclusive": false
          }
        ],
        "total": {
          "amount": 0,
          "currency": "EUR",
          "inclusive": false
        }
      },
      "price": {
        "priceId": "6763cd21139f370cd9244d37",
        "currency": "EUR",
        "originalAmount": 100,
        "effectiveAmount": 100,
        "basePrice": {},
        "presentationPrice": {},
        "metadata": {
          "createdAt": "2024-12-19T07:37:05.559Z",
          "modifiedAt": "2024-12-19T07:37:05.559Z",
          "version": 1
        }
      },
      "totalDiscount": {
        "amount": 0,
        "currency": "EUR"
      },
      "fees": {
        "total": {
          "subTotal": 0,
          "totalTax": 0,
          "total": 0
        }
      },
      "metadata": {
        "mixins": {
          "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
        }
      },
      "mixins": {
        "fees": {
          "total": {
            "subTotal": 0,
            "totalTax": 0,
            "total": 0,
            "discount": 0
          }
        }
      },
      "calculatedPrice": {
        "price": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "finalPrice": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        }
      },
      "priceMatchDetails": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19,
        "taxCountry": "DE"
      }
    }
  ],
  "discounts": [],
  "customer": {
    "id": "61443563",
    "name": "Test name",
    "firstName": "John",
    "lastName": "Smith",
    "company": "Emporix",
    "email": "test@test.com"
  },
  "siteCode": "DE",
  "countryCode": "DE",
  "billingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "shippingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "payments": [
    {
      "status": "PENDING",
      "method": "invoice",
      "paymentResponse": "Payment is handled externally",
      "paidAmount": 0,
      "currency": "EUR",
      "transactionId": "fcc2bf50-f064-4dc3-833f-0909a7857387",
      "authorizedAmount": 373.12,
      "provider": "payment-gateway"
    }
  ],
  "shipping": {
    "total": {
      "amount": 39.2,
      "currency": "EUR"
    },
    "lines": [
      {
        "amount": 35,
        "currency": "EUR",
        "code": "pickup",
        "name": "pickup",
        "localizedName": {
          "en": "pickup",
          "de": "pickup"
        },
        "tax": {
          "total": {
            "amount": 4.2,
            "currency": "EUR",
            "inclusive": false
          },
          "rate": 12
        },
        "shippingTaxCode": "REDUCED"
      }
    ]
  },
  "tax": {
    "lines": [
      {
        "amount": 4.2,
        "currency": "EUR",
        "code": "REDUCED",
        "name": "REDUCED",
        "rate": 12,
        "sequenceId": 0,
        "inclusive": false
      },
      {
        "amount": 57,
        "currency": "EUR",
        "code": "STANDARD",
        "name": "STANDARD",
        "rate": 19,
        "sequenceId": 1,
        "inclusive": false
      }
    ],
    "total": {
      "amount": 0,
      "currency": "EUR",
      "inclusive": false
    }
  },
  "subTotalPrice": 300,
  "totalPrice": 333.92,
  "totalAuthorizedAmount": 373.12,
  "currency": "EUR",
  "metadata": {
    "mixins": {
      "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
      "deliveryTime": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryTimeMixIn.v2.json",
      "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
      "payment": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/paymentMixIn.v3.json"
    },
    "version": 1
  },
  "mixins": {
    "payments": {
      "elements": [
        {
          "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:test;invoice",
          "fees": {
            "elements": [
              {
                "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
                "name": {
                  "de": "Payment fee",
                  "en": "Payment fee"
                },
                "taxCode": "REDUCED",
                "total": {
                  "subTotal": 33.92,
                  "totalTax": 0,
                  "total": 33.92,
                  "discount": 0
                }
              }
            ],
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          },
          "total": {
            "subTotal": 33.92,
            "totalTax": 0,
            "total": 33.92,
            "discount": 0
          }
        }
      ],
      "total": {
        "subTotal": 33.92,
        "totalTax": 0,
        "total": 33.92,
        "discount": 0
      }
    },
    "deliveryTime": {
      "deliveryTimeId": "64e36da5814eba1635228dfe",
      "deliveryDate": "2025-02-07T11:00:00.000Z",
      "deliveryTimeFrom": "10:00",
      "deliveryTimeTo": "14:30",
      "deliveryTimeZoneId": "deliveryarea",
      "deliveryTimeMethodId": "pickup",
      "deliveryCosts": 35
    },
    "generalAttributes": {
      "extendedOrderStatus": "05",
      "customerFirstOrder": false,
      "orderNumber": "EON2076"
    },
    "payment": {
      "paymentType": "invoice"
    }
  },
  "deliveryWindow": {
    "id": "64e36da5814eba1635228dfe",
    "slotId": "c291c677-5460-4efb-b893-145c866a2af2",
    "deliveryDate": "2025-02-07",
    "deliveryCycle": "2025-02-07-15pickupFriday1000-1430",
    "deliveryCycleName": "pickupFriday1000-1430",
    "deliveryTimeRange": {
      "timeFrom": "10:00",
      "timeTo": "14:30"
    }
  },
  "feeYrnAggregate": {
    "elements": [
      {
        "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 33.92,
          "totalTax": 0,
          "total": 33.92
        }
      }
    ],
    "total": {
      "subTotal": 33.92,
      "totalTax": 0,
      "total": 33.92
    }
  },
  "calculatedPrice": {
    "price": {
      "netValue": 300,
      "grossValue": 357,
      "taxValue": 57,
      "taxCode": "STANDARD",
      "taxRate": 19
    },
    "paymentFees": [
      {
        "id": "678f552a949c723de46bdb14",
        "type": "PERCENT",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "price": {
          "netValue": 33.5,
          "grossValue": 37.52,
          "taxValue": 4.02,
          "taxCode": "REDUCED",
          "taxRate": 12
        }
      }
    ],
    "totalFee": {
      "netValue": 33.5,
      "grossValue": 37.52,
      "taxValue": 4.02,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "totalShipping": {
      "netValue": 35,
      "grossValue": 39.2,
      "taxValue": 4.2,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "finalPrice": {
      "netValue": 368.5,
      "grossValue": 433.72,
      "taxValue": 65.22,
      "taxAggregate": {
        "lines": [
          {
            "netValue": 33.5,
            "grossValue": 37.52,
            "taxValue": 4.02,
            "taxCode": "REDUCED",
            "taxRate": 12
          },
          {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          },
          {
            "netValue": 35,
            "grossValue": 39.2,
            "taxValue": 4.2,
            "taxCode": "REDUCED",
            "taxRate": 12
          }
        ]
      }
    }
  },
  "channel": {},
  "created": "2025-01-30T13:45:34.406Z",
  "lastStatusChange": "2025-01-30T13:45:34.406Z",
  "id": "EON2076",
  "createdBy": "61443563"
}

No content

Partially updating an order

patch

Updates partially an order with the specified order ID. To be used by tenant's employees.

Required scopes

  • order.order_update

  • order.order_update_completed - for updating orders with a completed status

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
recalculatebooleanOptional

Flag that enforces order recalculation. If set to true, the whole order, including the coupon discounts, will be recalculated.

Default: false
Body
all ofOptional
and
Responses
204
Successful order update
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
409
Optimistic locking failed. User sends metadata/version attribute which is outdated (someone else updated order in the time user was performing his changes). User should retrieve the latest order data and retry the request.
application/json
500
Some server side error occurred.
application/json
patch
PATCH /order-v2/{tenant}/salesorders/{orderId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 7041

{
  "status": "IN_CHECKOUT",
  "entries": [
    {
      "id": "BC10033--BC10033-43",
      "itemYrn": "urn:yaas:saasag:caasproduct:product:test;BC10033--BC10033-43",
      "amount": 3,
      "orderedAmount": 3,
      "effectiveQuantity": 3,
      "originalAmount": 100,
      "originalPrice": 100,
      "unitPrice": 100,
      "calculatedUnitPrice": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "totalPrice": 300,
      "authorizedAmount": 300,
      "product": {
        "metadata": {
          "mixins": {
            "productTemplateAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-templateAttributes_v1.json",
            "productVariantAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/test/63ec98500522b25c90b9e632-variantAttributes_v1.json"
          }
        },
        "id": "BC10033--BC10033-43",
        "sku": "8033546091234",
        "name": "Safety shoes high Reptile RS S3 SRC, black",
        "localizedName": {
          "de": "Hohe Sicherheitsschuhe Reptile RS S3 SRC, schwarz",
          "en": "Safety shoes high Reptile RS S3 SRC, black"
        },
        "description": "[de:Sicherheitsstiefel, klassisch und robust, U-Power Style&Job Linie, Obermaterial aus wasserabweisendem, bedrucktem Leder, Stahlkappe, Durchtrittsicherheit, rutschfest, ergonomisches Inox Laminat und PU/PU Sohle, RS S3 SRC., en:Safety shoes high, U-Power, classic and strong of the \"Style & Job\" range, with water repellent printed leather upper, steel toe cap, anti-puncture, anti-slip, ergonomic steel foil and PU / PU sole, RS S3 SRC.]",
        "published": true,
        "images": [
          {
            "id": "6437eb7f8fc03d22f4e856ce",
            "url": "http://res.cloudinary.com/saas-ag/image/upload/v1681386368/test/media/6437eb7f8fc03d22f4e856ce",
            "stored": false
          }
        ],
        "mixins": {
          "productVariantAttributes": {
            "size": 43
          }
        },
        "productType": "VARIANT"
      },
      "tax": {
        "lines": [
          {
            "amount": 57,
            "currency": "EUR",
            "code": "STANDARD",
            "name": "STANDARD",
            "rate": 19,
            "sequenceId": 0,
            "inclusive": false
          }
        ],
        "total": {
          "amount": 0,
          "currency": "EUR",
          "inclusive": false
        }
      },
      "price": {
        "priceId": "6763cd21139f370cd9244d37",
        "currency": "EUR",
        "originalAmount": 100,
        "effectiveAmount": 100,
        "basePrice": {},
        "presentationPrice": {},
        "metadata": {
          "createdAt": "2024-12-19T07:37:05.559Z",
          "modifiedAt": "2024-12-19T07:37:05.559Z",
          "version": 1
        }
      },
      "totalDiscount": {
        "amount": 0,
        "currency": "EUR"
      },
      "fees": {
        "total": {
          "subTotal": 0,
          "totalTax": 0,
          "total": 0
        }
      },
      "metadata": {
        "mixins": {
          "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
        }
      },
      "mixins": {
        "fees": {
          "total": {
            "subTotal": 0,
            "totalTax": 0,
            "total": 0,
            "discount": 0
          }
        }
      },
      "calculatedPrice": {
        "price": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "finalPrice": {
          "netValue": 300,
          "grossValue": 357,
          "taxValue": 57,
          "taxCode": "STANDARD",
          "taxRate": 19
        }
      },
      "priceMatchDetails": {
        "netValue": 100,
        "grossValue": 119,
        "taxValue": 19,
        "taxCode": "STANDARD",
        "taxRate": 19,
        "taxCountry": "DE"
      }
    }
  ],
  "discounts": [],
  "customer": {
    "id": "61443563",
    "name": "Test name",
    "firstName": "John",
    "lastName": "Smith",
    "company": "Emporix",
    "email": "test@test.com"
  },
  "siteCode": "DE",
  "countryCode": "DE",
  "billingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "shippingAddress": {
    "contactName": "Templatecompany",
    "companyName": "Templatecompany",
    "street": "Strasse 1",
    "streetNumber": "",
    "zipCode": "12221",
    "city": "Berlin",
    "country": "DE",
    "state": "DE"
  },
  "payments": [
    {
      "status": "PENDING",
      "method": "invoice",
      "paymentResponse": "Payment is handled externally",
      "paidAmount": 0,
      "currency": "EUR",
      "transactionId": "fcc2bf50-f064-4dc3-833f-0909a7857387",
      "authorizedAmount": 373.12,
      "provider": "payment-gateway"
    }
  ],
  "shipping": {
    "total": {
      "amount": 39.2,
      "currency": "EUR"
    },
    "lines": [
      {
        "amount": 35,
        "currency": "EUR",
        "code": "pickup",
        "name": "pickup",
        "localizedName": {
          "en": "pickup",
          "de": "pickup"
        },
        "tax": {
          "total": {
            "amount": 4.2,
            "currency": "EUR",
            "inclusive": false
          },
          "rate": 12
        },
        "shippingTaxCode": "REDUCED"
      }
    ]
  },
  "tax": {
    "lines": [
      {
        "amount": 4.2,
        "currency": "EUR",
        "code": "REDUCED",
        "name": "REDUCED",
        "rate": 12,
        "sequenceId": 0,
        "inclusive": false
      },
      {
        "amount": 57,
        "currency": "EUR",
        "code": "STANDARD",
        "name": "STANDARD",
        "rate": 19,
        "sequenceId": 1,
        "inclusive": false
      }
    ],
    "total": {
      "amount": 0,
      "currency": "EUR",
      "inclusive": false
    }
  },
  "subTotalPrice": 300,
  "totalPrice": 333.92,
  "totalAuthorizedAmount": 373.12,
  "currency": "EUR",
  "metadata": {
    "mixins": {
      "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
      "deliveryTime": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryTimeMixIn.v2.json",
      "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
      "payment": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/paymentMixIn.v3.json"
    },
    "version": 1
  },
  "mixins": {
    "payments": {
      "elements": [
        {
          "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:test;invoice",
          "fees": {
            "elements": [
              {
                "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
                "name": {
                  "de": "Payment fee",
                  "en": "Payment fee"
                },
                "taxCode": "REDUCED",
                "total": {
                  "subTotal": 33.92,
                  "totalTax": 0,
                  "total": 33.92,
                  "discount": 0
                }
              }
            ],
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          },
          "total": {
            "subTotal": 33.92,
            "totalTax": 0,
            "total": 33.92,
            "discount": 0
          }
        }
      ],
      "total": {
        "subTotal": 33.92,
        "totalTax": 0,
        "total": 33.92,
        "discount": 0
      }
    },
    "deliveryTime": {
      "deliveryTimeId": "64e36da5814eba1635228dfe",
      "deliveryDate": "2025-02-07T11:00:00.000Z",
      "deliveryTimeFrom": "10:00",
      "deliveryTimeTo": "14:30",
      "deliveryTimeZoneId": "deliveryarea",
      "deliveryTimeMethodId": "pickup",
      "deliveryCosts": 35
    },
    "generalAttributes": {
      "extendedOrderStatus": "05",
      "customerFirstOrder": false,
      "orderNumber": "EON2076"
    },
    "payment": {
      "paymentType": "invoice"
    }
  },
  "deliveryWindow": {
    "id": "64e36da5814eba1635228dfe",
    "slotId": "c291c677-5460-4efb-b893-145c866a2af2",
    "deliveryDate": "2025-02-07",
    "deliveryCycle": "2025-02-07-15pickupFriday1000-1430",
    "deliveryCycleName": "pickupFriday1000-1430",
    "deliveryTimeRange": {
      "timeFrom": "10:00",
      "timeTo": "14:30"
    }
  },
  "feeYrnAggregate": {
    "elements": [
      {
        "yrn": "urn:yaas:saasag:fee:fee:test;678f552a949c723de46bdb14",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 33.92,
          "totalTax": 0,
          "total": 33.92
        }
      }
    ],
    "total": {
      "subTotal": 33.92,
      "totalTax": 0,
      "total": 33.92
    }
  },
  "calculatedPrice": {
    "price": {
      "netValue": 300,
      "grossValue": 357,
      "taxValue": 57,
      "taxCode": "STANDARD",
      "taxRate": 19
    },
    "paymentFees": [
      {
        "id": "678f552a949c723de46bdb14",
        "type": "PERCENT",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "price": {
          "netValue": 33.5,
          "grossValue": 37.52,
          "taxValue": 4.02,
          "taxCode": "REDUCED",
          "taxRate": 12
        }
      }
    ],
    "totalFee": {
      "netValue": 33.5,
      "grossValue": 37.52,
      "taxValue": 4.02,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "totalShipping": {
      "netValue": 35,
      "grossValue": 39.2,
      "taxValue": 4.2,
      "taxCode": "REDUCED",
      "taxRate": 12
    },
    "finalPrice": {
      "netValue": 368.5,
      "grossValue": 433.72,
      "taxValue": 65.22,
      "taxAggregate": {
        "lines": [
          {
            "netValue": 33.5,
            "grossValue": 37.52,
            "taxValue": 4.02,
            "taxCode": "REDUCED",
            "taxRate": 12
          },
          {
            "netValue": 300,
            "grossValue": 357,
            "taxValue": 57,
            "taxCode": "STANDARD",
            "taxRate": 19
          },
          {
            "netValue": 35,
            "grossValue": 39.2,
            "taxValue": 4.2,
            "taxCode": "REDUCED",
            "taxRate": 12
          }
        ]
      }
    }
  },
  "channel": {},
  "created": "2025-01-30T13:45:34.406Z",
  "lastStatusChange": "2025-01-30T13:45:34.406Z",
  "id": "EON2076",
  "createdBy": "61443563"
}

No content

Updating order status

post

Updates the status of a specific order. To be used by tenant's employees.

Required scopes

  • order.order_update

  • order.order_update_completed - for updating orders with a completed status

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body

Order status transition.

statusstring · enumOptional

Status of the order. Supported order statuses are IN_CHECKOUT, CREATED, CONFIRMED, DECLINED, SHIPPED, COMPLETED'. Customers can only change the order status from CREATED to DECLINED.

Possible values:
Responses
204
The request was successful. Order was successfully updated.
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
post
POST /order-v2/{tenant}/salesorders/{orderId}/transitions HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "status": "DECLINED"
}

No content

Recalculating number of entries

post

Updates the number of entries in the specific order and recalculates it. To be used by tenant's employees.

Required scopes

  • order.order_update

  • order.order_update_completed - for updating orders with a completed status

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
Responses
200
Order recalculated successfully
400
Bad Request
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
post
POST /order-v2/{tenant}/salesorders/{orderId}/calculations HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 148

{
  "entries": [
    {
      "entryId": "5c336893a981210009900071",
      "deliveredAmount": 10
    },
    {
      "entryId": "5c336893a981210009900072",
      "deliveredAmount": 1000,
      "unit": "GRM"
    }
  ]
}

No content

Adding entries to an order

post

Updates the entries in the specific order and recalculates it. If provided entry is already assigned to the order then quantity of this entry is updated. If you want to remove entry from order then set quantity to 0.

Required scopes

  • order.order_update

Authorizations
Path parameters
orderIdstringRequired

Unique identifier of an order.

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
storebooleanOptional

This endpoint adds entries to the order and recalculates it. The result is returned. This flag can control whether the result should be stored in the database or not. By setting this flag to false, your order won't be updated.

Default: false
Body
Responses
200
The request was successful. Recalculated order is returned.
application/json
Responseall of
and
400
Bad Request
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
Order does not exist
application/json
500
Some server side error occurred.
application/json
post
POST /order-v2/{tenant}/salesorders/{orderId}/entries HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "entries": [
    {
      "productId": "1010234",
      "quantity": 1
    }
  ]
}
{
  "id": "EON1145",
  "createdBy": "45620894",
  "status": "CREATED",
  "lastStatusChange": "2025-04-09T12:50:51.578Z",
  "created": "2025-04-09T12:50:51.578Z",
  "channel": {
    "name": "storefront",
    "source": "https://your-storefront.com/"
  },
  "entries": [
    {
      "id": "samsung-galaxy-s24-gross",
      "itemYrn": "urn:yaas:saasag:caasproduct:product:b2b2cstage;samsung-galaxy-s24-gross",
      "amount": 1,
      "orderedAmount": 1,
      "effectiveQuantity": 1,
      "originalAmount": 350,
      "originalPrice": 350,
      "unitPrice": 350,
      "calculatedUnitPrice": {
        "netValue": 294.118,
        "grossValue": 350,
        "taxValue": 55.882,
        "taxCode": "STANDARD",
        "taxRate": 19
      },
      "totalPrice": 350,
      "authorizedAmount": 350,
      "product": {
        "id": "samsung-galaxy-s24-gross",
        "sku": "Samsung Galaxy s24 gross",
        "name": "Samsung Galaxy s24 gross",
        "localizedName": {
          "en": "Samsung Galaxy s24 gross"
        },
        "published": true,
        "images": [
          {
            "id": "67169928ceaab717e17f3734",
            "url": "http://res.cloudinary.com/saas-ag/image/upload/v1729534248/b2b2cstage/media/67169928ceaab717e17f3734",
            "stored": false
          }
        ],
        "productType": "BASIC"
      },
      "tax": {
        "lines": [
          {
            "amount": 55.88,
            "currency": "EUR",
            "code": "STANDARD",
            "name": "STANDARD",
            "rate": 19,
            "sequenceId": 0,
            "inclusive": true
          }
        ],
        "total": {
          "amount": 0,
          "currency": "EUR",
          "inclusive": true
        }
      },
      "price": {
        "priceId": "679ca63dbcdefe5b380c98bc",
        "priceListId": "abc123",
        "currency": "EUR",
        "originalAmount": 350,
        "effectiveAmount": 350,
        "basePrice": {},
        "presentationPrice": {},
        "metadata": {
          "createdAt": "2025-01-31T10:30:21.998Z",
          "modifiedAt": "2025-01-31T10:30:21.998Z",
          "version": 1
        }
      },
      "totalDiscount": {
        "amount": 35.35,
        "currency": "EUR"
      },
      "fees": {
        "elements": [
          {
            "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
            "name": {
              "de": "Apple Picking Fee",
              "en": "Apple Picking Fee"
            },
            "taxCode": "REDUCED",
            "total": {
              "subTotal": 3.5,
              "totalTax": 0,
              "total": 3.15
            }
          }
        ],
        "total": {
          "subTotal": 3.5,
          "totalTax": 0,
          "total": 3.15
        }
      },
      "metadata": {
        "mixins": {
          "fees": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json"
        }
      },
      "mixins": {
        "fees": {
          "elements": [
            {
              "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
              "name": {
                "de": "Apple Picking Fee",
                "en": "Apple Picking Fee"
              },
              "taxCode": "REDUCED",
              "total": {
                "subTotal": 3.5,
                "totalTax": 0,
                "total": 3.15,
                "discount": 0.35
              }
            }
          ],
          "total": {
            "subTotal": 3.5,
            "totalTax": 0,
            "total": 3.15,
            "discount": 0.35
          }
        }
      },
      "calculatedPrice": {
        "price": {
          "netValue": 294.118,
          "grossValue": 350,
          "taxValue": 55.882,
          "taxCode": "STANDARD",
          "taxRate": 19
        },
        "discountedPrice": {
          "netValue": 179.832,
          "grossValue": 214,
          "taxValue": 34.168,
          "taxCode": "STANDARD",
          "taxRate": 19,
          "appliedDiscounts": [
            {
              "value": 35,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            },
            {
              "id": "ext-discount-001",
              "value": 101,
              "discountType": "ABSOLUTE",
              "origin": "EXTERNAL"
            }
          ]
        },
        "fees": [
          {
            "id": "677d49ca3a421b451eab23f2",
            "type": "ABSOLUTE",
            "origin": "INTERNAL",
            "name": {
              "de": "Apple Picking Fee",
              "en": "Apple Picking Fee"
            },
            "price": {
              "netValue": 3.5,
              "grossValue": 3.745,
              "taxValue": 0.245,
              "taxCode": "REDUCED",
              "taxRate": 7
            },
            "discountedPrice": {
              "netValue": 3.15,
              "grossValue": 3.37,
              "taxValue": 0.22,
              "taxCode": "REDUCED",
              "taxRate": 7,
              "appliedDiscounts": [
                {
                  "value": 0.375,
                  "discountType": "PERCENT",
                  "origin": "INTERNAL"
                }
              ]
            }
          }
        ],
        "totalFee": {
          "netValue": 3.15,
          "grossValue": 3.37,
          "taxValue": 0.22,
          "taxCode": "REDUCED",
          "taxRate": 7,
          "appliedDiscounts": [
            {
              "value": 0.375,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            }
          ]
        },
        "totalDiscount": {
          "calculationType": "ApplyDiscountAfterTax",
          "value": 136.375,
          "appliedDiscounts": [
            {
              "value": 35.375,
              "discountType": "PERCENT",
              "origin": "INTERNAL"
            },
            {
              "id": "ext-discount-001",
              "value": 101,
              "discountType": "ABSOLUTE",
              "origin": "EXTERNAL"
            }
          ]
        },
        "finalPrice": {
          "netValue": 182.982,
          "grossValue": 217.37,
          "taxValue": 34.388
        }
      },
      "priceMatchDetails": {
        "netValue": 294.11764705882354,
        "grossValue": 350,
        "taxValue": 55.88235294117647,
        "taxCode": "STANDARD",
        "taxRate": 19,
        "taxCountry": "DE"
      },
      "externalDiscounts": [
        {
          "id": "ext-discount-001",
          "discountType": "ABSOLUTE",
          "value": 101,
          "sequence": 1
        }
      ]
    }
  ],
  "discounts": [
    {
      "code": "TOTAL",
      "amount": 36.35,
      "currency": "EUR",
      "sequenceId": 1,
      "categoryRestricted": false
    },
    {
      "code": "LS10PTOTAL",
      "currency": "EUR",
      "name": "LS10PTOTAL",
      "discountRate": 10,
      "calculationType": "ApplyDiscountBeforeTax",
      "discountType": "PERCENT",
      "discountCalculationType": "TOTAL",
      "categoryRestricted": false
    }
  ],
  "customer": {
    "id": "45620894",
    "name": "John Dutton",
    "firstName": "John",
    "lastName": "Dutton",
    "email": "cartb2c.emporix@yopmail.com"
  },
  "siteCode": "GrossSite",
  "countryCode": "DE",
  "billingAddress": {
    "contactName": "Dom",
    "street": "Kochanowskiego",
    "streetNumber": "21",
    "streetAppendix": "",
    "zipCode": "44-122",
    "city": "Gliwice",
    "country": "DE",
    "state": "Slaskie",
    "contactPhone": ""
  },
  "shippingAddress": {
    "contactName": "Dom",
    "street": "Kochanowskiego",
    "streetNumber": "21",
    "streetAppendix": "",
    "zipCode": "44-122",
    "city": "Gliwice",
    "country": "DE",
    "state": "Slaskie",
    "contactPhone": ""
  },
  "payments": [
    {
      "status": "PENDING",
      "method": "invoice",
      "paidAmount": 0,
      "currency": "EUR",
      "provider": "stripe"
    }
  ],
  "shipping": {
    "total": {
      "amount": 10.9,
      "currency": "EUR"
    },
    "lines": [
      {
        "amount": 10,
        "currency": "EUR",
        "code": "Pickup",
        "name": "Pickup",
        "localizedName": {
          "en": "Pickup"
        },
        "tax": {
          "total": {
            "amount": 1.9,
            "currency": "EUR",
            "inclusive": false
          },
          "rate": 19
        },
        "shippingTaxCode": "STANDARD"
      }
    ]
  },
  "tax": {
    "lines": [
      {
        "amount": 57.78,
        "currency": "EUR",
        "code": "STANDARD",
        "name": "STANDARD",
        "rate": 19,
        "sequenceId": 0,
        "inclusive": false
      }
    ],
    "total": {
      "amount": 1.9,
      "currency": "EUR",
      "inclusive": false
    }
  },
  "subTotalPrice": 350,
  "totalPrice": 361.96,
  "totalAuthorizedAmount": 248.622,
  "currency": "EUR",
  "metadata": {
    "mixins": {
      "payments": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/fees_checkout-mashup.json",
      "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json"
    },
    "version": 1
  },
  "mixins": {
    "payments": {
      "elements": [
        {
          "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:b2b2cstage;invoice",
          "fees": {
            "elements": [
              {
                "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;678f552a949c723de46bdb14",
                "name": {
                  "de": "Payment fee",
                  "en": "Payment fee"
                },
                "taxCode": "REDUCED",
                "total": {
                  "subTotal": 32.91,
                  "totalTax": 0,
                  "total": 32.91,
                  "discount": 0
                }
              }
            ],
            "total": {
              "subTotal": 0,
              "totalTax": 0,
              "total": 0,
              "discount": 0
            }
          },
          "total": {
            "subTotal": 32.91,
            "totalTax": 0,
            "total": 32.91,
            "discount": 0
          }
        }
      ],
      "total": {
        "subTotal": 32.91,
        "totalTax": 0,
        "total": 32.91,
        "discount": 0
      }
    },
    "generalAttributes": {
      "extendedOrderStatus": "10",
      "customerFirstOrder": false,
      "orderNumber": "EON1145"
    }
  },
  "feeYrnAggregate": {
    "elements": [
      {
        "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;677d49ca3a421b451eab23f2",
        "name": {
          "de": "Apple Picking Fee",
          "en": "Apple Picking Fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 3.5,
          "totalTax": 0,
          "total": 3.15
        }
      },
      {
        "yrn": "urn:yaas:saasag:fee:fee:b2b2cstage;678f552a949c723de46bdb14",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "taxCode": "REDUCED",
        "total": {
          "subTotal": 32.91,
          "totalTax": 0,
          "total": 32.91
        }
      }
    ],
    "total": {
      "subTotal": 36.41,
      "totalTax": 0,
      "total": 36.06
    }
  },
  "calculatedPrice": {
    "price": {
      "netValue": 294.118,
      "grossValue": 350,
      "taxValue": 55.882,
      "taxCode": "STANDARD",
      "taxRate": 19
    },
    "discountedPrice": {
      "netValue": 179.832,
      "grossValue": 214,
      "taxValue": 34.168,
      "taxCode": "STANDARD",
      "taxRate": 19,
      "appliedDiscounts": [
        {
          "value": 35,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        },
        {
          "id": "ext-discount-001",
          "value": 101,
          "discountType": "ABSOLUTE",
          "origin": "EXTERNAL"
        }
      ]
    },
    "paymentFees": [
      {
        "id": "678f552a949c723de46bdb14",
        "type": "PERCENT",
        "origin": "INTERNAL",
        "name": {
          "de": "Payment fee",
          "en": "Payment fee"
        },
        "price": {
          "netValue": 19.198,
          "grossValue": 20.542,
          "taxValue": 1.344,
          "taxCode": "REDUCED",
          "taxRate": 7
        }
      }
    ],
    "totalFee": {
      "netValue": 22.348,
      "grossValue": 23.912,
      "taxValue": 1.564,
      "taxCode": "REDUCED",
      "taxRate": 7,
      "appliedDiscounts": [
        {
          "value": 0.375,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        }
      ]
    },
    "totalDiscount": {
      "calculationType": "ApplyDiscountAfterTax",
      "value": 137.565,
      "appliedDiscounts": [
        {
          "value": 36.565,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        },
        {
          "id": "ext-discount-001",
          "value": 101,
          "discountType": "ABSOLUTE",
          "origin": "EXTERNAL"
        }
      ]
    },
    "totalShipping": {
      "netValue": 9,
      "grossValue": 10.71,
      "taxValue": 1.71,
      "taxCode": "STANDARD",
      "taxRate": 19,
      "appliedDiscounts": [
        {
          "value": 1.19,
          "discountType": "PERCENT",
          "origin": "INTERNAL"
        }
      ]
    },
    "finalPrice": {
      "netValue": 211.18,
      "grossValue": 248.622,
      "taxValue": 37.442,
      "taxAggregate": {
        "lines": [
          {
            "netValue": 22.348,
            "grossValue": 23.912,
            "taxValue": 1.564,
            "taxCode": "REDUCED",
            "taxRate": 7
          },
          {
            "netValue": 188.832,
            "grossValue": 224.71,
            "taxValue": 35.878,
            "taxCode": "STANDARD",
            "taxRate": 19
          }
        ]
      }
    }
  }
}