Skip to documentation
Documentation

Developer guide · 4 min

Authentication

Authentication and authorization are separate concerns. A valid token does not automatically grant access to another customer’s order.

Bearer tokens

Protected API calls use Authorization: Bearer <token>. Keep the token in the authenticated application boundary and avoid logging it.

Ownership checks

Customer routes must verify that an order, subscription or receipt belongs to the current user. Staff routes must enforce the relevant role.