Skip to main content
POST
/
product
/
{id}
/
deliveries
/
validate
Validate Product for Delivery (Dry Run)
curl --request POST \
  --url https://api.royalti.io/product/{id}/deliveries/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "providers": [
    "fuga-csv-ftp"
  ]
}'
{
  "status": "success",
  "message": "Validation completed",
  "data": {
    "valid": true,
    "validations": [
      {
        "providerId": "<string>",
        "isValid": true,
        "errors": [
          "<string>"
        ],
        "warnings": [
          "<string>"
        ]
      }
    ]
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/product//deliveries/validate Description: Validate that a product can be delivered to FUGA without actually performing the delivery. This performs a “dry run” that checks:
  • Product has required metadata
  • Assets exist and are accessible
  • Audio files can be converted to required format
  • Images meet size/format requirements
Method: POST Parameters:
ParameterTypeDescription
idstringProduct ID (path parameter)
providersarrayArray of provider IDs to validate against

Code Examples

const response = await fetch('https://api.royalti.io/product/example-id/deliveries/validate', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "providers": [
      "fuga-csv-ftp"
    ]
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Product ID

Body

application/json
providers
string[]
required

Array of provider IDs

Example:
["fuga-csv-ftp"]

Response

Validation completed

status
string
Example:

"success"

message
string
Example:

"Validation completed"

data
object