Update: New Endpoints for Order Approvals and Rejections

We have introduced two new endpoints: POST api/v2/order_approvals/{id}/approve and POST api/v2/order_approvals/{id}/reject. These endpoints are designed to provide a more intuitive approach to managing order approvals and rejections.

Both endpoints facilitate the approval or rejection of orders pending review. To utilize these features, ensure 'Allow approvals via API' is enabled in your organization's 'Order Approvals' settings.

Rationale for Change

The previous method of handling order approvals through individual rewards was not only counterintuitive but also limited in functionality. With the discontinuation of multi-reward orders via API, these new endpoints provide a straightforward solution for order management.

Sunset Plan

The following endpoints are now deprecated:

  • POST api/v2/rewards/{id}/approve
  • POST api/v2/rewards/{id}/cancel
  • POST api/v2/orders/{id}/approve

These will remain operational for the time being to ensure backward compatibility. However, we plan to sunset them after a transition period. The timeline and details of this process will be communicated to the relevant clients separately.

We encourage all users to start migrating to the new endpoints as soon as possible. For detailed information and guidance on this migration, please check the API reference. Transitioning early will ensure a more streamlined experience and avoid any disruptions when the older endpoints are eventually sunset.