🚚 Deliveries
Album delivery records to digital platforms (DSPs)
Resource Overview
Deliveries represent successful or failed album deliveries to specific platforms (DSPs). They are the final result of the distribution process and provide complete traceability of each delivery status. This is a read-only resource - deliveries are created and updated automatically by the system.
/deliveries
deliveries
Read-Only
Owner-restricted
Schema
Read-Only Resource
All fields are read-only. Deliveries are generated automatically by the system during the distribution process.
System-Generated Attributes
Field | Type | Description | Read-Only |
---|---|---|---|
id | integer | Unique delivery identifier | ✓ |
date | datetime | Delivery date and time | ✓ |
type | string | Delivery type (delivery, update, redelivery, takedown) | ✓ |
status | string | Delivery status (pending, sent, error) | ✓ |
errors | string | Error details if delivery failed | ✓ |
created-at | datetime | Record creation date | ✓ |
updated-at | datetime | Last update date | ✓ |
Relationships
Relationship | Type | Description | Required |
---|---|---|---|
dsp | BelongsTo | Target digital platform | Required |
album | BelongsTo | Album that was delivered | Required |
API Endpoints
/deliveries
Get list of deliveries for the authenticated user
Query Parameters
- •
filter[album]=1
- Filter by specific album - •
filter[dsp]=2
- Filter by specific DSP - •
filter[status]=sent
- Filter by status - •
filter[type]=delivery
- Filter by type - •
include=album,dsp
- Include relationships - •
page[number]=1&page[size]=20
- Pagination - •
sort=-date
- Sort by date (most recent first)
- •
filter[album]=1
- Filtrar por álbum específico - •
filter[dsp]=2
- Filtrar por DSP específico - •
filter[status]=success
- Filtrar por estado - •
filter[type]=delivery
- Filtrar por tipo - •
include=album,dsp
- Incluir relaciones - •
page[number]=1&page[size]=20
- Paginación - •
sort=-date
- Ordenar por fecha (más recientes primero)
Success Response
{
"data": [
{
"type": "deliveries",
"id": "1",
"attributes": {
"date": "2024-08-21",
"type": "delivery",
"status": "sent",
"errors": null,
"created-at": "2024-08-21T08:30:00Z",
"updated-at": "2024-08-21T08:45:00Z"
},
"relationships": {
"dsp": {
"data": {
"type": "dsps",
"id": "1"
}
},
"album": {
"data": {
"type": "albums",
"id": "1"
}
}
}
},
{
"type": "deliveries",
"id": "2",
"attributes": {
"date": "2024-08-21",
"type": "delivery",
"status": "error",
"errors": "Invalid metadata: Missing required field 'ISRC'",
"created-at": "2024-08-21T09:15:00Z",
"updated-at": "2024-08-21T09:30:00Z"
},
"relationships": {
"dsp": {
"data": {
"type": "dsps",
"id": "2"
}
},
"album": {
"data": {
"type": "albums",
"id": "1"
}
}
}
}
],
"meta": {
"page": {
"currentPage": 1,
"from": 1,
"lastPage": 1,
"perPage": 20,
"to": 2,
"total": 2
}
}
}