LogoLogo
v1.3
v1.3
  • 🏠Per iniziare
  • 🕗Changelog
  • 🔢Setup iniziale
  • Funzionalità
    • 📦Creare un servizio
      • Dati obbligatori
        • Attributi
        • Service Metadata
      • Controllo di qualità
      • Come visualizzare un servizio in test
    • ✉️Inviare un messaggio
      • Controllo pre-invio
      • Invio messaggio
      • Controllo post-invio
      • Invio messaggi di test
  • 📐API
    • OpenAPI
    • API Messaggi
      • Get a User Profile using POST
      • Submit a Message passing the user fiscal_code in the request body
      • Get Message
      • Get Subscriptions Feed
      • ⚠️Get a User Profile
      • ⚠️Submit a Message passing the user fiscal_code as path parameter
    • API Servizi
      • Create Service
      • Get User Services
      • Get Service
      • Update Service
      • Regenerate Service Key
      • Upload service logo
      • Upload organization logo
    • Errori comuni
    • Specifiche API
  • 🔑Abilitazioni
    • Test con codici fiscali reali
    • Test invio avvisi pagoPA
    • Invio messaggi massivo
    • Subscription feed
    • Gestione dei servizi
  • Risorse Utili
    • ❓Domande frequenti
    • 📘Glossario
Powered by GitBook
On this page
  1. API
  2. API Servizi

Create Service

PreviousAPI ServiziNextGet User Services

Last updated 2 years ago

Descrizione

API che permette ad un utente la creazione di un servizio.

Suggerimento: crea un servizio principale non visibile in app e usa l’api-key di questo servizio per creare gli altri servizi.

Per utilizzare questa API è necessario richiedere un'.

Importante: is_visible deve sempre essere impostato a false per i servizi di test.

Esempi

Esempio con informazioni minime per la creazione di un servizio di test:

### REQUEST
curl --location --request POST 'https://api.io.pagopa.it/api/v1/services' \
--header 'Ocp-Apim-Subscription-Key: __YOUR_API_KEY__' \
--header 'Content-Type: application/json' \
--data-raw '{
"service_name": "Test",
"department_name": "IT",
"organization_name": "Test",
"organization_fiscal_code": "00000000000",
"authorized_cidrs": [],
"is_visible": false,
"service_metadata": {
"scope": "LOCAL"
}
}'
### RESPONSE
{
"authorized_cidrs": [],
"authorized_recipients": ["AAAAAA00A00A000A"],
"department_name": "IT",
"id": "01EYATQMGR0SQT93001Z3ACZVR-0000000000000000",
"is_visible": false,
"max_allowed_payment_amount": 0,
"organization_fiscal_code": "00000000000",
"organization_name": "Test",
"require_secure_channels": false,
"service_id": "01EYATQMGR0SQT93001Z3ACZVR",
"service_metadata": { "scope": "LOCAL" },
"service_name": "Test",
"version": 0,
"primary_key": "__YOUR_PRIMARY_API_KEY__",
"secondary_key": "__YOUR_SECONDARY_API_KEY__"
}

Risorse utili

📐
https://developer.io.italia.it/openapi.html#operation/createService
abilitazione specifica
  • Descrizione
  • Esempi
  • Risorse utili