younifyd
Menu

/api/purchase_orders/createChainOfCustody

Create coc from vpo

GET/api/purchase_orders/createChainOfCustody

Use it in a workflow

  1. Add a step and choose the TradeBeyond connector.
  2. Pick the /api/purchase_orders/createChainOfCustody action (under VendorPurchaseOrderController).
  3. Fill in the fields below, then reference the result from later steps as {{apiPurchaseOrdersCreatechainofcustody.response.data}}.

Request

Query parameters

idstringrequired

Comma separated id.

Response

Returns 200 with an object. Read it in later steps with {{apiPurchaseOrdersCreatechainofcustody.response.data.<field>}}.

vpoChainOfCustodyDtlUpdateListarray<object>
vpoobject5 fields
vendorobject40 fields
productCategoryValuestring
cocIdstring
sectionSeqNointeger (int32)
sectionNamestring
descriptionstring
chainOfCustodyStatusobject3 fields
chainOfCustodySupplierobject16 fields
countryOfOriginstring
citystring
documentDatestring (date)
vpoChainOfCustodyAttachmentsarray<object>15 fields
notesstring
supplierRemarksstring
documentTypeobject3 fields
documentTierobject3 fields
blacklistedEntitystring

One ofFAILUREWARNINGUNDETECTEDIN_PROGRESSSUCCESSNOT_AVAILABLEERROR

originRisksstring

One ofFAILUREWARNINGUNDETECTEDIN_PROGRESSSUCCESSNOT_AVAILABLEERROR

alertsDetectedinteger (int64)
alertsOutstandinginteger (int64)
alertValidationStatusstring

One ofNOT_AVAILABLENO_ALERTS_DETECTEDPENDING_REVIEWALERTS_CONFIRMEDALERTS_IGNORED

analysisIdstring
customFieldsobject1 fields
chainOfCustodyToSupplierobject16 fields
chainOfCustodyTotalQtyinteger (int64)
totalPricenumber
totalWeightnumber
materialItemstring
qtyUomobject3 fields
currencyobject3 fields
weightUomobject3 fields
internalCommentstring
uniqueKeystring
shareFileListarray<object>12 fields
json
{
  "vpoChainOfCustodyDtlUpdateList": [
    {
      "vpo": {
        "id": "string",
        "refNo": "string",
        "version": 0,
        "vpoNo": "string",
        "shipmentDate": "2025-01-01"
      },
      "vendor": {
        "id": "string",
        "fromImport": false,
        "deleteCommentFieldInfoList": [
          {
            "uiId": "string",
            "businessKey": "string",
            "internalSeqNo": 0
          }
        ],
        "get_overrideCreateUser": "string",
        "get_overrideCreateUserName": "string",
        "get_overrideUpdateUser": "string",
        "get_overrideUpdateUserName": "string",
        "get_overrideCreatedOn": "2025-01-01T00:00:00Z",
        "get_overrideUpdatedOn": "2025-01-01T00:00:00Z",
        "get_overrideStatus": "string",
        "refNo": "string",
        "businessRefNo": "string"
      },
      "productCategoryValue": "string",
      "cocId": "string",
      "sectionSeqNo": 0,
      "sectionName": "string",
      "description": "string",
      "chainOfCustodyStatus": {
        "code": "string",
        "name": "string",
        "version": 0
      },
      "chainOfCustodySupplier": {
        "id": "string",
        "refNo": "string",
        "version": "string",
        "status": "string",
        "businessName": "string",
        "city": "string",
        "type": "string",
        "module": "NONE",
        "gpsLng": "string",
        "gpsLat": "string",
        "country": {
          "code": "string",
          "name": "string",
          "version": 0
        },
        "facilityTypeList": [
          {
            "code": "string",
            "name": "string",
            "version": 0
          }
        ]
      },
      "countryOfOrigin": "string",
      "city": "string",
      "documentDate": "2025-01-01"
    }
  ]
}

Need more? See the TradeBeyond guide for connection setup and behaviour shared by every action.