1b.app
Link copied -

problem when placing an order again

{"status":0,"errorArray":["Error updating item #0 on account. duplicate,notUnicPhone"]}
such a problem arises
in the request I am passing
'findbyArray' => [
'phones',
]
'returnwithoutupdate' => true
Original question is available on version: ua

Answers:

Hello to you too.
This error means that a contact with such a phone number already exists, which may indicate that you are not looking for a contact but are trying to create a new one each time. Provide a full request to the API, so it will be clearer what is happening and it will be possible to give an unambiguous answer
02.04.2025, среда, 12:20
Original comment available on version: ru

{
"0": {
"externalid": 213622,
"workflowid": "174",
"statusid": "4208",
"client": {
"typesex": "man",
"name": "TEST",
"namelast": "TEST",
"namemiddle": "Миколайович",
"findbyArray": [
"phones"
],
"phones": [
"380********"
],
"addnewphone": false,
"returnwithoutupdate": true,
"addnewemail": false,
"addressArray": [
{
"address": "м. Дніпро, вул. Князя Ярослава"
}
],
"exclfromgroup": false,
"addnewgroup": false
},
"deleteclient": false,
"deleteproducts": false,
"deletenotupdatedproducts": false,
"checkpromoid": 0,
"calculatePromo": false,
"products": [
{
"productinfo": {
"id": "32550"
},
"fictive": false,
"new": false,
"count": 1,
"price": "15709.47"
}
]
}
}
02.04.2025, среда, 15:20

in the findbyArray field change phones to phone
02.04.2025, среда, 15:56
Original comment available on version: ru

same error
02.04.2025, среда, 16:15
Original comment available on version: ua

Do you have only one contact with this number in your system?
02.04.2025, среда, 16:29
Original comment available on version: ru


give me a link to your box, I'll take a look
02.04.2025, среда, 16:44
Original comment available on version: ru

02.04.2025, среда, 17:25

Is there a solution?
вчера, 11:16
Original comment available on version: ua

nothing has changed in the last request https://os.strikeshop.ua/admin/logs/showall/ajax/?file=api-v2-order-set-2025-04-... [2025-04-02 16:15:00] at this time, as phones were sent to findbyArray, they are still sent..
вчера, 11:33
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment