Destination next rates API

create new entry

POST /api/rest/admin/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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjcxLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzQwODUzMDI4fQ.B2Cy-x_V8h_EE-QVaghF2tRT35mYjG9D8_bxCbRfIlc
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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":"2025-03-01T19:07:08.247Z","applied":false},"relationships":{"destination":{"data":{"type":"destinations","id":4201533}}}}}

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/"6a39ff70fe19b75f84f5bde06e08ecec"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 2cdfa656-5239-4a2d-84b8-1b15adc7552d
X-Runtime: 0.019006
Content-Length: 540

Status

201 Created

Body

{
  "data": {
    "id": "4",
    "type": "destination-next-rates",
    "links": {
      "self": "http://example.org/api/rest/admin/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": "2025-03-01T19:07:08.247Z",
      "applied": false,
      "external-id": null
    },
    "relationships": {
      "destination": {
        "links": {
          "self": "http://example.org/api/rest/admin/destination-next-rates/4/relationships/destination",
          "related": "http://example.org/api/rest/admin/destination-next-rates/4/destination"
        }
      }
    }
  }
}