-
Notifications
You must be signed in to change notification settings - Fork 1
/
do_service_put.sh.sample
executable file
·36 lines (32 loc) · 1.24 KB
/
do_service_put.sh.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
export PARTICIPANT_ID='urn:oasis:names:tc:ebcore:partyid-type:iso6523:0151::22341388307'
export SERVICE_SCHEME='dbc'
export SERVICE_VALUE='invoice-2'
export SERVICE_ID=${SERVICE_SCHEME}'::'${SERVICE_VALUE}
curl -v -X PUT --header 'Content-Type: application/json' \
--header 'Accept: application/json; indent=4' \
--header "Authorization: ${CB_AUTH}" -d '{
"DocumentIdentifier":{
"scheme":"'${SERVICE_SCHEME}'",
"value":"'${SERVICE_VALUE}'"
},
"ProcessList":[
{
"ProcessIdentifier":{
"scheme": "'${SERVICE_SCHEME}'",
"value": "'${SERVICE_VALUE}'"
},
"ServiceEndpointList":[
{
"transportProfile":"dbc-as4",
"EndpointURI":"https://accesspoint.com/as4service/simplified/invoice-2-type/",
"RequireBusinessLevelSignature":"false",
"MinimumAuthenticationLevel":"2",
"ServiceDescription":"as4 message service for invoice 2",
"TechnicalInformationUrl":"http://www.acesspoint.com/as4info"
}
]
}
]
}' "https://dcp.testpoint.io/${PARTICIPANT_ID}/service/${SERVICE_ID}"
echo