Skip to main content
POST
/
v2
/
car
/
policies
Issue policy (V2)
curl --request POST \
  --url https://sandbox.yasmina.ai/api/v2/car/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form [email protected] \
  --form 'vin=<string>' \
  --form 'car_sequence_number=<string>' \
  --form 'current_car_owner=<string>' \
  --form 'new_owner_id=<string>' \
  --form istimarah='@example-file'
{
  "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>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.yasmina.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
email
string<email>
required

Email address (must be @syarah.com domain)

vin
string
required

Vehicle Identification Number (17 characters, must be unique)

car_sequence_number
string
required

Car sequence number (8-9 digits, must be unique)

current_car_owner
string
required

The nationality ID of the current owner (10 digits)

new_owner_id
string
required

The Nationality ID of the new owner (10 digits)

istimarah
file
required

Vehicle registration document (PDF, JPEG, JPG, or PNG, max 10MB)

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