Comments (4)
It is not possible to change an order creation date (it is not need, as you can see), so this is api restriction. The reason why createdAt
is available in edit
method is that it is possible to create an order via edit
.
from api-client-php.
My situation:
I import orders (more than 10000 of 40000 all) with error, createdAt missing in import. This orders now created at 2014-05-31 date, but real date is 2010-2012 years.
How can I delete this orders? There is no OrderDelete in API, only one method i find: open order in CRM web interface and click basket button. But I have 10000+ bad orders.
from api-client-php.
Алексей, напишите мне на [email protected] с почты, которую вы указывали при создании CRM. Мы пересоздадим вам аккаунт.
Кроме этого дам рекомендации:
- Вы выгружаете заказы одиночными методами
/api/v2/orders/create
,/api/v2/customers/create
. Для первичной массовой выгрузки рекомендуем вам использовать/api/v2/orders/upload
и/api/v2/customers/upload
, где можно передавать до 50 элементов. Это позволяет ускорить выгрузку на порядок. - При выгрузке заказов, рекомендуем указывать для товаров в заказе название. Это рекомендовано для того, чтобы отображались названия тех товаров в заказе, которых уже больше нет в каталоге и их система не может связать по ID. В противном случае такие товары будут отображаться с названием "noname".
from api-client-php.
В v4 стала доступна возможность менять поле createdAt в методе в api/orders/edit
from api-client-php.
Related Issues (20)
- Некорректное удаление Расхода APIv5
- php 8 support HOT 1
- New order method lose customer info HOT 3
- Installation issue HOT 2
- Civi\CompilePlugin\Util\ComposerPassthru HOT 1
- Тип DateTime у поля birthday класса Customer
- Проблема с фильтрацией товаров в запросе $response = $client->store->products($request); HOT 10
- Uncaught Cannot deserialize body: Failed to JSON decode data. This is not supposed to happen HOT 1
- Incompatibility with PHP8.1 HOT 1
- Фильтр пользователей HOT 2
- Customer->nickName HOT 1
- How to Upgrade v5 to v6? HOT 1
- Проблема с files upload HOT 2
- Проблема формата выгрузки платежа HOT 4
- Проблема с передачей аргументов в методе accountCreate HOT 1
- Пользовательский заголовок в запрос HOT 9
- Пример из документации HOT 7
- Фатальная ошибка при использовании библиотеки HOT 5
- Каким образом получить список расходов? HOT 1
- Некорректно работает метод редактирования информации о файле. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-client-php.