This method will auto-generate an ID and create a new merchandise. If an ID is specified for the merchandise, an error will be thrown.
The merchandise that you would like to be saved.
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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"
}
]
}
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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 scan all merchandise and and return them to the caller.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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 look up a merchandise by the specified ID and return it back.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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 merchandise with the specified ID.
The updated merchandise that will be saved.
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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"
}
]
}
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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 merchandise with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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 delete a merchandise with the specified ID.
curl -i -X DELETE \ https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId/:id \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"
Returns a list of records with the specified category_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId/category/:category_id?fields=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "shippable": true,
- "restocking_fee": 0,
- "weight": 0,
- "image_url": "string",
- "additional_image_urls": [
- "string"
], - "description": "string",
- "track_inventory": true,
- "allow_back_orders": true,
- "reorder_point": 0,
- "track_inventory_by": "product",
- "new_until": "2019-08-24T14:15:22Z",
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "featured_product": true,
- "featured_options": {
- "featured_from": "2019-08-24T14:15:22Z",
- "featured_until": "2019-08-24T14:15:22Z"
}, - "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "variant_options": [
- {
- "type": "ad hoc",
- "ad_hoc_variant_options": {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}, - "shared_variant_options": {
- "shared_variant_option_id": "string"
}
}
], - "variants": [
- {
- "sku": "string",
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "weight": 0
}
], - "enable_modifier_options": true,
- "modifier_options": [
- {
- "type": "ad hoc",
- "required": true,
- "ad_hoc_modifier_options": {
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}, - "shared_modifier_options": {
- "shared_modifier_option_id": "string"
}
}
], - "modifier_rules": [
- {
- "option_id": "string",
- "trigger_values": [
- "string"
], - "enable_price_adjustment": true,
- "enable_weight_adjustment": true,
- "price_adjustment_options": {
- "operation": "add",
- "affects": "price",
- "amount": 0
}, - "weight_adjustment_options": {
- "operation": "add",
- "amount": 0
}
}
], - "id": "string",
- "type": "commerce-merchandise",
- "name": "string",
- "business_unit_id": "string",
- "price": 0,
- "member_price": 0,
- "enable_product_confirmation_email": true,
- "product_confirmation_email_options": {
- "type": "product specific",
- "product_confirmation_email_id": "string",
- "product_specific_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}
}, - "enable_cancellation_fees": true,
- "cancellation_fee": 0,
- "enable_purchase_limits": true,
- "purchase_limits": {
- "type": "per customer",
- "maximum": 0,
- "time_period": "all time",
- "relative_time_window": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "error_message": "string"
}, - "enable_task_generation": true,
- "tasks_to_generate": [
- {
- "name": "string",
- "description": "string",
- "priority": "low",
- "type_id": "string",
- "notify_assignees": true,
- "assignee_type": "user",
- "assignment_role_id": "string",
- "user_id": "string",
- "queue_id": "string",
- "due_date_type": "none",
- "specific_due_date": "2019-08-24T14:15:22Z",
- "relative_due_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_document_entitlement_creation": true,
- "document_entitlements_to_create": [
- {
- "file_cabinet_id": "string",
- "item_id": "string",
- "library_path": "string",
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}
}
], - "enable_bulk_pricing": true,
- "bulk_pricing_rules": [
- {
- "starting_range": 0,
- "ending_range": 0,
- "discount_type": "percentage",
- "discount_amount": 0
}
], - "enable_purchasing_eligibility": true,
- "purchasing_eligibility_criteria": { },
- "enable_special_prices": true,
- "special_prices": [
- {
- "name": "string",
- "criteria": { },
- "price": 0,
- "enable_formula": true,
- "formula": "string"
}
], - "allow_customer_to_choose_installment_plan": true,
- "enable_bundled_products": true,
- "installment_plan_options": [
- {
- "installment_plan_id": "string",
- "additional_cost": 0,
- "is_default": true
}
], - "foreign_currency_prices": [
- {
- "currency_code": "AED",
- "price": 0,
- "member_price": 0,
- "cancellation_fee": 0,
- "restocking_fee": 0
}
], - "is_active": true,
- "bundled_products": [
- {
- "type": "bundled product",
- "product_type": "string",
- "product_id": "string",
- "quantity": 0,
- "price": 0,
- "member_price": 0
}
], - "bundled_products_inventory_handling": "bundle",
- "hide_from_portal": true,
- "publish_to_portal": true,
- "portal_options": {
- "available_from": "2019-08-24T14:15:22Z",
- "available_until": "2019-08-24T14:15:22Z"
}, - "notes": "string",
- "enable_coupon_code_generation": true,
- "coupon_codes": [
- {
- "coupon_type": "string",
- "coupon_id": "string",
- "coupon_code_type": "single use",
- "coupon_code_generation_process_id": "string",
- "quantity": 250,
- "restrict_to_contact": true,
- "restrict_to_organization": true,
- "expiration_type": "none",
- "expiration_date": "2019-08-24T14:15:22Z",
- "relative_expiration_date": {
- "position": "before",
- "number": 0,
- "unit_of_time": "days",
- "relative_to": "the reference date"
}, - "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1
}
], - "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"
}
]
}
]
Lists all merchandise
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId/public?exclusiveStartKey=string'
{- "Items": [
- {
- "id": "string",
- "name": "string",
- "image_url": "string",
- "price": 0,
- "member_price": 0,
- "date_added": "string",
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "is_new": true,
- "is_featured": true,
- "enable_special_prices": true,
- "category_ids": [
- "string"
]
}
], - "LastEvaluatedKey": "string"
}
Searches for merchandise using predefined parameters
The merchandise that you would like to be saved.
{- "id": [
- "string"
], - "price": [
- 0,
- 0
], - "member_price": [
- 0,
- 0
], - "category_id": [
- "string"
], - "weight": [
- 0,
- 0
], - "track_inventory": true
}
{- "Items": [
- {
- "shippable": true,
- "weight": 0,
- "allow_back_orders": true,
- "track_inventory_by": "product",
- "enable_bulk_pricing": true,
- "new_until": "2019-08-24T14:15:22Z",
- "category_ids": [
- "string"
], - "enable_restocking_fees": true,
- "enable_variant_options": true,
- "enable_modifier_options": true,
- "price": 0,
- "member_price": 0,
- "enable_cancellation_fees": true,
- "track_inventory": true,
- "enable_purchasing_eligibility": true,
- "allow_customer_to_choose_installment_plan": true,
- "is_active": true,
- "publish_to_portal": true
}
], - "LastEvaluatedKey": "string"
}
Gets merchandise info
curl -i -X GET \ https://commerce.api.756794052567.rhythmsoftware.com/merchandise/:tenantId/public/:id
{- "business_unit_id": "string",
- "id": "string",
- "name": "string",
- "image_url": "string",
- "description": "string",
- "price": 0,
- "member_price": 0,
- "additional_image_urls": [
- "string"
], - "date_added": "string",
- "is_new": true,
- "is_featured": true,
- "track_inventory": true,
- "sort_order": 0,
- "sellable_from": "2019-08-24T14:15:22Z",
- "sellable_until": "2019-08-24T14:15:22Z",
- "enable_special_prices": true,
- "category_ids": [
- "string"
], - "variant_options": [
- {
- "type": "swatch",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
]
}
], - "modifier_options": [
- {
- "required": true,
- "type": "dropdown",
- "id": "string",
- "name": "string",
- "default_value": "string",
- "values": [
- "string"
], - "enable_character_restriction": true,
- "maximum_number_of_characters": 0
}
], - "variants": [
- {
- "options": [
- {
- "option_id": "string",
- "value": "string"
}
], - "not_purchasable": true,
- "image_uri": "string",
- "price": 0,
- "member_price": 0,
- "sku": "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": { }
}
]
}