latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Part Transfer Requests

Update part transfer request

patch/parttransferrequests/{id}

Path parameters

idinteger required

ID of the part transfer request

Query parameters

skipWebhookboolean

Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks

Request body

status'APPROVED' | 'CANCELED' | 'COMPLETED' | 'DECLINED' | 'PENDING' required

Status of the part transfer request.

responseMessagestring nullable

Message to give context surrounding the transfer of the part transfer request.

sourceLocationIdinteger

ID of the location in the organization from which parts were transferred. (Sending stocks)

quantityinteger nullable

Quantity to update for the relevant status.

Example request

{
  "status": "PENDING",
  "responseMessage": "Sorry, we do not have enough extra ball screws to share them with you.",
  "sourceLocationId": 852,
  "destinationLocations": [
    {
      "locationId": 917,
      "quantity": 2
    }
  ],
  "quantity": 42
}

Response

Successfully updated part transfer request

Example response

{
  "partTransferRequest": {
    "id": 963,
    "quantityReceived": 2,
    "quantityRequested": 3,
    "quantityTransferred": 2,
    "requestMessage": "Would you please send us five ball screws for our cnc machine?",
    "responseMessage": "Sorry, we do not have enough extra ball screws to share them with you.",
    "status": "PENDING",
    "sourcePartId": 843,
    "destinationPartId": 852,
    "transferrerId": 102,
    "requesterId": 201,
    "destinationOrganizationId": 1001,
    "sourceOrganizationId": 1002,
    "sourceLocationId": 852,
    "destinationLocations": [
      {
        "locationId": 917,
        "quantity": 2
      }
    ]
  }
}