Questa API permette di creare un servizio.
Ecco un esempio con le informazioni minime per la creazione di un servizio di test:
### REQUEST
curl --location --request POST 'https://api.io.pagopa.it/api/v1/manage/services' \
--header 'Ocp-Apim-Subscription-Key: __YOUR_API_KEY__' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"description": "string",
"organization": {
"name": "string",
"fiscal_code": "12345678901",
"department_name": "string"
},
"require_secure_channel": false,
"authorized_cidrs": [
"85.338.5.14"
],
"max_allowed_payment_amount": 0,
"metadata": {
"web_url": "string",
"app_ios": "string",
"app_android": "string",
"tos_url": "string",
"privacy_url": "string",
"address": "string",
"phone": "string",
"email": "string",
"pec": "string",
"cta": "string",
"token_name": "string",
"support_url": "string",
"scope": "LOCAL"
}
}'
### RESPONSE
{
"id": "string",
"status": {
"value": "draft",
"reason": "string"
},
"version": 0,
"last_update": "2018-10-13T00:00:00.000Z",
"name": "string",
"description": "string",
"organization": {
"name": "string",
"fiscal_code": "12345678901",
"department_name": "string"
},
"require_secure_channel": false,
"authorized_recipients": [],
"authorized_cidrs": [
"85.338.5.14"
],
"metadata": {
"web_url": "string",
"app_ios": "string",
"app_android": "string",
"tos_url": "string",
"privacy_url": "string",
"address": "string",
"phone": "string",
"email": "string",
"pec": "string",
"cta": "string",
"token_name": "string",
"support_url": "string",
"scope": "LOCAL"
}
}