How to update Customer Custom Fields in MIva 10 using Customer_Update API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manisha
    Mivite Lite

    • Dec 2020
    • 5

    #1

    How to update Customer Custom Fields in MIva 10 using Customer_Update API

    How to update Custom Field value in Miva 10 using Customer_Update Function,
    Below is my python code snippet :

    from merchantapi.model import CustomFieldValues


    request = CustomerUpdate(client)

    # Setup our request variables
    request.set_customer_id('25')

    test1 = { "ERP_NO": "111" }

    request.set_custom_field_values(CustomFieldValues( test1))

    # Send the request
    response = request.send()

    here I am getting below error while setting CustomFieldValues( test1))

    MER-CUS-JSN-00062 - Module 'ERP_NO' not found
Working...
X