サイクルカウント品目API (/ cycle_count_lines)

サイクルカウント明細APIを使用して、カウントするアイテムのリストを取得します。

概要

サイクルカウント明細APIを使用して、カウントするアイテムのリストを取得します。選択リストにアクセスするURLは次のとおりです: https :// {your_instance_name}/api/cycle_count_lines

詳細については、「サイクルカウント」を参照してください。

子オブジェクト

アクション 

動詞 パス アクション 説明
取得 /api/cycle_counts /: cycle_count_id/cycle_count_lines index クエリサイクルカウント明細
取得 /api/cycle_counts /: cycle_count_id/cycle_count_lines /: id 表示 サイクルカウント品目を表示
プット /api/cycle_counts /: cycle_count_id/cycle_count_lines /: id update /api/cycle_counts /: cycle_count_id/cycle_count_lines /: id
パッチ /api/cycle_counts /: cycle_count_id/cycle_count_lines /: id update /api/cycle_counts /: cycle_count_id/cycle_count_lines /: id

要素 

要素 説明 申請済み 一意 許容される値 In アウト データタイプ
balance - quantity 均衡数量         はい 小数( 30,6 )
consumption - quantity 消費数量単位での数量       はい はい 小数( 30,6 )
created - at CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました         はい 日時
cycle - count - id サイクルカウントのCoupaの一意の識別子         はい 整数
cycle - count - line - adjustments サイクルカウント明細の調整         はい CycleCountLineAdjustment 
cycle - count - line - lot 明細ロット       はい はい CycleCountLineLot 
不一致 不一致         はい string
discrepancy - value 不一致の値         はい 小数( 30,6 )
iD Coupaの一意の識別子         はい 整数
在庫-残高 棚卸資産残高 はい       はい InventoryBalance 
項目 アイテム         はい アイテム 
無効化されていない在庫取引 棚卸資産取引         はい InventoryTransaction 
オンハンドバランス スナップショットの残高         はい string
order - quantity 注文数量       はい はい 小数( 30,6 )
数量 数量 はい     はい はい 小数( 30,6 )
ステータス 明細のステータス         はい string (255)
uom 数量単位         はい 数量単位 
updated - at CoupaがYYY - MM - DDTHH: MM: SS + HH: MMZの形式で自動的に作成しました         はい 日時

 

サンプルコール

特定のサイクルカウント行をIDで取得するために作成することができます

Https ://{ your_instance_name }/ api/cycle_count_line? id ={ id}を取得します。

Output



<?xml version="1.0" encoding="UTF-8"?>

2<cycle-count-line>

3	<id type="integer"> 51</id>

4 2022	<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

5 2022	<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

6	<quantity nil="true"/>

7 	<discrepancy type="integer">-10</discrepancy>

8	<status>保留中</status>

9	<balance-quantity nil="true"/>

10	<order-quantity nil="true"/>

11 	<discrepancy-value type="decimal">-10.00</discrepancy-value>

12	<consumption-quantity nil="true"/>

13	<cycle-count-id type="integer"> 13</cycle-count-id>

14 	<on-hand-balance type="decimal">10.0</on-hand-balance>

15	<inventory-balance>

16		<id type="integer"> 51</id>

17 2022		<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

18 2022		<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

19 		<quantity type="decimal">10.0</quantity>

20 		<allocated type="decimal">0.0</allocated>

21 		<available type="decimal">10.0</available>

22		<item>

23			<id type="integer"> 51</id>

24 2022			<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

25 2022			<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

26			<description>これは、ユーザーに表示されるアイテムの説明のサンプルです。</description>

27 xxxx			<item-number> 2</item-number>

28 			<name>Coupaデモデータ製品名2</name>

29			<active type="boolean">true</active>

30			<storage-quantity nil="true"/>

31			<consumption-quantity nil="true"/>

32			<image-url nil="true"/>

33			<external-image-url nil="true"/>

34			<manufacturer-part-number nil="true"/>

35			<manufacturer-name nil="true"/>

36			<item-type>アイテム</item-type>

37			<require-inspection nil="true"/>

