Execute in a console (replacing the data in blue with the data received in the email)

Login

curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d 'grant_type=password&username=USUARIO&password=PASSWORD&appId=APPID' 'https://test.ivcert.net/ivcert/token'

Reply

{"access_token": "cdEt0UJgabIVUU7qQP5Evq7PJcpBT5i98/SmO2jRp7a8mWg1AtNRY/Lf3TNAj27AY1g4gTdvq18/RB3aTfW0919GUWgKmscIO+w4rtsCvd0=",      "token_type": "bearer","expires_in": 7199,"refresh_token": "d80e126c-eb59-4d6c-869a-c6f36e623a4c","idUser": "1","userName": "username","name": "name","companyName": "companyName","companyId": "1",   "rol": "[{\"idArea\":17,\"idRole\":1},{\"idArea\":33,\"idRole\":1},{\"idArea\":120,\"idRole\":1},{\"idArea\":387,\"idRole\":1},{\"idArea\":547,\"idRole\":1}]","tokenIvSign": "","idPerfilUser": "3","qualifiedUser": "0",        "OrgaLogo": "","OrgaColor": "rgb(95,83,202)","OrgaCIF": "B98333362","OrgaType": "",".issued": "Fri, 07 Aug 2020 08:40:36 GMT",".expires": "Fri, 07 Aug 2020 10:40:36 GMT"}  

We will need the token returned in the previous call (in blue).

Creation of the circuit

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer TOKEN' -d '{ \ 

        "circuitTitle": "Test", \
        "circuitType": "ACEPDOC", \
        "document": [ \

              { \
                       "fileNameWithExtension": "nameFile.pdf", \

                       "content": "B64DOC", \

                       "title": "Hola mundo", \

                       "type": 1 \

               } \

        ],      \

        "circuitReceivers": [ \

               { \

                       "dni": "", \

                       "email": "emailuser%40domain.com", \

                       "name": "Name user",                 \

                       "operationType": "ACEP",             \

                       "typeNotification": 1, \

                       "externalId": "ExternalIDTEST", \

               }, \

               "externalAppCircuitId":"ExternalIDTEST"

       ] \

}' 'https://test.ivcert.net/ivcert/api/Circuit'

Retrieve URL for inclusion in FRAME

curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer TOKEN' 'https://demo.ivcert.net/ivcert/api/Operation/PublicURLOperation?externalIdOperation=ExternalIDTEST&externalIdCircuit=ExternalIDTEST'

Reply

{
"traceId": "A7IMLNPS2GEHPQTVGM",
"data": "https://test.ivcert.net/finishOperation/58a0a770-0505-f33a-9ccc-1c3f20",
"Code": "200",
"Description": null
}