Purchase Tuition Insurance
POSThttps://api.verticalinsure.com/v1/purchase/tuition
Purchase Tuition Insurance
Request
Responses
- 201
- 400
- 402
New policy issued
Bad request was sent, most likely from a missing parameter.
Failed payment
Authorization: http
name: basic authtype: httpdescription: `Authorization` header with value of `Basic <auth string>` where the `auth string` value is a base64 encoded string of `<client id>:<client secret>` scheme: basic
- curl
- python
- nodejs
- ruby
- php
- CURL
curl -L 'https://api.verticalinsure.com/v1/purchase/tuition' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customer": {
"email_address": "user@example.com",
"state": "MN",
"country": "US",
"postal_code": "string",
"first_name": "string",
"middle_name": "string",
"last_name": "string",
"phone_number": "string",
"street": "string",
"city": "string"
},
"metadata": {},
"quote_id": "string",
"payment_method": {
"card": {
"name": "string",
"number": "string",
"verification": "string",
"month": "string",
"year": "string",
"address_postal_code": "string"
},
"bank_account": {
"currency": "string",
"account_owner_name": "string",
"routing_number": "string",
"account_number": "string",
"account_type": "string",
"account_owner_type": "string",
"country": "string"
},
"token": "string",
"save_for_future_use": true
},
"subscription": true
}'
ResponseClear