38			<require-asset-tag nil="true"/>

39			<use-pack-weight nil="true"/>

40			<pack-qty nil="true"/>

41			<pack-weight nil="true"/>

42			<pack-uom-id nil="true"/>

43			<receive-catch-weight nil="true"/>

			<allow-partial-quantity type="boolean">ジュール</allow-partial-quantity>

45			<inventory-lot-tracking-enabled type="boolean">偽</inventory-lot-tracking-enabled>

46			<inventory-lot-expiration-type>不要</inventory-lot-expiration-type>

47			<reorder-alerts type="array"/>

48			<commodity nil="true"/>

49			<receiving-form nil="true"/>

50			<uom>

51				<id type="integer"> 1</id>

52 2022				<created-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</created-at>

53 2022				<updated-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</updated-at>

54 				<code>EA</code>

				<name>各55</name>

56				<allowable-precision type="integer"> 0</allowable-precision>

57				<active type="boolean">true</active>

58			</uom>

59			<storage-uom nil="true"/>

60			<consumption-uom nil="true"/>

61			<tax-detail nil="true"/>

62			<updated-by>

63				<id type="integer"> 26</id>

64 				<login>test_user 1</login>

65				<employee-number nil="true"/>

66 				<firstname>test 1</firstname>

67 				<lastname>user 1</lastname>

68 				<fullname>test 1 user 1</fullname>

69 				<email>test_user1@coupa.com</email>

70				<salesforce-id nil="true"/>

71				<avatar-thumb-url nil="true"/>

72			</updated-by>

73		</item>

74		<warehouse>

75			<id type="integer"> 11</id>

76 2022			<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

77 2022			<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

78			<active-flag type="boolean">true</active-flag>

79倉庫1の			<description>説明</description>

80			<name>倉庫1</name>

81			<currency>

82				<id type="integer"> 1</id>

83 				<code>USD</code>

84				<decimals type="integer"> 2</decimals>

85			</currency>

86			<address>

87				<id type="integer"> 11</id>

88 2022				<created-at type="dateTime"> -06 -25 T 15:20:11 - 07:00</created-at>

89 2022				<updated-at type="dateTime"> -06 -25 T 15:20:11 - 07:00</updated-at>

90				<name nil="true"/>

91				<location-code nil="true"/>

92 				<street1>1どこでも</street1>

93				<street2 nil="true"/>

94奥				<city>克兰</city>

95				<state nil="true"/>

96				<postal-code> 94607</postal-code>

97				<attention nil="true"/>

98				<active type="boolean">true</active>

99				<business-group-name nil="true"/>

100 VAT				<vat-number> -456</vat-number>

101				<local-tax-number></local-tax-number>

102				<type nil="true"/>

103				<country>

104					<id type="integer"> 223</id>

105 					<code>US</code>

106					<name>米国</name>

107				</country>

108				<vat-country>

109					<id type="integer"> 223</id>

110 					<code>US</code>

111					<name>米国</name>

112				</vat-country>

113			</address>

114			<warehouse-type>

115				<id type="integer"> 11</id>

116 2022				<created-at type="dateTime"> -06 -25 T 15:20:11 - 07:00</created-at>

117 2022				<updated-at type="dateTime"> -06 -25 T 15:20:11 - 07:00</updated-at>

118				<name>倉庫タイプ1</name>

119倉庫タイプ1の				<description>説明</description>

120			</warehouse-type>

121			<warehouse-locations type="array">

122				<warehouse-location>

123					<id type="integer"> 21</id>

124 2022					<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

125 2022					<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

126					<aisle> 1</aisle>

127					<bin> 1</bin>

128					<level> 1</level>

129					<warehouse-id type="integer"> 11</warehouse-id>

130					<warehouse-name>倉庫1</warehouse-name>

131				</warehouse-location>

132				<warehouse-location>

133					<id type="integer"> 22</id>

134 2022					<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

135 2022					<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

136 					<aisle>A 001</aisle>

137					<bin> 0001</bin>

138 					<level>L 001</level>

139					<warehouse-id type="integer"> 11</warehouse-id>

