Norce Commerce Customer v1.1 service (1.1)

The Customers namespace has Entities and Operations concerned with Customer and Company management.

Download OpenAPI description
Languages
Servers
Playground

https://{slug}.api-se.playground.norce.tech/commerce/

Stage

https://{slug}.api-se.stage.norce.tech/commerce/

Production

https://{slug}.api-se.norce.tech/commerce/

Accounts

Operations

Address

Contains endpoints for managing addresses on Customer and Company objects.

Operations

Companies

Contains endpoints for managing Company data and related information.

Operations

List company discounts

Request

Lists Company discounts.

Query
companyIdinteger(int32)

The company internal id for which to get discounts.

curl -i -X GET \
  https://customer-slug.api-se.playground.norce.tech/commerce/customer/1.1/ListCompanyDiscounts \
  -H 'ApplicationId: YOUR_API_KEY_HERE' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/jsonArray [
TypeIdinteger or null(int32)

The TypeId defines the rule for how Value is interpreted. 1 = Category discount, 2 = DiscountCode on product. Cannot be changed.

Valuestring or null

The value to check for on products. If TypeID = 1 then discounts are valid for all products belonging to Category with Category.Code = Value. If TypeId = 2 then the product's discount code is checked. Cannot be changed.

Discountnumber or null(decimal)

The actual discount percentage. Ex: 15.00 equals 15% discount.

PriceListTypeSeedstring or null

An optional comma-separated list of priceList type-ids for which the discount is valid.

]
Response
application/json
[ { "TypeId": 0, "Value": "string", "Discount": 0, "PriceListTypeSeed": "string" } ]

Insert or update company discounts

Request

Inserts or updates a list of CompanyDiscounts in Norce. Any non-existing discount will be inserted. Existing discounts will be updated. Note that it is only the discount field that can be updated. In order to update the value field, the entity must first be deleted and then re-inserted.

Query
companyIdinteger(int32)

The internal company id for the discounts.

updatedBystring

(Optional) The account internal id of the user performing the upsert.

Bodyapplication/json

A list of discounts to update or insert. See CompanyDiscount entity for details.

Array [
TypeIdinteger or null(int32)

The TypeId defines the rule for how Value is interpreted. 1 = Category discount, 2 = DiscountCode on product. Cannot be changed.

Valuestring or null

The value to check for on products. If TypeID = 1 then discounts are valid for all products belonging to Category with Category.Code = Value. If TypeId = 2 then the product's discount code is checked. Cannot be changed.

Discountnumber or null(decimal)

The actual discount percentage. Ex: 15.00 equals 15% discount.

PriceListTypeSeedstring or null

An optional comma-separated list of priceList type-ids for which the discount is valid.

]
curl -i -X POST \
  https://customer-slug.api-se.playground.norce.tech/commerce/customer/1.1/UpsertCompanyDiscounts \
  -H 'ApplicationId: YOUR_API_KEY_HERE' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "TypeId": 0,
      "Value": "string",
      "Discount": 0,
      "PriceListTypeSeed": "string"
    }
  ]'

Responses

OK

Delete company discount

Request

Deletes the discount.

Query
companyIdinteger(int32)

The company internal id for the discount.

Bodyapplication/json

The discount to delete. See CompanyDiscount entity for details.

TypeIdinteger or null(int32)

The TypeId defines the rule for how Value is interpreted. 1 = Category discount, 2 = DiscountCode on product. Cannot be changed.

Valuestring or null

The value to check for on products. If TypeID = 1 then discounts are valid for all products belonging to Category with Category.Code = Value. If TypeId = 2 then the product's discount code is checked. Cannot be changed.

Discountnumber or null(decimal)

The actual discount percentage. Ex: 15.00 equals 15% discount.

PriceListTypeSeedstring or null

An optional comma-separated list of priceList type-ids for which the discount is valid.

curl -i -X POST \
  https://customer-slug.api-se.playground.norce.tech/commerce/customer/1.1/DeleteCompanyDiscount \
  -H 'ApplicationId: YOUR_API_KEY_HERE' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "TypeId": 0,
    "Value": "string",
    "Discount": 0,
    "PriceListTypeSeed": "string"
  }'

Responses

OK

Customers

Contains endpoints for managing Customer data and related information.

Operations

Flags

Contains endpoints for viewing Customer and Company flags.

Operations

InfoTypes

Contains endpoints for viewing metadata about Customer and Company extended fields.

Operations

PriceLists

Contains endpoints for managing company connected price lists.

Operations

Schemas