Create Dynamic Quotation
POST {{host_gateway}}/api/partner/quote/dynamic
This endpoint does not require a productid but a programid. The product id is inferred based on additional constraints provided:
- hostcountrystate - 2-letter State code
- products (Optional)- Object containing either of the following keys:
- ids - an array of product id's
- uuids - an array of product uuid's
Request will only succeed if the provided constraints result in exactly 1 active product.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: Created
{"data":{"_id":"6391fefbeb0b304375052e72","id":"6391fefbeb0b304375052e72","document_version":1,"quote_number":"1-DEC82073-1007","email":null,"affiliate_id":1,"product_id":"1007","quoted_price":22.75,"taxes":{"stamp_duty":null,"witholding":null},"deductibles":{"excess_fee":null},"currency_id":"USD","host_country":"US","host_country_state":"AL","trip_length":13,"start_date":"2022-12-12","end_date":"2022-12-24","deposit_date":"2022-12-01","created_at":"2022-12-08 03:12:12","updated_at":"2022-12-08 03:12:12","deleted_at":null,"details":[{"package_id":76,"package_alias":"base_package","amount":22.75,"type":"Base Package","value":null,"detail":null}],"applicants":[{"type":"applicant","email":null,"is_main":true,"age":24,"dob":"1998-01-01T00:00:00.000000Z","trip_cost":250}],"destinations":[{"country":"DE","risk_index":1}],"reference":{"employee_id":null,"external":null}}}