Skip to main content
POST
/
v1
/
contract-pricing
Create Contract Pricing
curl --request POST \
  --url https://api.wizcommerce.com/v1/contract-pricing \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "Q1 Enterprise Contract",
  "customer_group_type": "all",
  "product_price_map": [
    {
      "sku_id": "SKU-001",
      "volume_tiers": [
        {
          "start_quantity": 1,
          "end_quantity": 100,
          "price": 10
        }
      ]
    }
  ],
  "schedule_details": {
    "start_date": "2025-01-01T00:00:00Z",
    "end_date": "2035-01-01T00:00:00Z"
  },
  "channel": [
    "wizorder"
  ],
  "discount_applicable_on": "contract_pricing",
  "reference_id": "REF-CONTRACT-2025",
  "customer_segments": [
    "segment_ref_id_1"
  ],
  "discount_campaign_allowed": false
}
'
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Q1 Enterprise Contract",
    "reference_id": "REF-CONTRACT-2025",
    "contract_status": "active",
    "customer_group_type": "all",
    "customer_segments": [
      "<string>"
    ],
    "product_price_map": [
      {
        "sku_id": "SKU-001",
        "volume_tiers": [
          {
            "start_quantity": 1,
            "end_quantity": 100,
            "price": 10
          }
        ]
      }
    ],
    "schedule_details": {
      "start_date": "2025-01-01T00:00:00Z",
      "end_date": "2035-01-01T00:00:00Z"
    },
    "timezone": "UTC",
    "channel": [],
    "discount_campaign_allowed": false,
    "discount_applicable_on": "contract_pricing",
    "created_at": "2025-01-01T00:00:00Z",
    "updated_at": "2025-01-01T00:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.wizcommerce.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API Key for authentication

Body

application/json

Request

name
string
required
Maximum string length: 255
Example:

"Q1 Enterprise Contract"

customer_group_type
enum<string>
required
Available options:
all,
segment
Example:

"all"

product_price_map
object[]
required
Minimum array length: 1
schedule_details
object
required
channel
enum<string>[]
required
Minimum array length: 1
Available options:
wizorder,
wizshop
Example:
["wizorder"]
discount_applicable_on
enum<string>
required
Available options:
contract_pricing
Example:

"contract_pricing"

reference_id
string
Maximum string length: 255
Example:

"REF-CONTRACT-2025"

customer_segments
string[]
Example:
["segment_ref_id_1"]
discount_campaign_allowed
boolean
default:false
Example:

false

Response

desc

data
object