This method will auto-generate an ID and create a new coupon code. If an ID is specified for the coupon code, an error will be thrown.
The coupon code that you would like to be saved.
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
Returns a list of records with the specified tenant_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
This method will look up a coupon code by the specified ID and return it back.
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing coupon code with the specified ID.
The updated coupon code that will be saved.
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing coupon code with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will delete a coupon code with the specified ID.
curl -i -X DELETE \ https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/:id \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"
Returns a list of records with the specified coupon_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/coupon/:coupon_type/:coupon_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Returns a list of records with the specified order_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/order/:order_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Returns a list of records with the specified contact_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/contact/:contact_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Returns a list of records with the specified organization_id
curl -i -X GET \ 'https://commerce.api.756794052567.rhythmsoftware.com/couponCodes/:tenantId/organization/:organization_id?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "Count": 0,
- "Items": [
- {
- "id": "string",
- "name": "string",
- "order_id": "string",
- "order_line_item_id": "string",
- "type": "single use",
- "enable_coupon_ownership": true,
- "owner_type": "contact",
- "contact_id": "string",
- "organization_id": "string",
- "enable_restricted_contacts": true,
- "restricted_contacts": [
- {
- "contact_id": "string"
}
], - "enable_restricted_organizations": true,
- "restricted_organizations": [
- {
- "organization_id": "string"
}
], - "enable_eligibility_criteria": true,
- "eligibility_criteria": {
- "logic_operator": "and",
- "customer_type": "contact",
- "members": true,
- "non_members": true,
- "member_options": {
- "member_type_ids": [
- "string"
], - "member_package_ids": [
- "string"
], - "member_statuses": [
- "active"
], - "member_status_reason_ids": [
- "string"
], - "section_members": true,
- "section_member_options": {
- "logic_operator": "and",
- "section_ids": [
- "string"
], - "section_type_ids": [
- "string"
]
}, - "chapter_members": true,
- "chapter_member_options": {
- "logic_operator": "and",
- "chapter_ids": [
- "string"
], - "chapter_type_ids": [
- "string"
]
}
}, - "committee_members": true,
- "committee_member_options": {
- "logic_operator": "and",
- "committee_ids": [
- "string"
], - "committee_type_ids": [
- "string"
], - "committee_position_ids": [
- "string"
]
}, - "certificants": true,
- "certification_options": {
- "logic_operator": "and",
- "program_ids": [
- "string"
]
}, - "enable_status_restriction": true,
- "status_restrictions": [
- "string"
], - "enable_organization_restrictions": true,
- "organization_restrictions": {
- "organization_type_ids": [
- "string"
], - "contact_role_ids": [
- "string"
]
}, - "enable_age_restrictions": true,
- "age_restrictions": {
- "minimum_age": 0,
- "maximum_age": 0
}, - "by_location": true,
- "location": {
- "negate_logic": true,
- "countries": [
- "string"
]
}, - "award_recipients": true,
- "award_options": {
- "logic_operator": "and",
- "award_type_ids": [
- "string"
], - "award_ids": [
- "string"
]
}, - "event_registrations": true,
- "event_registration_options": {
- "logic_operator": "and",
- "registration_category_ids": [
- "string"
], - "event_ids": [
- "string"
]
}, - "donors": true,
- "donor_options": {
- "logic_operator": "and",
- "donor_club_ids": [
- "string"
]
}, - "enable_advanced_rules": true,
- "advanced_rules": { },
- "advanced_rule_error_message": "string",
- "enable_expression": true,
- "expression": "string",
- "expression_error_message": "string"
}, - "coupon_type": "string",
- "coupon_id": "string",
- "maximum_number_of_uses_per_customer": 1,
- "maximum_number_of_total_uses": 1,
- "maximum_number_of_uses_per_organization": 1,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notes": "string",
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
], - "LastEvaluatedKey": "string"
}
Sends out a preview of the email
The domain_name to use to for record lookup
{- "cancellation_id": "string",
- "email_template": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "destination_email_address": "string",
- "order_id": "string",
- "order_item_line_number": 0,
- "coupon_type": "string",
- "coupon_id": "string",
- "return_id": "string",
- "shipment_id": "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": { }
}
]
}