POST stocklocations/create-transfers

This call allows to create stock location transfers in bulk. This feature is only available to accounts who have multiple stock locations.

Request Information

URI Parameters

None.

Body Parameters

The transfers that you want to create. To create a transfer to or from an unspecified location. Use an ID Type of stock location reference and unspecified as the value.

Collection of StockLocationTransferModel
NameDescriptionTypeAdditional information
ProductIDType The ID that you are using to perform this update ProductIDTypeModel Required
StockLocationFrom The Stock Location that you want to transfer the stock from. Set Stock Location Reference to Unspecified to transfer to or from unspecified location. StockLocationProductIDTypeModel Required
StockLocationTo The Stock Location that you want to transfer the stock to. Set Stock Location Reference to Unspecified to transfer to or from unspecified location. StockLocationIDTypeModel Required
TransferAmount The amount of stock that you want to transfer. integer Required
ImmediateTransfer Whether the transfer is a pending transfer or an immediate transfer. Immediate affects inventory straight away. Pending needs to be confirmed. boolean Required
AssignedUserID The user that will be assigned to the transfer. If this is null it will be assigned to the API user. UserIDTypeModel None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProductIDType": {
      "IDType": "SKU",
      "Value": "sku5"
    },
    "StockLocationFrom": {
      "IDType": "ID",
      "Value": "543"
    },
    "StockLocationTo": {
      "IDType": "StockLocationReference",
      "Value": "pb3"
    },
    "TransferAmount": 1,
    "ImmediateTransfer": true,
    "AssignedUserID": {
      "IDType": "Email",
      "Value": "user@yourcompany.com"
    }
  },
  {
    "ProductIDType": {
      "IDType": "ID",
      "Value": "6743"
    },
    "StockLocationFrom": {
      "IDType": "ID",
      "Value": "5431"
    },
    "StockLocationTo": {
      "IDType": "ID",
      "Value": "3213"
    },
    "TransferAmount": 2,
    "ImmediateTransfer": true
  },
  {
    "ProductIDType": {
      "IDType": "SKU",
      "Value": "sku10"
    },
    "StockLocationFrom": {
      "IDType": "StockLocationReference",
      "Value": "pb2"
    },
    "StockLocationTo": {
      "IDType": "StockLocationReference",
      "Value": "pb1"
    },
    "TransferAmount": 3,
    "ImmediateTransfer": true,
    "AssignedUserID": {
      "IDType": "ID",
      "Value": "123"
    }
  }
]

Response Information

Resource Description

This call allows to create stock location transfers in bulk. This feature is only available to accounts who have multiple stock locations.

StockLocationTransferModelCollectionResponse
NameDescriptionTypeAdditional information
PendingTransfers The amount of pending transfers that were created. integer None.
ImmediateTransfers The amount of immediate transfers that were created. integer None.
TotalItemsProcessed integer None.
Successful integer None.
Failed integer None.
Responses Collection of StockLocationTransferResponseModel None.

Response Formats

application/json, text/json

Sample:
{
  "PendingTransfers": 0,
  "ImmediateTransfers": 0,
  "TotalItemsProcessed": 3,
  "Successful": 2,
  "Failed": 1,
  "Responses": [
    {
      "Transfer": {
        "ProductIDType": {
          "IDType": "SKU",
          "Value": "sku5"
        },
        "StockLocationFrom": {
          "IDType": "ID",
          "Value": "543"
        },
        "StockLocationTo": {
          "IDType": "StockLocationReference",
          "Value": "pb3"
        },
        "TransferAmount": 1,
        "ImmediateTransfer": true,
        "AssignedUserID": {
          "IDType": "Email",
          "Value": "user@yourcompany.com"
        }
      },
      "Success": false,
      "Error": "Stock Location does not exist or you do not have permission to access it."
    },
    {
      "Transfer": {
        "ProductIDType": {
          "IDType": "ID",
          "Value": "6743"
        },
        "StockLocationFrom": {
          "IDType": "ID",
          "Value": "5431"
        },
        "StockLocationTo": {
          "IDType": "ID",
          "Value": "3213"
        },
        "TransferAmount": 2,
        "ImmediateTransfer": true
      },
      "Success": true
    },
    {
      "Transfer": {
        "ProductIDType": {
          "IDType": "SKU",
          "Value": "sku10"
        },
        "StockLocationFrom": {
          "IDType": "StockLocationReference",
          "Value": "pb2"
        },
        "StockLocationTo": {
          "IDType": "StockLocationReference",
          "Value": "pb1"
        },
        "TransferAmount": 3,
        "ImmediateTransfer": true,
        "AssignedUserID": {
          "IDType": "ID",
          "Value": "123"
        }
      },
      "Success": true
    }
  ]
}