---
schema_version: "1"
id: 2ec34619c1f7d833f67fb33b589188cddea43799261479ac476f47b12396d6c2
title: Validate OCAPI Version Numbers Strictly
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_rn_ocapi_validate_version_numbers.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_rn_ocapi_validate_version_numbers.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bf77711896465b7571ef219d6f6529929ed29bbcc59ac1c368bf089531fbc78b
description: You can now strictly validate version numbers with the Open Commerce API (OCAPI). OCAPI requests that include a version number with leading zeros, such as v024_05, are rejected. These requests return a 400 Bad Request response and an InvalidVersionException fault. Going forward, if you have a new project or a major refactoring, use the B2C Commerce API (SCAPI) instead of OCAPI.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Validate OCAPI Version Numbers Strictly

You can now strictly validate version numbers with the Open Commerce API (OCAPI). OCAPI requests that include a version number with leading zeros, such as v024\_05, are rejected. These requests return a 400 Bad Request response and an InvalidVersionException fault. Going forward, if you have a new project or a major refactoring, use the B2C Commerce API (SCAPI) instead of OCAPI.

**Where:** This change applies to B2C Commerce.

**How:** Contact your B2C Commerce support representative to turn on strict validation. Update your integrations to remove leading zeros from version numbers before enabling the feature.

#### See Also

- [_B2C Commerce Developer Guide_: Why Use SCAPI Instead of OCAPI](https://developer.salesforce.com/docs/commerce/commerce-api/guide/why-use-scapi.html)
- [_B2C Commerce Developer Guide_: OCAPI Versioning and Deprecation Policy](https://developer.salesforce.com/docs/commerce/ocapi/references/about-ocapi/versioninganddeprecationpolicy.html)