Inhalte aufrufen

Profilbild

WebApi: Changing a Status like OrderStatus in /Orders doesn't trigger email


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
8 Antworten zu diesem Thema

#1 TripleNico

TripleNico

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 124 Beiträge

Geschrieben: 12 May 2020 - 13:57

So when i update a status like Order.OrderStatusId to OrderStatus.Complete(30) then the UI at in the backend get's updated but the customer doesn't receive any email with the status update. I think this is because the API doesn't trigger the email function. Is this something that can be added/fixed or triggered externally?

 



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 12 May 2020 - 15:27

Have you tried CompleteOrder (/odata/v1/Orders(<id>)/CompleteOrder)?

Marcus Gesing

Smartstore AG


#3 TripleNico

TripleNico

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 124 Beiträge

Geschrieben: 13 May 2020 - 08:00

Thanks for the tip, didn't know it was there. Maybe you could add this to the WebApi order documentation?
 
I want to change the status from the object below, some endpoints i found but not all:
Set OrderStatus Processing --> /odata/v1/Orders(<id>)/??
Set OrderStatus Complete --> /odata/v1/Orders(<id>)/CompleteOrder

Set PaymentStatus Paid --> /odata/v1/Orders(<id>)/PaymentPaid

Set ShippingStatus ShippingNotRequired --> /odata/v1/Orders(<id>)/??
Set ShippingStatus Shipped --> /odata/v1/Orders(<id>)/??

#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 13 May 2020 - 11:44

Yes, OrderProcessingService has a lot of functions and only a few of them can be executed via the API. I've created an issue for this.


Marcus Gesing

Smartstore AG


#5 TripleNico

TripleNico

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 124 Beiträge

Geschrieben: 13 May 2020 - 13:13

Great that you want to extend the API with more available options.

 

Just bumped into something; if I want to put an Order on Paid I have to call /PaymentPaid, but the endpoint requires a second parameter: "ODataActionParameters" what should I specify? If I only enter the order ID, this is not sufficient.



#6 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 13 May 2020 - 15:12

It's optional, see docu.


Marcus Gesing

Smartstore AG


#7 TripleNico

TripleNico

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 124 Beiträge

Geschrieben: 14 May 2020 - 09:09

The hyperlink brings me to a login page which i do not have acces to?



#8 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3801 Beiträge

Geschrieben: 14 May 2020 - 11:45

I've updated the hyperlink.


Marcus Gesing

Smartstore AG


#9 TripleNico

TripleNico

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 124 Beiträge

Geschrieben: 14 May 2020 - 12:12

Thanks! :-)