PUT account/{id}/addresses/{id} API failing

Hi,

I created an address under an account with below payload:

{
"ADDRESS_TYPE": "Home",
"STREET": "S1",
"CITY": "C1",
"STATE": "ST1",
"POSTCODE": "411045",
"COUNTRY": "India"
}

The address gets created successfully. When I try to do a PUT operation on this with below payload, it gives error as "Sequence contains no matching element (400 Server exception). Also the address gets deleted from that account.

PUT paylaod :

{

"ADDRESS_ID": 20120628955,
"ADDRESS_TYPE": "PRIMARY"

}

0

Comments

2 comments
  • Hello Garima,

    Can you try passing in the entire address body in the PUT call?

     

    Thanks!

    0
    Comment actions Permalink
  • Thankyou. It worked.

    I did not see this behavior for other PUT APIs, that why got curious.

    0
    Comment actions Permalink

Please sign in to leave a comment.