0

While trying to create the Customer Payment Method using REST API, I'm facing this issue : Value Cannot be Empty. Below is the json that i'm using

{
    "CustomerID" : { "value" : "ARYA" },
    "PaymentMethod" : { "value" : "AMEX" },
    "ProcCenterID" : { "value" : "AUTDOTNET" },
    "CustomerPaymentMethodDetail" : [
    {
        "Name" : { "value" : "CCDNUM" },
        "Value" : { "value" : "5454545454545454" }
    },
    {
        "Name" : { "value" : "EXPDATE" },
        "Value" : { "value" : "102020" }
    },
    {
        "Name" : { "value" : "NAMEONCC" },
        "Value" : { "value" : "Test API" }
    },
    {
        "Name" : { "value" : "CVV" },
        "Value" : { "value" : "321" }
    }]
}

Thanks.

Hadrien K.
  • 161
  • 1
  • 14
  • It could help to post the full error messages and stack trace when available. There's likely more information besides 'Value Cannot be Empty". Identifying which field can't be empty will be necessary. – Hugues Beauséjour Jul 17 '19 at 14:21
  • A common alternative debugging approach would be to create the Customer Payment Method on screen using the same values you provide with REST. When saving the field with the missing value can be highlighted and flagged as an error. Once you know which field is missing a value you can add it in your REST query. – Hugues Beauséjour Jul 17 '19 at 14:23
  • thanks for your reply and i have tried with the same field name in the UI and able to create It. – Praveen Pola Jul 18 '19 at 11:06

0 Answers0