# API Update: v2 Deprecation Notice

**URL:** <https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844>\
**Category:** API Announcements\
**Created:** [February 14, 2022, 6:07pm UTC](https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844 "2022-02-14T18:07:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [February 14, 2022, 6:07pm UTC](https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844/1 "2022-02-14T18:07:59Z")

</div>

## Release Date

Wed March 1, 2022

## Note to current API Users:

Related to ongoing v2 /order/ deprecation, we are removing the v2 order split endpoint.

If you are using an Ordoro v3 account to make API requests, this should not affect you, as this endpoint was explicitly deprecated when we made our final  
migrations in 2020.

However, if you are still accessing v2 endpoints using the API and older API access credentials, you may need to update your code.

## Breaking Changes

- POST `/order/{order_id}/split/` has been deprecated in favor of POST `/v3/order/{order_number}/split`
- Please see the Ordoro API documentation for any questions as to how to utilize the current version’s Order split functionality.
  - [Ordoro API Documentation](https://docs.ordoro.com/#operation/OrderSplitByOrderNumber_POST)

### Note:

From our records this should not affect the majority of users, yet we would like to announce this in an official capacity for any edge case scenarios.

## Split an Order

`POST /v3/order/{order_number}/split`

Payload:

```js
{
  "additionalProperties": false,
  "properties": {
    "split_orders": {
      "items": {
        "properties": {
          "lines": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "line_id": {
                  "type": "integer"
                },
                "quantity": {
                  "exclusiveMinimum": false,
                  "minimum": 0,
                  "type": "number"
                }
              },
              "required": [
                "line_id",
                "quantity"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "type": "object"
      },
      "minItems": 2,
      "type": "array"
    }
  },
  "required": [
    "split_orders"
  ],
  "title": "Split Order Schema",
  "type": "object"
}

```

Response:

```auto
{
    "title": "Split Order Response Schema",
    "type": "array",
    "minItems": 2,
    "uniqueItems": true,
    "items": {
      "description": "Resulting child order numbers",
      "type": "string"
    }
}

```

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [February 14, 2022, 6:08pm UTC](https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844/2 "2022-02-14T18:08:20Z")

</div>

Made this a banner on February 14, 2022, 6:08pm UTC. It will appear at the top of every page until it is dismissed by the user.



---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 1, 2022, 1:00pm UTC](https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844/3 "2022-08-01T13:00:19Z")

</div>

Closed on August 1, 2022, 1:00pm UTC

This topic was automatically closed after 167 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [June 14, 2024, 10:53pm UTC](https://forums.ordoro.com/t/api-update-v2-deprecation-notice/844/4 "2024-06-14T22:53:35Z")

</div>

Removed this banner on June 14, 2024, 10:53pm UTC. It will no longer appear at the top of every page.


