79699844

Date: 2025-07-13 08:47:55
Score: 0.5
Natty:
Report link

I managed to find out how Apple posts the request, which can be seen and captured with:

@Post('/:version/devices/:deviceLibraryIdentifier/registrations/:passTypeIdentifier/:serialNumber')
    async logPost(
        @Headers() headers: any,
        @Param('deviceLibraryIdentifier') deviceLibraryIdentifier: string,
        @Param('passTypeIdentifier') passTypeIdentifier: string,
        @Param('serialNumber') serialNumber: string,
        @Query('passesUpdatedSince') passesUpdatedSince: string,
      ): Promise<any> {
        this.logger.log('Received POST from Apple');
        this.logger.debug(`Headers: ${JSON.stringify(headers)}`);
        this.logger.debug(`Params: ${deviceLibraryIdentifier}, ${passTypeIdentifier}, ${serialNumber}`);
        this.logger.debug(`passesUpdatedSince: ${passesUpdatedSince}`);
        const date = new Date();
        return { lastUpdated: date.toISOString() };
      }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kayer