Register the app's push token (FCM) for the signed-in customer
mobile app push notifications. Upsert by token: a new token creates a device, a known one refreshes lastSeenAt — and a token registered under ANOTHER customer (shared phone, new sign-in) is reassigned to the caller. At most 10 devices per customer: the least recently seen one is dropped. Always 200. The customer is the token's; unknown body fields are ignored. Pushes sent to these devices (order confirmed / shipped / delivered / cancelled by the shop, store reservation ready / cancelled by the shop) carry data strings { type: order_status | reservation, orderId?, orderNumber?, status, reservationNumber?, path } with path = /commande/<orderId> or /reservation/<reservationNumber>; Android channel orders. Sending is off until the marketplace switches it on.
Auth: Bearer JWT required; allowed realms: customer.
Authorizations
Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.
Request Body
Responses
Registered (created, refreshed or reassigned).