This method will look up a add on product by the specified ID and return it back.
curl -i -X GET \ 'https://membership.api.756794052567.rhythmsoftware.com/addOnProducts/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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 add on product with the specified ID.
The updated add on product that will be saved.
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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"
}
]
}
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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 add on product with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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 add on product with the specified ID.
curl -i -X DELETE \ https://membership.api.756794052567.rhythmsoftware.com/addOnProducts/:tenantId/:id \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"
Returns a list of records with the specified add_on_id
curl -i -X GET \ 'https://membership.api.756794052567.rhythmsoftware.com/addOnProducts/:tenantId/addOn/:add_on_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Items": [
- {
- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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"
}
]
}
], - "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": { }
}
]
}
This method will auto-generate an ID and create a new add on product. If an ID is specified for the add on product, an error will be thrown.
The add on product that you would like to be saved.
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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"
}
]
}
{- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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 add on products and and return them to the caller.
curl -i -X GET \ 'https://membership.api.756794052567.rhythmsoftware.com/addOnProducts/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "add_on_id": "string",
- "membership_package_id": "string",
- "id": "string",
- "type": "membership-add-on-products",
- "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"
}
]
}
]