FlxpointAPI Help CenterBeta

[Deprecated] Release All Committed Stock For Purchase Order

deletehttps://api.flxpoint.com/purchase-orders/{purchaseOrderId}/committed-stockDeprecated

Use this when you want to delete purchase order data through the API.

๐Ÿ”‘ X-API-TOKENโฑ 2 req/sToken: Account ยท Source ยท Channel

This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.

Release committed stock for purchase order

Request

Bodyapplication/json
onlyReleasePurchaseOrderItemIdsarray[integer]
List of purchase order item IDs to release
integer
onlyReleasePurchaseOrderItemSkusarray[string]
List of purchase order item SKUs to release
string

Example request

delete/purchase-orders/{purchaseOrderId}/committed-stock
curl -X DELETE "https://api.flxpoint.com/purchase-orders/{purchaseOrderId}/committed-stock" \
  -H "Accept: application/json" \
  -H "X-API-TOKEN: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
         "onlyReleasePurchaseOrderItemIds": [
           0
         ],
         "onlyReleasePurchaseOrderItemSkus": [
           "string"
         ]
       }'
Example body ยท application/json
{
  "onlyReleasePurchaseOrderItemIds": [
    0
  ],
  "onlyReleasePurchaseOrderItemSkus": [
    "string"
  ]
}

Responses

200OK

No schema documented for this status.

204No Content

No schema documented for this status.

400Bad Request

No schema documented for this status.

401Unauthorized

No schema documented for this status.

OpenAPI fragment
{
  "delete": {
    "summary": "[Deprecated] Release All Committed Stock For Purchase Order",
    "description": "Release committed stock for purchase order",
    "parameters": [],
    "requestBody": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ReleaseCommittedStockRequest"
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "OK"
      },
      "204": {
        "description": "No Content"
      },
      "400": {
        "description": "Bad Request"
      },
      "401": {
        "description": "Unauthorized"
      }
    }
  }
}
Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight