WebPhoneUpdate

Initial Build

2008.01

xWEB

Web Method

Response Type

XML results

This method can be used to update a customer phone number.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<!--Optional:-->
<ns:Token>?</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBPhoneUpdate>
<!--Optional:-->
<ns:oFacadeObject>
<ns:Phone_XRef>
<ns:cph_key>?</ns:cph_key>
<ns:cph_cst_key>?</ns:cph_cst_key>
<ns:cph_phn_key>?</ns:cph_phn_key>
<ns:cph_pht_key>?</ns:cph_pht_key>
<ns:cph_cst_link_key>?</ns:cph_cst_link_key>
<ns:cph_add_user>?</ns:cph_add_user>
<ns:cph_add_date>?</ns:cph_add_date>
<ns:cph_change_user>?</ns:cph_change_user>
<ns:cph_change_date>?</ns:cph_change_date>
<ns:cph_delete_flag>?</ns:cph_delete_flag>
<ns:cph_key_ext>?</ns:cph_key_ext>
<ns:cph_unlisted_flag>?</ns:cph_unlisted_flag>
<ns:cph_phn_number_complete>?</ns:cph_phn_number_complete>
<ns:cph_extension>?</ns:cph_extension>
<ns:cph_entity_key>?</ns:cph_entity_key>
<ns:cph_primary>?</ns:cph_primary>
<ns:cph_owner>?</ns:cph_owner>
</ns:Phone_XRef>
<ns:Customer>
<ns:cst_key>?</ns:cst_key>
<ns:cst_type>?</ns:cst_type>
<ns:cst_name_cp>?</ns:cst_name_cp>
<ns:cst_sort_name_dn>?</ns:cst_sort_name_dn>
<ns:cst_ind_full_name_dn>?</ns:cst_ind_full_name_dn>
<ns:cst_org_name_dn>?</ns:cst_org_name_dn>
<ns:cst_ixo_title_dn>?</ns:cst_ixo_title_dn>
<ns:cst_pref_comm_meth>?</ns:cst_pref_comm_meth>
<ns:cst_bio>?</ns:cst_bio>
<ns:cst_add_date>?</ns:cst_add_date>
<ns:cst_add_user>?</ns:cst_add_user>
<ns:cst_change_date>?</ns:cst_change_date>
<ns:cst_change_user>?</ns:cst_change_user>
<ns:cst_delete_flag>?</ns:cst_delete_flag>
<ns:cst_recno>?</ns:cst_recno>
<ns:cst_id>?</ns:cst_id>
<ns:cst_key_ext>?</ns:cst_key_ext>
<ns:cst_email_text_only>?</ns:cst_email_text_only>
<ns:cst_credit_limit>?</ns:cst_credit_limit>
<ns:cst_src_code>?</ns:cst_src_code>
<ns:cst_tax_exempt_flag>?</ns:cst_tax_exempt_flag>
<ns:cst_tax_id>?</ns:cst_tax_id>
<ns:cst_no_email_flag>?</ns:cst_no_email_flag>
<ns:cst_cxa_key>?</ns:cst_cxa_key>
<ns:cst_cxa_billing_key>?</ns:cst_cxa_billing_key>
<ns:cst_eml_address_dn>?</ns:cst_eml_address_dn>
<ns:cst_eml_key>?</ns:cst_eml_key>
<ns:cst_no_phone_flag>?</ns:cst_no_phone_flag>
<ns:cst_phn_number_complete_dn>?</ns:cst_phn_number_complete_dn>
<ns:cst_cph_key>?</ns:cst_cph_key>
<ns:cst_no_fax_flag>?</ns:cst_no_fax_flag>
<ns:cst_fax_number_complete_dn>?</ns:cst_fax_number_complete_dn>
<ns:cst_cfx_key>?</ns:cst_cfx_key>
<ns:cst_ixo_key>?</ns:cst_ixo_key>
<ns:cst_oldid>?</ns:cst_oldid>
<ns:cst_no_web_flag>?</ns:cst_no_web_flag>
<ns:cst_url_code_dn>?</ns:cst_url_code_dn>
<ns:cst_member_flag>?</ns:cst_member_flag>
<ns:cst_url_key>?</ns:cst_url_key>
<ns:cst_parent_cst_key>?</ns:cst_parent_cst_key>
<ns:cst_no_msg_flag>?</ns:cst_no_msg_flag>
<ns:cst_msg_handle_dn>?</ns:cst_msg_handle_dn>
<ns:cst_web_login>?</ns:cst_web_login>
<ns:cst_web_password>?</ns:cst_web_password>
<ns:cst_msg_key>?</ns:cst_msg_key>
<ns:cst_entity_key>?</ns:cst_entity_key>
<ns:cst_web_start_date>?</ns:cst_web_start_date>
<ns:cst_no_mail_flag>?</ns:cst_no_mail_flag>
<ns:cst_web_end_date>?</ns:cst_web_end_date>
<ns:cst_web_force_password_change>?</ns:cst_web_force_password_change>
<ns:cst_web_login_disabled_flag>?</ns:cst_web_login_disabled_flag>
<ns:cst_comment>?</ns:cst_comment>
<ns:cst_credit_hold_flag>?</ns:cst_credit_hold_flag>
<ns:cst_credit_hold_reason>?</ns:cst_credit_hold_reason>
<ns:cst_web_forgot_password_status>?</ns:cst_web_forgot_password_status>
<ns:cst_old_cxa_key>?</ns:cst_old_cxa_key>
<ns:cst_last_email_date>?</ns:cst_last_email_date>
<ns:cst_no_publish_flag>?</ns:cst_no_publish_flag>
<ns:cst_sin_key>?</ns:cst_sin_key>
<ns:cst_ttl_key>?</ns:cst_ttl_key>
<ns:cst_jfn_key>?</ns:cst_jfn_key>
<ns:cst_cur_key>?</ns:cst_cur_key>
<ns:cst_attribute_1>?</ns:cst_attribute_1>
<ns:cst_attribute_2>?</ns:cst_attribute_2>
</ns:Customer>
<ns:Phone>
<ns:phn_key>?</ns:phn_key>
<ns:phn_cst_key_owner>?</ns:phn_cst_key_owner>
<ns:phn_number>?</ns:phn_number>
<ns:phn_number_display>?</ns:phn_number_display>
<ns:phn_cty_key>?</ns:phn_cty_key>
<ns:phn_add_user>?</ns:phn_add_user>
<ns:phn_add_date>?</ns:phn_add_date>
<ns:phn_change_user>?</ns:phn_change_user>
<ns:phn_change_date>?</ns:phn_change_date>
<ns:phn_delete_flag>?</ns:phn_delete_flag>
<ns:phn_entity_key>?</ns:phn_entity_key>
<ns:phn_key_ext>?</ns:phn_key_ext>
</ns:Phone>
<ns:Country>
<ns:cty_code>?</ns:cty_code>
<ns:cty_add_date>?</ns:cty_add_date>
<ns:cty_add_user>?</ns:cty_add_user>
<ns:cty_change_date>?</ns:cty_change_date>
<ns:cty_change_user>?</ns:cty_change_user>
<ns:cty_delete_flag>?</ns:cty_delete_flag>
<ns:cty_key>?</ns:cty_key>
<ns:cty_key_ext>?</ns:cty_key_ext>
<ns:cty_entity_key>?</ns:cty_entity_key>
<ns:cty_long_name>?</ns:cty_long_name>
<ns:cty_fips_code>?</ns:cty_fips_code>
<ns:cty_sovereignty>?</ns:cty_sovereignty>
<ns:cty_status>?</ns:cty_status>
<ns:cty_capital>?</ns:cty_capital>
<ns:cty_idd_code>?</ns:cty_idd_code>
<ns:cty_rgn_key>?</ns:cty_rgn_key>
<ns:cty_srg_key>?</ns:cty_srg_key>
<ns:cty_postal_input_mask>?</ns:cty_postal_input_mask>
<ns:cty_phone_input_mask>?</ns:cty_phone_input_mask>
<ns:cty_currency_code>?</ns:cty_currency_code>
<ns:cty_currency_code_description>?</ns:cty_currency_code_description>
<ns:cty_vat_flag>?</ns:cty_vat_flag>
<ns:cty_iso_2>?</ns:cty_iso_2>
<ns:cty_iso_3>?</ns:cty_iso_3>
<ns:cty_iso_number>?</ns:cty_iso_number>
<ns:cty_do_not_ship>?</ns:cty_do_not_ship>
</ns:Country>
</ns:oFacadeObject>
</ns:WEBPhoneUpdate>
</soapenv:Body>
</soapenv:Envelope>
   

JSON Method

Update the phone number record for a customer.

See result from WEBPhoneGet for all possible fields in the update call.

 

GET n/a

POST /xweb/JSON/WEBPhoneUpdate

Copy
EXAMPLE: Update the phone type key and the phone number
DATA: JSON
{
    "WEBPhoneUpdate": {
            "oFacadeObject": {
                "CurrentKey": "ae0c81e1-4af5-43bb-95f1-221459c07a80",
                "Phone_XRef": {
                    "cph_key": "ae0c81e1-4af5-43bb-95f1-221459c07a80",
                    "cph_pht_key": "243f7447-c38b-473f-be84-dbedd2f1f55e"
                },
                "Phone": {
                    "phn_key": "d8d6f804-fc51-4f5d-8a42-4384aa2d37ba",
                    "phn_number": "800-555-1010"
                }
           }
     }
}

 

Copy
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
true