API Docs
YMS API
Receipt
POST Create Receipt

POST Create receipt

Introduction

Create a new receipt record in the YMS system. This API allows you to submit receipt information including carrier, customer, equipment details, item lines, appointment data, and dynamic field values. The receipt will be registered and assigned a unique identifier upon successful creation.

POST /receipt/create

Body Request Parameters

{
  "receiptId": "string",
  "receiptType": "string",
  "poNo": "string",
  "carrierId": "string",
  "customerId": "string",
  "referenceNo": "string",
  "equipmentType": "string",
  "equipmentNo": "string",
  "totalPalletQty": 0,
  "itemLines": [
    {
      "itemId": "string",
      "itemName": "string",
      "itemQty": "string",
      "palletQty": "string",
      "itemSpecDesc": "string",
      "itemSpecName": "string",
      "uomId": "string",
      "qty": "string"
    }
  ],
  "appointmentTime": "string",
  "appointmentId": "string",
  "sealNo": "string",
  "dataChannel": "YMS",
  "eventTime": "string",
  "extraData": "string",
  "carrierName": "string",
  "customerName": "string",
  "dynamicFieldValues": [
    {
      "fieldCode": "string",
      "value": "string",
      "values": [
        "string"
      ]
    }
  ],
  "preferenceLocationType": "SPOT"
}

Request Parameters

NameLocationTypeRequiredDescription
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
Item-Bam-ClientheaderstringNonone
x-facility-idheaderstringNonone
bodybodyobjectNonone
» receiptIdbodystringNoReceipt ID (RN-xxx)
» receiptTypebodystringYesReceipt type (Required)
» poNobodystringYesPurchase order number (Required)
» carrierIdbodystringYesCarrier ID (Required)
» customerIdbodystringYesCustomer ID (Required)
» referenceNobodystringYesReference number
» equipmentTypebodystringNoEquipment type (Required)
» equipmentNobodystringNoEquipment number (Required)
» totalPalletQtybodyintegerNoTotal pallet quantity
» itemLinesbody[ItemInfo]NoItem information list
»» itemIdbodystringNoItem identifier
»» itemNamebodystringNoItem name
»» itemQtybodystringNoItem quantity
»» palletQtybodystringNoItem pallet Qty
»» itemSpecDescbodystringNoItem spec desc
»» itemSpecNamebodystringNoItem spec name
»» uomIdbodystringNoitem uomId
»» qtybodystringNoqty
» appointmentTimebodystringNoAppointment time (Required)
» appointmentIdbodystringNoAppointment ID
» sealNobodystringNonone
» dataChannelbodystringNoData source channel
» eventTimebodystringNoEvent time for idempotency control
» extraDatabodystringNoExtra data in JSON format
» carrierNamebodystringNoCarrier name
» customerNamebodystringNoCustomer name
» dynamicFieldValuesbody[object]NoDynamic field values
»» fieldCodebodystringYesField code
»» valuebodystringNonone
»» valuesbody[string]No多选值列表,优先于 value 使用
» preferenceLocationTypebodystringNoPreference location type (SPOT / DOCK / null)

Detailed Description

» receiptType: Receipt type (Required) Regular Receipt/Material Receive/Return

Enum Values

PropertyValue
» dataChannelYMS
» dataChannelWMS
» dataChannelOMS
» dataChannelTMS
» dataChannelFMS
» preferenceLocationTypeSPOT
» preferenceLocationTypeDOCK

Response Example

200 Response

{
  "code": 0,
  "msg": "",
  "success": false,
  "data": {
    "id": 0,
    "receiptId": "",
    "receiptStatus": "",
    "receiptType": "",
    "poNo": "",
    "carrierId": "",
    "customerId": "",
    "referenceNo": "",
    "equipmentType": "",
    "equipmentNo": "",
    "totalPalletQty": 0,
    "itemLines": [
      {
        "itemId": "",
        "itemName": "",
        "itemQty": "",
        "palletQty": "",
        "itemSpecDesc": "",
        "itemSpecName": "",
        "uomId": "",
        "qty": ""
      }
    ],
    "appointmentTime": "",
    "appointmentId": "",
    "sealNo": "",
    "dataChannel": "",
    "eventTime": "",
    "extraData": "",
    "carrierName": "",
    "customerName": "",
    "dynamicFieldValues": [
      {
        "entityId": "",
        "entityType": "",
        "fieldCode": "",
        "value": "",
        "values": [
          ""
        ],
        "fieldName": "",
        "longValue": "",
        "shortValue": "",
        "valueType": "",
        "optionsType": "",
        "options": [
          ""
        ]
      }
    ],
    "proNos": [
      ""
    ],
    "invoicePros": [
      ""
    ],
    "doNos": [
      ""
    ],
    "tripNo": "",
    "entryId": "",
    "preferenceLocationType": ""
  }
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneRReceiptView