Facility registration request

Example

POST https://idissuer.pl/api/v3/registries/facilities/requests/registration
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}} 
{
    "economicOperatorId": "DEV10000005",
    "confirmationCode": "f01fbefb",
    "address": {
        "street": "street",
        "houseNumber": "1",
        "city": "city",
        "postalCode": "12-234",
        "countryCode": "PL",
        "additionalInfo": ""
    },
    "coordinates": {
        "longitude": 0,
        "latitude": 0
    },
    "facilityType": "ProductionAndWarehouse",
    "otherFacilityType": "",
    "exciseNumber": "",
    "foreignIssuerIds": null,
    "previousFacilityId": "",
    "registrantType": "Self",
    "thirdPartyId": "",
    "extensibility": "",
    "hasExciseStatus": true
}
                

Response

HTTP/1.1 201 Created
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "facilityRegisterRequestId": 11
}
                

Example 2

POST https://idissuer.pl/api/v3/registries/facilities/requests/registration
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}} 
{
    "economicOperatorId": "{{currentEOId}}",
    "confirmationCode": "{{currentEOCode}}",
    "address": {
        "street": "12 street",
        "houseNumber": "456",
        "city": "City",
        "postalCode": "123456",
        "countryCode": "PL",
        "additionalInfo": ""
    },
    "coordinates": {
        "longitude": 52.217322,
        "latitude": -20.999123
    },
    "facilityType": "RetailSales",
    "otherFacilityType": "",
    "exciseNumber": "PL12345678901",
    "foreignIssuerIds": [
        "foreignIssuerIds1",
        "foreignIssuerIds2"
    ],
    "previousFacilityId": "previousFacilityId",
    "registrantType": "ThirdParty ",
    "thirdPartyId": "thirdPartyId",
    "extensibility": "extensibility"
    "hasExciseStatus": true
}
                            

Getting details of facility registration request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/registration/15
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
            

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "requestId": 15,
    "economicOperatorId": "DEV1000000a",
    "confirmationCode": "5552033d",
    "facilityId": "DEV1000000b",
    "status": "Accepted",
    "creationDate": "2024-01-15T14:58:23.3309393+00:00",
    "submittingUser": "user@test.pl",
    "address": {
        "hasSingleValueOnly": false,
        "singleValue": "street 1 city 12-234",
        "street": "street",
        "houseNumber": "1",
        "city": "city",
        "postalCode": "12-234",
        "countryCode": "PL",
        "additionalInfo": ""
    },
    "coordinates": {
        "longitude": 0.000000,
        "latitude": 0.000000
    },
    "facilityType": "ProductionAndWarehouse",
    "otherFacilityType": "",
    "exciseNumber": null,
    "foreignIssuerIds": [],
    "registrant": {
        "type": "Self",
        "thirdPartyId": null
    },
    "extensibility": null,
    "previousFacilityId": null
    "hasExciseStatus": true
}
   

Searching details of facility registration request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/registration?status=Accepted
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
               

Search parameters

facilityId
status
submittingUserEmail
registrationDateFrom
registrationDateTo
pageNumber
pageSize - amount of items per page (max 100)

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "items": [
        {
            "requestId": 15,
            "economicOperatorId": "DEV1000000a",
            "confirmationCode": "5552033d",
            "facilityId": "DEV1000000b",
            "status": "Accepted",
            "creationDate": "2024-01-15T14:58:23.3309393+00:00",
            "submittingUser": "user@test.pl",
            "address": {
                "hasSingleValueOnly": false,
                "singleValue": "street 1 city 12-234",
                "street": "street",
                "houseNumber": "1",
                "city": "city",
                "postalCode": "12-234",
                "countryCode": "PL",
                "additionalInfo": ""
            },
            "coordinates": {
                "longitude": 0.000000,
                "latitude": 0.000000
            },
            "facilityType": "ProductionAndWarehouse",
            "otherFacilityType": "",
            "exciseNumber": null,
            "foreignIssuerIds": [],
            "registrant": {
                "type": "Self",
                "thirdPartyId": null
            },
            "extensibility": null,
            "previousFacilityId": null,
            "hasExciseStatus": true,
            "pageSize": 25,
            "pageNumber": 1
        }
    ],
    "totalItemsCount": 1,
    "pagesCount": 1,
    "pageNumber": 1,
    "pageSize": 25
}
    

Getting details of facility

Example

GET https://idissuer.pl/api/v3/registries/facilities/DEV1000000h
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
                        

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "economicOperatorId": "DEV1000000a",
    "confirmationCode": "5552033d",
    "facilityId": "DEV1000000h",
    "address": {
        "hasSingleValueOnly": false,
        "singleValue": "street 1 city 12-234",
        "street": "street",
        "houseNumber": "1",
        "city": "city",
        "postalCode": "12-234",
        "countryCode": "PL",
        "additionalInfo": ""
    },
    "coordinates": {
        "longitude": 0.000000,
        "latitude": 0.000000
    },
    "facilityType": "ProductionAndWarehouse",
    "otherFacilityType": "",
    "status": "Active",
    "exciseNumber": null,
    "foreignIssuerIds": [],
    "registrant": {
        "type": "Self",
        "thirdPartyId": null
    },
    "createDate": "2024-01-16T09:53:47.7550925+00:00",
    "extensibility": null,
    "previousFacilityId": null,
    "hasExciseStatus": true,
} 
 

Searching details of facility

Example

GET https://idissuer.pl/api/v3/registries/facilities?status=Active
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
                        

Search parameters

economicOperatorId
facilityType
address
status
registrationDateFrom
registrationDateTo
pageNumber
pageSize - amount of items per page (max 100)

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "items": [
        {
            "economicOperatorId": "DEV1000000a",
            "facilityId": "DEV1000000h",
            "address": {
                "hasSingleValueOnly": false,
                "singleValue": "street 1 city 12-234",
                "street": "street",
                "houseNumber": "1",
                "city": "city",
                "postalCode": "12-234",
                "countryCode": "PL",
                "additionalInfo": ""
            },
            "coordinates": {
                "longitude": 0.000000,
                "latitude": 0.000000
            },
            "facilityType": "ProductionAndWarehouse",
            "otherFacilityType": "",
            "status": "Active",
            "exciseNumber": null,
            "foreignIssuerIds": [],
            "registrant": {
                "type": "Self",
                "thirdPartyId": null
            },
            "createDate": "2024-01-16T09:53:47.7550925+00:00",
            "extensibility": null,
            "previousFacilityId": null,
            "hasExciseStatus": true
        }
    ],
    "totalItemsCount": 1,
    "pagesCount": 1,
    "pageNumber": 1,
    "pageSize": 25
}
            

Facility edit request

Example

POST https://idissuer.pl/api/v3/registries/facilities/requests/edit
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}} 
{
  "economicOperatorId": "DEV10000005",
  "confirmationCode": "f01fbefb",
  "name": {
    "primary": "Changed name",
    "alternative": "Alternative name"
  },
  "address": {
    "street": "Street",
    "houseNumber": "1",
    "city": "City",
    "postalCode": "123456",
    "countryCode": "PL",
    "additionalInfo": ""
  },
  "email": "test@test.pl",
  "taxData": {
    "vatUE": "",
    "nip": "12345678901",
    "exciseNumber": ""
  },
  "foreignIssuerIds": null,
  "registrantType": "Self",
  "thirdPartyId": "",
  "optionalId": "",
  "extensibility": "",
  "hasExciseStatus": true,
}
                    

Response

HTTP/1.1 201 Created
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "facilityEditRequestId": 23
}
                    

Getting details of facility edit request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/edit/23
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
                

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "requestId": 23,
    "economicOperatorId": "DEV1000000a",
    "confirmationCode": "5552033d",
    "facilityId": "DEV1000000h",
    "cancellationReason": null,
    "status": "Accepted",
    "creationDate": "2024-01-16T11:26:48.4719976+00:00",
    "submittingUser": "user@test.pl",
    "address": {
        "hasSingleValueOnly": false,
        "singleValue": "street 1 city 12-234",
        "street": "street",
        "houseNumber": "1",
        "city": "city",
        "postalCode": "12-234",
        "countryCode": "PL",
        "additionalInfo": ""
    },
    "coordinates": {
        "longitude": 12.000000,
        "latitude": 3.000000
    },
    "facilityType": "ProductionAndWarehouse",
    "otherFacilityType": "",
    "exciseNumber": null,
    "foreignIssuerIds": [],
    "registrant": {
        "type": "Self",
        "thirdPartyId": null
    },
    "extensibility": null,
    "previousFacilityId": null,
    "hasExciseStatus": true,
}
        

Searching details of facility edit request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/edit?status=Accepted
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
                    

Search parameters

facilityId
requestState
submittingUserEmail
registrationDateFrom
registrationDateTo
pageNumber
pageSize - amount of items per page (max 100)

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "items": [
        {
            "requestId": 24,
            "economicOperatorId": "DEV1000000a",
            "confirmationCode": "5552033d",
            "facilityId": "DEV1000000h",
            "cancellationReason": null,
            "address": {
                "hasSingleValueOnly": false,
                "singleValue": "street 1 city 12-234",
                "street": "street",
                "houseNumber": "1",
                "city": "city",
                "postalCode": "12-234",
                "countryCode": "PL",
                "additionalInfo": ""
            },
            "coordinates": {
                "longitude": 12.000000,
                "latitude": 3.000000
            },
            "facilityType": "ProductionAndWarehouse",
            "otherFacilityType": "",
            "status": "Accepted",
            "exciseNumber": null,
            "foreignIssuerIds": [],
            "registrant": {
                "type": "Self",
                "thirdPartyId": null
            },
            "creationDate": "2024-01-16T11:26:48.4719976+00:00",
            "submittingUser": "user@test.pl",
            "extensibility": null,
            "previousFacilityId": null,
            "hasExciseStatus": true,
        }
    ],
    "totalItemsCount": 1,
    "pagesCount": 1,
    "pageNumber": 1,
    "pageSize": 25
}
        

Facility deactivation request

Example

POST https://idissuer.pl/api/v3/registries/facilities/requests/deregistration
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}} 
{
    "economicOperatorId": "DEV1000000a",
    "confirmationCode": "5552033d",
    "facilityId": "DEV1000000h",
    "registrantType": "Self",
    "thirdPartyId": "",
    "extensibility": ""
}
                        

Response

HTTP/1.1 201 Created
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "facilityDeregisterRequestId": 26
}
                        

Getting details of facility deactivation request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/deregistration/26
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
                    

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "requestId": 26,
    "economicOperatorId": "DEV1000000a",
    "confirmationCode": "5552033d",
    "facilityId": "DEV1000000h",
    "creationDate": "2024-01-16T11:57:33.6256447+00:00",
    "cancellationReason": null,
    "status": "Accepted",
    "registrant": {
        "type": "Self",
        "thirdPartyId": null
    },
    "submittingUser": "user@test.pl",
    "extensibility": null
}
      

Searching details of facility deactivation request

Example

GET https://idissuer.pl/api/v3/registries/facilities/requests/deregistration?facilityId=DEV1000000h
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}     
                        

Search parameters

facilityId
requestState
submittingUserEmail
registrationDateFrom
registrationDateTo
pageNumber
pageSize - amount of items per page (max 100)

Response

HTTP/1.1 200 OK
Connection: close
Date: Tue, 16 Jan 2024 12:08:59 GMT
Content-Type: application/json; charset=utf-8 
{
    "items": [
        {
            "requestId": 26,
            "economicOperatorId": "DEV1000000a",
            "confirmationCode": "5552033d",
            "facilityId": "DEV1000000h",
            "creationDate": "2024-01-16T11:57:33.6256447+00:00",
            "cancellationReason": null,
            "status": "Accepted",
            "registrant": {
                "type": "Self",
                "thirdPartyId": null
            },
            "submittingUser": "user@test.pl",
            "extensibility": null
        }
    ],
    "totalItemsCount": 1,
    "pagesCount": 1,
    "pageNumber": 1,
    "pageSize": 25
}