curl --request POST \
--url https://api.royalti.io/ddex/tenant-providers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providerId": "123e4567-e89b-12d3-a456-426614174000",
"deliveryMethod": "SFTP",
"credentials": {
"host": "ftp.provider.com",
"port": 22,
"username": "myuser",
"password": "mypassword",
"remotePath": "/incoming/ddex",
"secure": true
},
"priority": 50
}
'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"LabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"deliveryMethod": "SFTP",
"priority": 123,
"customSettings": {},
"rateLimits": {},
"acknowledgementSettings": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Create a new DDEX provider configuration for the current tenant.
curl --request POST \
--url https://api.royalti.io/ddex/tenant-providers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providerId": "123e4567-e89b-12d3-a456-426614174000",
"deliveryMethod": "SFTP",
"credentials": {
"host": "ftp.provider.com",
"port": 22,
"username": "myuser",
"password": "mypassword",
"remotePath": "/incoming/ddex",
"secure": true
},
"priority": 50
}
'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"LabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isEnabled": true,
"deliveryMethod": "SFTP",
"priority": 123,
"customSettings": {},
"rateLimits": {},
"acknowledgementSettings": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}credentials object structure depends on the deliveryMethod:
SFTPCredentials schema (host, port, username, password, remotePath)SFTPCredentials schema with port 21HTTPCredentials schema (apiUrl, authType, bearerToken/apiKey)AS2Credentials schema (endpoint, as2From, as2To)WebDAVCredentials schema (url, username, password)const response = await fetch('https://api.royalti.io/ddex/tenant-providers', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"providerId": "sample-providerId",
"labelId": "sample-labelId",
"deliveryMethod": "sample-deliveryMethod",
"customSettings": {},
"priority": 1,
"rateLimits": {},
"acknowledgementSettings": {}
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
ID of the DDEX provider from the provider catalog
Delivery protocol to use
SFTP, FTP, HTTP, HTTPS, AS2, WebDAV Credentials for SFTP/FTP delivery method
Show child attributes
Optional label ID for label-specific configuration
Provider-specific custom settings
Priority for this provider (higher = preferred)
Rate limiting configuration
MDN/acknowledgement settings