Destination next rates API

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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTksInN1YiI6MTU3fQ.fpDagLjJKvZSi_Db_LQPcH7Ajzniqi5JzuV9UsVOHug
Host: example.org
Cookie: 

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

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"8e7d9893b5531e4e01c1d2ac4f35c828"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 86640bfd-0201-45a0-915c-64ec2067c08f
X-Runtime: 0.015981
Content-Length: 564

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"
        }
      }
    }
  }
}