UDF Update API

The UDF Update API is used to update the UDF1-UDF5 values of a transaction. UDFs are the user-defined fields which are posted from the merchant to PayU. This API is specifically used to update the values in these fields in the PayU database. The return parameters are the updated UDF values of the transaction.


Reference info for request parameters

keyThe merchant key provided by PayU while onboarding.
For more information on how to generate the Key and Salt, refer to any of the following:
- Production: Generate Merchant Key and Salt
- Test: Generate Test Merchant Key and Salt |
hashHash logic for _payment API is:
Sample response

Success Scenario

  • If successfully updated
"status":"UDF values updated",

Failure Scenarios

  • If the transaction ID is empty
[status] => 0 
[msg] => Parameter missing 
  • If the transaction ID is invalid
[status] => 0 
[msg] => Invalid TXN ID 
Click Try It! to start a request and see the response here!