curl -i -X POST \
'https://docs.api.rhythmsoftware.com/_mock/apis/membership/membership-v1/memberships/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"add_on_ids": [
"string"
],
"add_on_names": "string",
"add_ons": [
{
"add_on_id": "string",
"dues": 0.1,
"order_id": "string",
"order_line_item_id": "string",
"quantity": 1
}
],
"application_id": "string",
"application_process_id": "string",
"assigned_memberships": [
{
"add_on_ids": [
"string"
],
"chapter_ids": [
"string"
],
"contact_id": "string",
"section_ids": [
"string"
]
}
],
"bill_method": "auto renewal order",
"bill_organization": true,
"billed": true,
"certificate_uri": "string",
"chapter_ids": [
"string"
],
"chapter_names": "string",
"chapters": [
{
"chapter_id": "string",
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"was_renewed": true
}
],
"city": "string",
"contact_id": "string",
"country": "string",
"custom_field_values": [
{
"boolean_value": true,
"custom_field_id": "string",
"file_url_value": "string",
"list_value": [
"string"
],
"numeric_value": 0.1,
"string_value": "string",
"table_value": [
{}
]
}
],
"customer_id": "string",
"date_last_updated_in_portal": "2019-08-24T14:15:22Z",
"date_status": "not yet updated",
"directory_image_uri": "string",
"do_not_drop": true,
"do_not_renew": true,
"do_not_show_in_directory": true,
"email_address": "string",
"expiration_date": "string",
"first_name": "string",
"flowdown_depth": 1,
"hidden_directory_fields": [
"string"
],
"history": [
{
"cancellation_id": "string",
"end_date": "2019-08-24T14:15:22Z",
"event": "assignment",
"is_inherited_membership": true,
"new": {
"add_ons": [
{
"add_on_id": "string",
"dues": 0.1,
"order_id": "string",
"order_line_item_id": "string",
"quantity": 1
}
],
"chapter_id": "string",
"chapter_ids": [
"string"
],
"chapters": [
{
"chapter_id": "string",
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"was_renewed": true
}
],
"expiration_date": "string",
"is_new": true,
"join_date": "string",
"number": 0.1,
"origin": "assigned",
"package_id": "string",
"parent_membership_id": "string",
"reinstatement_date": "string",
"renewal_date": "string",
"section_ids": [
"string"
],
"sections": [
{
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"section_id": "string",
"was_renewed": true
}
],
"status": "active",
"status_reason_id": "string",
"term_start_date": "string",
"termination_date": "string",
"type_id": "string"
},
"old": {
"add_ons": [
{
"add_on_id": "string",
"dues": 0.1,
"order_id": "string",
"order_line_item_id": "string",
"quantity": 1
}
],
"chapter_id": "string",
"chapter_ids": [
"string"
],
"chapters": [
{
"chapter_id": "string",
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"was_renewed": true
}
],
"expiration_date": "string",
"is_new": true,
"join_date": "string",
"number": 0.1,
"origin": "assigned",
"package_id": "string",
"parent_membership_id": "string",
"reinstatement_date": "string",
"renewal_date": "string",
"section_ids": [
"string"
],
"sections": [
{
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"section_id": "string",
"was_renewed": true
}
],
"status": "active",
"status_reason_id": "string",
"term_start_date": "string",
"termination_date": "string",
"type_id": "string"
},
"order_id": "string",
"order_line_item_id": "string",
"parent_membership_id": "string",
"start_date": "2019-08-24T14:15:22Z"
}
],
"id": "string",
"is_new": true,
"job_title": "string",
"join_date": "string",
"join_or_last_renewal_date": "string",
"lapse_date": "string",
"last_bill_date": "2019-08-24T14:15:22Z",
"last_change_affiliation_date": "2019-08-24T14:15:22Z",
"last_expired_card_warning": 0.1,
"last_expired_card_warning_date": "2019-08-24T14:15:22Z",
"last_name": "string",
"last_reminder": 0.1,
"last_reminder_date": "2019-08-24T14:15:22Z",
"master_membership_id": "string",
"master_membership_organization_id": "string",
"membership_join_date": "string",
"name": "string",
"notes": "string",
"number": 0.1,
"order_amount_paid": 0.1,
"order_balance_due": 0.1,
"order_currency_code": "string",
"order_currency_symbol": "string",
"order_id": "string",
"order_line_item_id": "string",
"order_number": 0.1,
"order_status": "awaiting payment",
"order_total": 0.1,
"organization_id": "string",
"origin": "assigned",
"overridden_fields": [
"string"
],
"owner_type": "contact",
"package_id": "string",
"parent_membership_id": "string",
"past_chapter_memberships": [
{
"chapter_id": "string",
"end_date": "2019-08-24",
"join_date": "2019-08-24T14:15:22Z",
"start_date": "2019-08-24"
}
],
"past_section_memberships": [
{
"end_date": "2019-08-24",
"join_date": "2019-08-24T14:15:22Z",
"section_id": "string",
"start_date": "2019-08-24"
}
],
"primary_chapter_id": "string",
"referral_contact_id": "string",
"reinstatement_date": "string",
"renew_automatically": true,
"renewal_currency_code": "AED",
"renewal_date": "string",
"renewal_payment_card_expiration": "2019-08-24",
"renewal_payment_info": {
"card_expiration": "string",
"card_type": "american express",
"merchant_account_tokens": [
{
"merchant_account_id": "string",
"token": "string"
}
],
"payment_account": "string",
"payment_origin": "ad hoc",
"token": "string",
"type": "credit card"
},
"section_ids": [
"string"
],
"section_names": "string",
"sections": [
{
"dues": 0.1,
"is_new_member": true,
"join_date": "2019-08-24T14:15:22Z",
"order_id": "string",
"order_line_item_id": "string",
"section_id": "string",
"was_renewed": true
}
],
"state": "string",
"status": "active",
"status_reason_id": "string",
"sys_bulk_load_at": "string",
"sys_bulk_load_id": "string",
"sys_bulk_load_pk": "string",
"sys_bulk_load_record_no": 0.1,
"sys_bulk_load_source_file": "string",
"sys_calculated_field_error": "string",
"sys_calculated_field_errors": [
{
"error": "string",
"field": "string"
}
],
"sys_configuration_snapshot_id": "string",
"sys_created_at": "2019-08-24T14:15:22Z",
"sys_created_by_id": "string",
"sys_deleted_by_id": "string",
"sys_directive": "string",
"sys_external_id": "string",
"sys_has_files_in_s3": true,
"sys_last_bulk_data_operation_id": "string",
"sys_last_bulk_data_operation_sys_version": "string",
"sys_last_modified_at": "2019-08-24T14:15:22Z",
"sys_last_modified_by_id": "string",
"sys_last_security_context": {},
"sys_locked": true,
"sys_snapshot_base_version": 0.1,
"sys_version": 0.1,
"term_start_date": "string",
"termination_date": "string",
"type_id": "string"
}'