Test your implementation#

Check your BYOM endpoints against the specification before you connect them to Afosto. Fill in your base URL and API key, and run the tests one by one. Each test calls your endpoints the way Afosto does and checks the answer: status codes, required fields, types, paging with next_cursor and idempotency. Expand the calls under a result to see what your API returned.

Connection

The key stays in this browser tab. Calls go through a proxy of this site, which forwards it to the base URL and does not store or log it.

1. GET /channels

Lists the channels, checks every Channel object and that a call without the key is refused.

2. GET /orders

Follows next_cursor for up to 5 pages. A small limit tests paging. Checks every Order, the sort on updated_at, and that channel is required.

3. GET /orders/{order_id}

Checks the order and that an unknown order id answers 404.

4. POST shipments and cancellations

These tests change data on the platform: they post a real shipment or cancellation. Use a test order. Each body is posted twice with the same id to test idempotency: the first must answer 201, the second 200.

POST /orders/{order_id}/shipments
POST /orders/{order_id}/cancellations