140					<warehouse-name>倉庫1</warehouse-name>

141				</warehouse-location>

142			</warehouse-locations>

143		</warehouse>

144		<warehouse-location>

145			<id type="integer"> 21</id>

146 2022			<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

147 2022			<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

148			<aisle> 1</aisle>

149			<bin> 1</bin>

150			<level> 1</level>

151			<warehouse-id type="integer"> 11</warehouse-id>

152			<warehouse-name>倉庫1</warehouse-name>

153		</warehouse-location>

154		<uom>

155			<id type="integer"> 1</id>

156 2022			<created-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</created-at>

157 2022			<updated-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</updated-at>

158 			<code>EA</code>

			<name>各159</name>

160			<allowable-precision type="integer"> 0</allowable-precision>

161			<active type="boolean">true</active>

162		</uom>

163		<inventory-valuations type="array">

164			<inventory-valuation>

165				<id type="integer"> 51</id>

166 2022				<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

167 2022				<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

168 				<unit-price type="decimal">1.00</unit-price>

169 				<total type="decimal">10.00</total>

170				<currency>

171					<id type="integer"> 1</id>

172 					<code>USD</code>

173					<decimals type="integer"> 2</decimals>

174				</currency>

175			</inventory-valuation>

176		</inventory-valuations>

177	</inventory-balance>

178	<item>

179		<id type="integer"> 51</id>

180 2022		<created-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</created-at>

181 2022		<updated-at type="dateTime"> -06 -25 T 15:20:12 - 07:00</updated-at>

182		<description>これは、ユーザーに表示されるサンプルアイテムの説明です。</description>

183 xxxx		<item-number> 2</item-number>

184 		<name>Coupaデモデータ製品名2</name>

185		<active type="boolean">true</active>

186		<storage-quantity nil="true"/>

187		<consumption-quantity nil="true"/>

188		<image-url nil="true"/>

189		<external-image-url nil="true"/>

190		<manufacturer-part-number nil="true"/>

191		<manufacturer-name nil="true"/>

192		<item-type>項目</item-type>

193		<require-inspection nil="true"/>

194		<require-asset-tag nil="true"/>

195		<use-pack-weight nil="true"/>

196		<pack-qty nil="true"/>

197		<pack-weight nil="true"/>

198		<pack-uom-id nil="true"/>

199		<receive-catch-weight nil="true"/>

		<allow-partial-quantity type="boolean">NOS</allow-partial-quantity>

2 0		<inventory-lot-tracking-enabled type="boolean"> 1年</inventory-lot-tracking-enabled>

202		<inventory-lot-expiration-type>不要</inventory-lot-expiration-type>

203		<reorder-alerts type="array"/>

204		<commodity nil="true"/>

205		<receiving-form nil="true"/>

206		<uom>

207			<id type="integer"> 1</id>

208 2022			<created-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</created-at>

209 2022			<updated-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</updated-at>

210 			<code>EA</code>

			<name>各211</name>

212			<allowable-precision type="integer"> 0</allowable-precision>

213			<active type="boolean">true</active>

214		</uom>

215		<storage-uom nil="true"/>

216		<consumption-uom nil="true"/>

217		<tax-detail nil="true"/>

218		<updated-by>

219			<id type="integer"> 26</id>

220 			<login>test_user 1</login>

221			<employee-number nil="true"/>

222 			<firstname>test 1</firstname>

223 			<lastname>user 1</lastname>

224 			<fullname>test 1 user 1</fullname>

225 			<email>test_user1@coupa.com</email>

226			<salesforce-id nil="true"/>

227			<avatar-thumb-url nil="true"/>

228		</updated-by>

229	</item>

230	<uom>

231		<id type="integer"> 1</id>

232 2022		<created-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</created-at>

233 2022		<updated-at type="dateTime"> -06 -25 T 14:01:05 - 07:00</updated-at>

234 		<code>EA</code>

		<name>各235</name>

236		<allowable-precision type="integer"> 0</allowable-precision>

237		<active type="boolean">true</active>

238	</uom>

