Skip to content
Developers

Modify policy

Applies a pre-approved correction scenario. The sandbox exposes a fixed scenario list rather than free-form endorsements, so no unsafe change can be attempted.

POST/api/sandbox/policy/{policy_ref}/modify

Applies a pre-approved correction scenario. The sandbox exposes a fixed scenario list rather than free-form endorsements, so no unsafe change can be attempted.

Request fields for Modify policy
FieldTypeRequiredNotes
scenarioenumYesextend_end_date, shorten_end_date, correct_destination, correct_partner_reference.
new_end_datestring (YYYY-MM-DD)NoRequired for the date scenarios.
destination_countrystringNoRequired for correct_destination.
partner_referencestringNoRequired for correct_partner_reference.

Request

POST /api/sandbox/policy/pol_sbx_9f42kq/modify
Content-Type: application/json

{ "scenario": "extend_end_date", "new_end_date": "2026-11-18" }

Response

{
  "ok": true,
  "mode": "uat_gateway",
  "request_id": "req_2ce7bd40",
  "data": {
    "policy_ref": "pol_sbx_9f42kq",
    "status": "endorsed",
    "trip": { "end_date": "2026-11-18" }
  },
  "meta": { "sandbox": true }
}
  • Traveller identity corrections are not available in the public sandbox because no personal data exists to correct.