Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order IDs now have the string type #2

Open
sevkin opened this issue Mar 3, 2021 · 1 comment
Open

Order IDs now have the string type #2

sevkin opened this issue Mar 3, 2021 · 1 comment

Comments

@sevkin
Copy link
Owner

sevkin commented Mar 3, 2021

[ from ecwid developers mail list 11/11/2020 ]

Order IDs now have the string type

This is reflected in the API and the Ecwid UI. Previously, the Order IDs had the ‘number’ field type (e.g.167729309). From now on, the new fields (‘id’, ‘orderId’) with the ‘string’ type will be used instead of the old fields (‘orderNumber’, ‘vendorNumber’ and ‘id’ in Webhook events). This requires appropriate changes in your applications.

Webhooks, /orders endpoint have been changed

  • New id field instead of orderNumber and vendorOrderNumber fields in Ecwid REST API’s GET/PUT/DELETE /orders endpoint;
  • New orderId field in the response to the ‘Create order (POST)’ request;
  • New orderId field in Webhook events;
  • Old vendorOrderNumber and orderNumber are deprecated from now on.

Steps to make sure your up to date with the changes

  • Change order ID display in your applications.
  • Use new field from webhook to get order details.
  • Use the new order “id” field for Ecwid REST API PUT/DELETE requests.
  • Use the new order “id” field for order reference in payment applications.
@sevkin
Copy link
Owner Author

sevkin commented Mar 3, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant