openapi: 3.2.0 info: title: Pagopa Notification Cancellation API version: 1.0.0 contact: name: 'SEND: supporto enti' url: https://pagopa.atlassian.net/servicedesk/customer/portal/5 termsOfService: https://selfcare.notifichedigitali.it/termini-di-servizio x-api-id: api-external-b2b-pa x-summary: 'Piattaforma Notifiche: API B2B per le Pubbliche Amministrazioni' description: 'Operations tagged NotificationCancellation across 2 of this provider''s published API definitions: send-b2b-pa-bundle.yaml, pagopa-send-b2b-pa-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.notifichedigitali.it description: Ambiente di produzione - url: https://api.uat.notifichedigitali.it description: Ambiente di collaudo security: - ApiKeyAuth: [] tags: - name: NotificationCancellation description: Annullamento di una notifica paths: /delivery-push/v2.0/notifications/cancel/{iun}: put: summary: Annullamento notifica description: Permette l'annullamento di una notifica restituendo una presa in carico, il processo di annullamento si completa poi in maniera asincrona tags: - NotificationCancellation operationId: notificationCancellation parameters: - $ref: '#/components/parameters/pathIun' responses: '202': description: Accepted - Richiesta annullamento presa in carico content: application/json: schema: $ref: '#/components/schemas/RequestStatus' '400': description: Bad request content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '404': description: Not found content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '500': description: Internal Server Error content: application/problem+json: schema: $ref: '#/components/schemas/Problem' servers: - url: https://api.notifichedigitali.it description: Ambiente di produzione - url: https://api.uat.notifichedigitali.it description: Ambiente di collaudo components: parameters: pathIun: description: Identificativo Univoco Notifica name: iun in: path required: true schema: type: string minLength: 25 maxLength: 25 pattern: ^[A-Z]{4}-[A-Z]{4}-[A-Z]{4}-[0-9]{6}-[A-Z]{1}-[0-9]{1}$ schemas: StatusDetail: description: Detail of response to cancellation async call type: object required: - code properties: code: description: Internal code of the error or warning, in human-readable format example: NOTIFICATION_CANCELLATION_ACCEPTED, NOTIFICATION_ALREADY_CANCELLED type: string level: description: 'informational level of status detail: INFO,WARN, ERR ERR (error) by default ' example: INFO type: string detail: description: A human readable explanation specific to this occurrence of the problem. example: Parameter not valid type: string Problem: properties: type: description: URI reference of type definition type: string status: description: The HTTP status code generated by the origin server for this occurrence of the problem. type: integer format: int32 example: 503 minimum: 100 exclusiveMaximum: 600 title: description: A short, summary of the problem type. Written in english and readable example: Service Unavailable maxLength: 64 pattern: ^[ -~]{0,64}$ type: string detail: description: A human readable explanation of the problem. example: Request took too long to complete. maxLength: 4096 pattern: ^.{0,4096}$ type: string traceId: description: Internal support identifier associated to error example: 123e4567-e89b-12d3-a456-426614174000 type: string timestamp: description: date and time referred to UTC example: '2022-07-27T12:22:33.444Z' type: string format: date-time errors: type: array minItems: 1 items: $ref: '#/components/schemas/ProblemError' required: - status - errors ProblemError: properties: code: description: Internal code of the error, in human-readable format example: PN_PARAMETER_TOO_LONG | PN_PARAMETER_TOO_SHORT | PN_DUPLICATE_ENTRY | etc... type: string element: description: Parameter or request body field name for validation error example: body.order.item[2].quantity type: string detail: description: A human readable explanation specific to this occurrence of the problem. example: Parameter not valid maxLength: 1024 type: string required: - code RequestStatus: description: Response to cancellation async call type: object properties: status: description: "Cancellation request status:\n - OK\n" type: string details: type: array maxItems: 9999 items: $ref: '#/components/schemas/StatusDetail' required: - status securitySchemes: ApiKeyAuth: type: apiKey in: header name: x-api-key x-refined-from: - send-b2b-pa-bundle.yaml - pagopa-send-b2b-pa-openapi.yml