Add Discount by code

Adds discount code on Norce Commerce basket and update Order with new cart

SecurityBearer
Request
path Parameters
orderId
required
string

Order id to update

header Parameters
x-merchant
required
string

Merchant identifier.

Example: norce
x-channel
required
string

Channel identifier

Example: 1
Request Body schema: application/json

Discount containing Code to be added.

code
string

Discount code.

Responses
200

OK

400

Bad Request

404

Not Found

post/api/v1/orders/{orderId}/cart/discounts
Request samples
application/json
{
  • "code": "string"
}
Response samples
application/json
{
  • "code": "cart-not-found",
  • "message": "Cart with id:{id} not found."
}
Copyright © Norce 2024. All right reserved.