Update customer

PUT {{baseUrl}}/customers/:customerId

Fully updates an existing Customer.

Expects same input as the POST Customer endpoint. This endpoint returns errors equivalent to the create customer endpoint.

This endpoint supports concurrency control through the If-Match header expecting an Etag value returned by the GET endpoint.

Allowed roles : EDITOR

Request Body

{"id"=>"78c483d7-5e6d-488b-981c-2ac4bccca2a5", "contracts"=>[{"type"=>"standard", "signedDate"=>"2012-10-11T01:57:00.766Z", "cancelledDate"=>"2008-02-05T04:50:42.598Z", "additionalAttributes"=>{"Lorem_41"=>"et elit nulla non", "deserunt_d01"=>"id in aliquip laborum"}}], "owner"=>{"entityId"=>"eu ex esse sunt elit"}, "authorized"=>[{"entityId"=>"sun"}, {"entityId"=>"in "}], "additionalAttributes"=>{"est9f7"=>"nostrud mollit velit", "id_064"=>"laboris irure minim"}}

HEADERS

KeyDatatypeRequiredDescription
tangany-versionnumber(Required) API version
If-Matchstring(Optional header) Avoid mid-air collisions by matching a resources etag
Content-Typestring
Acceptstring
_tangany-datastring

RESPONSES

status: OK

{"authorized":[{"entityId":"in aliqua"},{"entityId":"aliq"}],"contracts":[{"type":"standard","signedDate":"1960-05-25T17:31:40.794Z","cancelledDate":"1955-10-03T11:10:20.034Z","additionalAttributes":{"amet_f9":"Ut consequat ipsum","consequat_e8":"do labore Ut"}}],"id":"78c483d7-5e6d-488b-981c-2ac4bccca2a5","owner":{"entityId":"proident enim nisi aliqua a"},"reason":null,"status":"suspended","additionalAttributes":{"eae":"enim ","non89":"dolor adipisicing ex ut","labore_477":"Ut dolor","laboris_cf8":"elit incididunt"}}