This method will auto-generate an ID and create a new inventory transaction. If an ID is specified for the inventory transaction, an error will be thrown.
The inventory transaction that you would like to be saved.
{- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "notification_publishKey": "string",
- "notification_subscribeKey": "string",
- "notification_channel": "string",
- "executionArn": "string",
- "start_date": "2019-08-24T14:15:22Z"
}
curl -i -X POST \ https://commerce.api.756794052567.rhythmsoftware.com/inventoryTransactions/warmUpStepFunctions \ -H 'Authorization: YOUR_API_KEY_HERE'
This method will look up a inventory transaction by the specified ID and return it back.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/inventoryTransactions/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing inventory transaction with the specified ID.
The updated inventory transaction that will be saved.
{- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing inventory transaction with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
Returns a list of records with the specified order_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/inventoryTransactions/:tenantId/order/:order_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Returns a list of records with the specified open_purchase_order_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/inventoryTransactions/:tenantId/openPurchaseOrders/:product_type/:product_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Returns a list of records with the specified product_inventory_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/inventoryTransactions/:tenantId/productInventory/:product_inventory_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "type": "adjustment",
- "date": "2019-08-24T14:15:22Z",
- "product_inventory_id": "string",
- "warehouse_id": "string",
- "product_type": "string",
- "product_id": "string",
- "product_sku": "string",
- "bin_id": "string",
- "quantity": 0,
- "invoice_number": "string",
- "notes": "string",
- "is_defective": true,
- "shipment_id": "string",
- "inventory_receipt_id": "string",
- "related_transactions": [
- {
- "transaction_id": "string",
- "type": "string"
}
], - "order_id": "string",
- "order_line_item_id": "string",
- "return_id": "string",
- "return_line_item_id": "string",
- "unit_cost": 0,
- "total_cost": 0,
- "quantity_received": 0,
- "purchase_order_id": "string",
- "transfer_id": "string",
- "starting_quantity": 0,
- "ending_quantity": 0,
- "cogs_quantity_remaining": 0,
- "target_product_inventory_id": "string",
- "target_warehouse_id": "string",
- "target_bin_id": "string",
- "cancelled_commitment_id": "string",
- "sys_product_type_id": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
TAllows you to perform up to 100 parallel patch/delete operations
The batch request
Array of objects |
{- "operations": [
- {
- "operation": "create",
- "id": "string",
- "patch_directives": [
- {
- "op": "add",
- "path": "string",
- "value": "string"
}
], - "object": { }
}
]
}
{- "success_count": 0,
- "error_count": 0,
- "results": [
- {
- "operation": "create",
- "id": "string",
- "outcome": "success",
- "error_message": "string",
- "object": { }
}
]
}