- BOMs
- Gets Boms that user has read access toGET
- Creates a Bom using Cofactr DataPOST
- Creates a Bom using raw bomline data and performs searches to convert into Cofactr DataPOST
- Gets a BomGET
- Upsert BOM AsyncPUT
- Updates a BomPATCH
- Deletes a Bom if still unapproved. Archives a bom if approved.DELETE
- Approves an unapproved Bom.POST
- Gets Bom Lines on a Bom.GET
- Creates a new bomline on a Bom using Cofactr data. If a bomline with the provided part exists it will sum the quants instead of duplicating lines.POST
- Gets a BomLineGET
- Updates a BomLinePATCH
- Removes a Bomline from a Bom.DELETE
- Attempts to create a new Bomline using raw data and performs searches to convert into Cofactr Data. If a Bomline with the same part and refdes exists it will sum the quants instead of duplicating lines.POST
- Programs
- Gets ProgramsGET
- Creates a ProgramPOST
- Gets a ProgramGET
- Updates a ProgramPATCH
- Deletes a ProgramDELETE
- Gets Program AvailabilitiesGET
- Gets Program Availabilities AsyncGET
- Gets Program Reference PricingGET
- Get Programs LinesGET
- Get Programs LineGET
- Update Programs LinePATCH
- Delete Programs LineDELETE
- Create Programs LinesPOST
- Get Program Part OverridesGET
- Create Program Part OverridesPOST
- Get Program Part OverrideGET
- Update Program Part OverridePATCH
- Delete Program Part OverrideDELETE
- Account
- Reporting
- Email
- Auth
- Async Jobs
- Stock Documents
- Suppliers
- Parts
- Purchases
- Get Purchase Order
- Create Purchase Order
- Update Purchase Order
- Delete Purchase Order
- Get Purchase Lines
- Get Purchase Line
- Create Purchase Line
- Update Many Purchase Lines
- Delete Purchase Line
- Get NoPart Purchase Lines
- Create NoPart Purchase Line
- Update Many NoPart Purchase Lines
- Delete NoPart Purchase Line
- Create Purchase Event
- Update Supplier Bill
- Update Supplier Bill Line
- Create Supplier Bill
- Create Supplier Bill Line
- Teams
- Custom Properties
- Stock Lots
- Tags
- Rfqs
- RfqLines
- SupplierQuote
- SupplierQuoteLines
Updates a StockLot
PATCH
/v1/stock_lots/{stock_lot_id}/
stock
Request
Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Path Params
stock_lot_id
string
required
Body Params application/json
synced_from_integration
boolean
Synced from integration
integration_source_name
string
Integration source name
integration_record_id
string
Integration record id
synced_from_integration_at
string <date-time>
Synced from integration at
metadata
object
Metadata
quantity
integer
Quantity
notes
string
Notes
country_of_origin
string
Country of origin
<= 2 characters
date_code
string
Date code
<= 255 characters
mfg_lot_code
string
Mfg lot code
<= 255 characters
audited_at
string <date-time>
Audited at
expires_at
string <date>
Expires at
quarantined
boolean
Quarantined
smt_no_pnp
boolean
Smt no pnp
msl
string
Msl
<= 2 characters
msl_floor_hours
integer
Msl floor hours
tape_size
integer
Tape size
unit_price_paid
string <decimal>
Unit price paid
landed_unit_price_paid
string <decimal>
Landed unit price paid
package_type
enum<string>
Package type
Allowed values:
tubetraybulktape_singletape_multiplereelunknown
team_id
string <uuid>
Team id
custom_properties
object
Custom properties
Additional properties
string
optional
Example
{
"synced_from_integration": true,
"integration_source_name": "string",
"integration_record_id": "string",
"synced_from_integration_at": "2019-08-24T14:15:22Z",
"metadata": {},
"quantity": 0,
"notes": "string",
"country_of_origin": "st",
"date_code": "string",
"mfg_lot_code": "string",
"audited_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24",
"quarantined": true,
"smt_no_pnp": true,
"msl": "st",
"msl_floor_hours": 0,
"tape_size": 0,
"unit_price_paid": "string",
"landed_unit_price_paid": "string",
"package_type": "tube",
"team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba",
"custom_properties": {
"property1": "string",
"property2": "string"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v1/stock_lots//' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
"synced_from_integration": true,
"integration_source_name": "string",
"integration_record_id": "string",
"synced_from_integration_at": "2019-08-24T14:15:22Z",
"metadata": {},
"quantity": 0,
"notes": "string",
"country_of_origin": "st",
"date_code": "string",
"mfg_lot_code": "string",
"audited_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24",
"quarantined": true,
"smt_no_pnp": true,
"msl": "st",
"msl_floor_hours": 0,
"tape_size": 0,
"unit_price_paid": "string",
"landed_unit_price_paid": "string",
"package_type": "tube",
"team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba",
"custom_properties": {
"property1": "string",
"property2": "string"
}
}'
Responses
🟢200Success
application/json
Body
id
string <uuid>
Id
metadata
object
Metadata
synced_from_integration
boolean
Synced from integration
synced_from_integration_at
string <date-time>
Synced from integration at
integration_source_name
string
Integration source name
>= 1 characters
integration_record_id
string
Integration record id
>= 1 characters
notes
string
Notes
org_id
string <uuid>
Org id
part_id
string <uuid>
Part id
lot_id
string
Lot id
>= 1 characters<= 5 characters
country_of_origin
string
Country of origin
quantity
integer
Quantity
date_code
string
Date code
<= 255 characters
mfg_lot_code
string
Mfg lot code
>= 1 characters
quarantined
boolean
Quarantined
smt_no_pnp
boolean
Smt no pnp
expected
boolean
Expected
msl
string
Msl
<= 255 characters
msl_floor_hours
integer
Msl floor hours
>= -2147483648<= 2147483647
tape_size
integer
Tape size
>= -2147483648<= 2147483647
audited_at
string <date-time>
Audited at
expires_at
string <date>
Expires at
unit_price_paid
string <decimal>
Unit price paid
landed_unit_price_paid
string <decimal>
Landed unit price paid
package_type
enum<string>
Package type
Allowed values:
tubetraybulktape_singletape_multiplereelunknown
stock_location
object (CustomerStockLocationLite)
required
id
string <uuid>
Id
name
string
Name
>= 1 characters<= 255 characters
external_name
string
External name
<= 255 characters
billable
boolean
Billable
location_type
enum<string>
Location type
Allowed values:
facilityesd_bin_201506bin_sectionbig_reel_hopperbagworkstationdry_cabinetshelfpalletothernot_specified
address
string
Address
customer_location
boolean
Customer location
parent
string <uuid>
Parent
facility
string <uuid>
Facility
notification_email
string <email>
Notification email
<= 255 characters
org
string <uuid>
Org
manufacturer
boolean
Manufacturer
requires_msl_reset
boolean
Requires msl reset
requires_lcr_inspection
boolean
Requires lcr inspection
requires_dimensional_inspection
boolean
Requires dimensional inspection
accepts_tubes
boolean
Accepts tubes
requires_reels
boolean
Requires reels
requires_merges
boolean
Requires merges
requires_splits
boolean
Requires splits
consumes_stock
boolean
Consumes stock
long_term_storage
boolean
Long term storage
warehouse_shipping_enabled
boolean
Warehouse shipping enabled
warehouse_handling_enabled
boolean
Warehouse handling enabled
accepts_smt_no_pnp
boolean
Accepts smt no pnp
default_package
enum<string>
Default package
Allowed values:
tubetraybulktape_singletape_multiplereelunknown
custom_properties
object
Custom properties
address
object (CustomerStockLocationLite)
required
created_from_id
string <uuid>
Created from id
replaced_by_id
string <uuid>
Replaced by id
purchase_order_line_id
string <uuid>
Purchase order line id
team
object (TeamLite)
required
id
string <uuid>
Id
name
string
Name
>= 1 characters<= 255 characters
org
string <uuid>
Org
team_type
object (TeamType)
optional
external_metadata
object
External metadata
internal_metadata
object
Internal metadata
archived
string
Archived
custom_properties
object
Custom properties
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata": {},
"synced_from_integration": true,
"synced_from_integration_at": "2019-08-24T14:15:22Z",
"integration_source_name": "string",
"integration_record_id": "string",
"notes": "string",
"org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
"part_id": "28c660ae-a12c-4da7-9243-03385b104cf1",
"lot_id": "strin",
"country_of_origin": "string",
"quantity": 0,
"date_code": "string",
"mfg_lot_code": "string",
"quarantined": true,
"smt_no_pnp": true,
"expected": true,
"msl": "string",
"msl_floor_hours": -2147483648,
"tape_size": -2147483648,
"audited_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24",
"unit_price_paid": "string",
"landed_unit_price_paid": "string",
"package_type": "tube",
"stock_location": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"external_name": "string",
"billable": true,
"location_type": "facility",
"address": "string",
"customer_location": true,
"parent": "42e2bc1b-6741-4e2e-b138-97b4a342c999",
"facility": "c7817696-f95c-43d7-adb1-358006544c72",
"notification_email": "user@example.com",
"org": "3b4eb1f5-aaca-43c1-9ccf-5bbd44308aba",
"manufacturer": true,
"requires_msl_reset": true,
"requires_lcr_inspection": true,
"requires_dimensional_inspection": true,
"accepts_tubes": true,
"requires_reels": true,
"requires_merges": true,
"requires_splits": true,
"consumes_stock": true,
"long_term_storage": true,
"warehouse_shipping_enabled": true,
"warehouse_handling_enabled": true,
"accepts_smt_no_pnp": true,
"default_package": "tube",
"custom_properties": {}
},
"address": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"external_name": "string",
"billable": true,
"location_type": "facility",
"address": "string",
"customer_location": true,
"parent": "42e2bc1b-6741-4e2e-b138-97b4a342c999",
"facility": "c7817696-f95c-43d7-adb1-358006544c72",
"notification_email": "user@example.com",
"org": "3b4eb1f5-aaca-43c1-9ccf-5bbd44308aba",
"manufacturer": true,
"requires_msl_reset": true,
"requires_lcr_inspection": true,
"requires_dimensional_inspection": true,
"accepts_tubes": true,
"requires_reels": true,
"requires_merges": true,
"requires_splits": true,
"consumes_stock": true,
"long_term_storage": true,
"warehouse_shipping_enabled": true,
"warehouse_handling_enabled": true,
"accepts_smt_no_pnp": true,
"default_package": "tube",
"custom_properties": {}
},
"created_from_id": "36467ebc-4c23-4998-89ba-cd9e1789e0c9",
"replaced_by_id": "a3d84e0a-4d68-4aaf-98ed-4d6a393ea8e5",
"purchase_order_line_id": "6aaf2dc6-30c7-4505-9586-18c27b19103c",
"team": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"org": "3b4eb1f5-aaca-43c1-9ccf-5bbd44308aba",
"team_type": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"plural_name": "string",
"org": "3b4eb1f5-aaca-43c1-9ccf-5bbd44308aba"
},
"external_metadata": {},
"internal_metadata": {},
"archived": "string"
},
"custom_properties": {}
}
Modified at 2024-10-09 06:13:51