239	<cycle-count-line-adjustments type="array"/>

240	<non-voided-inventory-transactions type="array"/>

241	<cycle-count-line-lots type="array"/>

242</cycle-count-line>



























































































































































































ペイロード

XML:

ロット項目のないシンプルなライン

<?xml version="1.0" encoding="UTF-8"?>

<cycle-count-line>

  <id type="integer">#{ cycle_count_line.id}</id>

  <quantity type="integer">100</quantity>

</cycle-count-line>

ロットアイテムのある
行、マルチUOMなし:

<?xml version="1.0" encoding="UTF-8"?>

      <cycle-count-line>

        <id type="integer">12</id>

        <cycle-count-line-lots type="array">

         <cycle-count-line-lot>

           <quantity type="integer">10</quantity>

           <inventory-lot-id type="integer">#{ balance_lot2.inventory_lot.id}</inventory-lot-id>

         </cycle-count-line-lot>

         <cycle-count-line-lot>

           <quantity type="integer">10</quantity>

           <inventory-lot-number >#{ balance_lot1.inventory_lot.number}</inventory-lot-number>

         </cycle-count-line-lot>

        </cycle-count-line-lots>

      </cycle-count-line>

マルチUOMアイテムを含む

<?xml version="1.0" encoding="UTF-8"?>

<cycle-count-line>

  <id type="integer">#{ multi_uom_line.id}</id>

  <order-quantity type="integer">10</order-quantity>

  <consumption-quantity type="integer">10</consumption-quantity>

</cycle-count-line>

ロットを含む
複数の数量単位

<?xml version="1.0" encoding="UTF-8"?>

<cycle-count-line>

  <id type="integer">21</id>

  <cycle-count-line-lots type="array">

  <cycle-count-line-lot>

    <order-quantity type="integer">10</order-quantity>

    <consumption-quantity type="integer">10</consumption-quantity>

    <inventory-lot-id type="integer">12</inventory-lot-id>

  </cycle-count-line-lot>

  <cycle-count-line-lot>

    <order-quantity type="integer">10</order-quantity>

    <consumption-quantity type="integer">10</consumption-quantity>

    <inventory-lot-number >EXISTING_LOT_NUMBER</inventory-lot-number>

  </cycle-count-line-lot>

</cycle-count-line-lots>

</cycle-count-line>

 

JSON:  

 

単純明細

{" id ":#{ cycle_count_line.id }," quantity ":100}

 

ロットのある
シンプルな行

{

  "id ": #{ cycle_count_line.id},

  "CYCLE_COUNT_LINE_LOTS ":

    [

      {" quantity ": 10 ," inventory_lot_id ": "#{ balance_lot.inventory_lot.id }"},

      {" quantity ": 10 ," inventory_lot_number ": "#{ balance_lot.inventory_lot.number }"}

    ]

}


 

マルチユームアイテムを含む行:

{" id ":#{ multi_uom_line.id }," order_quantity ": 10 ," consumption_quantity ":10}

 

マルチウオームアイテムとロットサポートを備えた
ライン:

{

"ID ":12,

"CYCLE_COUNT_LINE_LOTS ":

  [

    {" order_quantity ": 10 ," consumption_quantity ": 10 ," inventory_lot_id ":' existing - lot - id '},

    {" order_quantity ": 10 ," consumption_quantity ": 10 ," inventory_lot_number ":" existing - lot - number }"}

   ]

}

 

関連アイテム


Coupa Core API

CoupaのRESTful APIは、お客様のデータをCoupaプラットフォームで読み取り、編集し、統合するための堅牢なアクセスを提供します。

APIの開始

Coupa APIの使用に関する一般情報、およびCSVの使用を検討するタイミング。

OAuth 2.0およびOIDCへの移行

Coupaは従来のAPIキーを廃止し、OAuth 2.0 / OIDCの使用を必要としています。R34以降、新しいAPIキーは発行されず、R35ではAPIキーはサポートされなくなります。

リソース

参照データ、トランザクションデータ、共有リソースなど、オブジェクトのタイプ別にAPIエンドポイントを整理しました。