create new entry
POST /api/rest/admin/routing/destination-next-rates
Parameters
Name |
Description |
data[type]
|
Resource type (destinations-next-rates)
|
data[attributes][next-rate]
|
Next rate
|
data[attributes][initial-rate]
|
Initial rate
|
data[attributes][initial-interval]
|
Initial interval
|
data[attributes][next-interval]
|
Next interval
|
data[attributes][connect-fee]
|
Connect fee
|
data[attributes][apply-time]
|
Apply time
|
data[attributes][applied]
|
Applied
|
data[attributes][external-id]
|
External id
|
data[relationships][destination]
|
Destination
|
Request
Headers
Route
POST /api/rest/admin/routing/destination-next-rates
Body
{"data":{"type":"destination-next-rates","attributes":{"next-rate":0.0,"initial-rate":0.0,"initial-interval":60,"next-interval":60,"connect-fee":0,"apply-time":"2024-11-14T10:55:59.420Z","applied":false},"relationships":{"destination":{"data":{"type":"destinations","id":4201533}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "destination-next-rates",
"links": {
"self": "http://example.org/api/rest/admin/routing/destination-next-rates/4"
},
"attributes": {
"next-rate": "0.0",
"initial-rate": "0.0",
"initial-interval": 60,
"next-interval": 60,
"connect-fee": "0.0",
"apply-time": "2024-11-14T10:55:59.420Z",
"applied": false,
"external-id": null
},
"relationships": {
"destination": {
"links": {
"self": "http://example.org/api/rest/admin/routing/destination-next-rates/4/relationships/destination",
"related": "http://example.org/api/rest/admin/routing/destination-next-rates/4/destination"
}
}
}
}
}