Skip to content

Register the app's push token (FCM) for the signed-in customer​

POST
/customers/me/devices

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​

bearerAuth

Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
  
"token": "string",
  
"platform": "android",
  
"appVersion": "string",
  
"locale": "string"
}

Responses​

Registered (created, refreshed or reassigned).

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"deviceId": "string",
  
  
"platform": "android",
  
  
"createdAt": "2024-01-01T00:00:00Z",
  
  
"lastSeenAt": "2024-01-01T00:00:00Z"
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai