POST
/
policies
Issue policy
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/car/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "vin": "<string>",
  "car_sequence_number": "<string>",
  "current_car_owner": "<string>",
  "new_owner_id": "<string>"
}'
{
  "id": 123,
  "meta_data": {},
  "start_date": "<string>",
  "provider_policy_id": 123,
  "provider_policy": "<string>",
  "order_status": 123,
  "approval_status": 123,
  "end_date": "<string>",
  "is_claimed": true,
  "created_at": "<string>",
  "updated_at": "<string>",
  "client_id": "<string>",
  "canceled_at": "<string>",
  "invoice": "<string>",
  "cancellation_document": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
vin
string
required
car_sequence_number
string
required
current_car_owner
string
required

The nationality ID of the current owner

new_owner_id
string
required

The Nationality ID of the new owner

extra_fields
object

Optional free-form object with additional fields. Total JSON-encoded size must not exceed 255 characters.

Example:
{
"some_key": "some value",
"another_key": 123
}

Response

Created

id
integer
meta_data
object
start_date
string
provider_policy_id
integer
provider_policy
string
order_status
integer
approval_status
integer
end_date
string
is_claimed
boolean
created_at
string
updated_at
string
client_id
string
canceled_at
string | null
invoice
string
cancellation_document
string