Skip to main content
POST
/
product
/
{id}
/
deliveries
/
validate
Validate Product Delivery
curl --request POST \
  --url https://api.royalti.io/product/{id}/deliveries/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "providers": [
    "spotify-ddex-sftp"
  ]
}
'
{
  "status": "success",
  "message": "Validation completed",
  "data": {
    "productId": "prod-123",
    "upc": "123456789012",
    "validations": [
      {
        "provider": "spotify-ddex-sftp",
        "isValid": false,
        "errors": [
          "Missing required field: releaseDate"
        ],
        "suggestions": {
          "releaseDate": "2024-09-01"
        }
      }
    ]
  }
}
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
required

Single provider ID or array of provider IDs

Response

Validation completed

status
string
Example:

"success"

message
string
Example:

"Validation completed"

data
object