curl -X 'POST' \
'https://...../api-backend/CheckoutAttributeParser/ParseCheckoutAttributeValues' \
-H 'accept: application/json' \
-H 'Content-Type: application/json-patch+json' \
-d '"<Attributes>
<CustomerAttribute ID=\"1\">
<CustomerAttributeValue>
<Value>CFCFCFCFCFCFCFCF</Value>
</CustomerAttributeValue>
</CustomerAttribute>
<CustomerAttribute ID=\"2\">
<CustomerAttributeValue>
<Value>ABC45A</Value>
</CustomerAttributeValue>
</CustomerAttribute>
</Attributes>"'
RESPONSE BODY empty: []
------------------------------------------------------------------------------------------------------------------------------------------
curl -X 'POST' \
'https://...../api-backend/CheckoutAttributeParser/ParseCheckoutAttributes' \
-H 'accept: application/json' \
-H 'Content-Type: application/json-patch+json' \
-d '"<Attributes>
<CustomerAttribute ID=\"1\">
<CustomerAttributeValue>
<Value>CFCFCFCFCFCFCFCF</Value>
</CustomerAttributeValue>
</CustomerAttribute>
<CustomerAttribute ID=\"2\">
<CustomerAttributeValue>
<Value>ABC45A</Value>
</CustomerAttributeValue>
</CustomerAttribute>
</Attributes>"'
RESPONSE BODY empty: []
------------------------------------------------------------------------------------------------------------------------------------
I Tried also to pass request body as XML ( not as string ) but i have this error:
{
"errors": {
"": [
"Unexpected character encountered while parsing value: <. Path '', line 1, position 1."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-78a86337ae14ea4087966b4afe66a32e-b9b3cc2dbe190840-00"
}
------------------------------------------------------------------------------------------------------------------------------------------------
Sergei-k wrote:Hi, Elicat1. Can you please tell me what is wrong with the ParseCustomerAttributes method from the CustomerAttributeParser controller, it does not return you any values, or does it work with an error?
This request returns XML:
/api-backend/GenericAttribute/GetAttribute/10791?key=CustomCustomerAttributes&entityTypeName=Customer
"
<Attributes>
<CustomerAttribute ID=\"1\">
<CustomerAttributeValue>
<Value>CFGERF12D234R44X</Value>
</CustomerAttributeValue>
</CustomerAttribute>
<CustomerAttribute ID=\"2\">
<CustomerAttributeValue>
<Value>ABC45Z</Value>
</CustomerAttributeValue>
</CustomerAttribute>
</Attributes>"
I tried to use the "CustomerAttributeParser" endpoints without being able to get the single values ...
Is possibile to do extract only values by API ?