< Return to Summary | File Generated: Tue Apr 16 2024 12:01:54 GMT+0000 (Coordinated Universal Time)

order-deletion >> unknown-order

Booking Flow:

Opportunity Type:

Feature: Core / Order Deletion Endpoint (Implemented)

Test: Expect a UnknownOrderError for an Order that does not exist

Runs Order Deletion for a non-existent Order (with a fictional UUID), expecting an UnknownOrderError error to be returned

Running only this test

npm start -- --runInBand test/features/core/order-deletion/implemented/unknown-order-test.js

Is this test failing?

The OpenActive Reference Implementation test result for this test can be used as a reference to help with debugging.


✅ 3 passed with 0 failures, 0 warnings and 0 suggestions


✅ Order Deletion

delete-order Request

DELETE https://localhost:5001/api/openbooking/orders/c134734b-0ee2-4647-824d-1683700af3ab


Response status code: 404 Not Found. Responded in 98.695501ms.

{
  "@context": "https://openactive.io/",
  "@type": "UnknownOrderError",
  "name": "The Booking System has no 'Order' matching the one requested.",
  "statusCode": 404
}

Specs