Destination next rates API

update values

PUT /api/rest/admin/destination-next-rates/:id

Parameters

Name Description
data[type] Resource type (destinations-next-rates)
data[id] Destination next rate ID
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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjc2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYzfQ.XGJHIHaD965cgb7Rw6GP3ZqBacogXaA0K2F1XcbKifA
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/destination-next-rates/5

Body

{"data":{"type":"destination-next-rates","id":5,"attributes":{"initial-rate":22}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"c927dddff47d04759dcafd19588f0148"
cache-control: max-age=0, private, must-revalidate
x-request-id: 68bdf1bd-0724-45e2-bb7e-b5cbb26ab4dd
x-runtime: 0.012278
content-length: 540

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "destination-next-rates",
    "links": {
      "self": "http://example.org/api/rest/admin/destination-next-rates/5"
    },
    "attributes": {
      "next-rate": "0.0",
      "initial-rate": "22.0",
      "initial-interval": 5,
      "next-interval": 10,
      "connect-fee": "0.0",
      "apply-time": "2026-01-02T13:46:03.725Z",
      "applied": false,
      "external-id": null
    },
    "relationships": {
      "destination": {
        "links": {
          "self": "http://example.org/api/rest/admin/destination-next-rates/5/relationships/destination",
          "related": "http://example.org/api/rest/admin/destination-next-rates/5/destination"
        }
      }
    }
  }
}