curl --request POST \
--url https://api.ekhodealer.com/checkoutCart_oncreate_v2/ \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"variants": [
{
"variantConfigId": "variantConfigId",
"metadata": {
"randomField": "randomValue"
}
}
],
"cancelUrl": "www.ekhodealer.com",
"oemKey": "example-key",
"oemId": "example-oem-id",
"nativeDefaultCheckoutUrl": "https://www.rideoem.com/checkout",
"registrationState": "AL",
"items": {
"itemId": [
{
"name": "Example Name",
"price": 123
}
]
},
"ecommUserId": "<string>",
"ecommOrderId": "<string>",
"ekhoCheckoutCartId": "<string>",
"orderCreationType": "ORGANIC",
"source": "facebook",
"linkUseType": "SINGLE_USE",
"customLinkConfig": {
"linkName": "<string>",
"checkoutPaymentOverride": {
"STANDARD_RESERVATION": {
"paymentTypeEnum": "STANDARD_RESERVATION"
},
"CHECKOUT_FULL_PAYMENT": {
"paymentTypeEnum": "CHECKOUT_FULL_PAYMENT",
"fullPaymentDiscountPerc": 123
},
"LOAN_DOWNPAYMENT": {
"paymentTypeEnum": "LOAN_DOWNPAYMENT",
"checkoutDownPaymentPerc": 123
}
},
"salespersonEmail": "<string>",
"prefilledInfo": {
"buyerFullName": "<string>",
"buyerPhone": "<string>",
"buyerEmail": "<string>",
"selectedPaymentOption": "STANDARD_RESERVATION",
"selectedDeliveryOption": "PICK_UP",
"selectedRegistrationOption": "EKHO",
"selectedPickUpLocationId": "<string>",
"shippingAddress": {
"addressString": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"county": "<string>",
"state": "<string>",
"zip": "<string>"
},
"registrationAddress": {
"addressString": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"county": "<string>",
"state": "<string>",
"zip": "<string>"
},
"mailingAddress": {
"addressString": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"county": "<string>",
"state": "<string>",
"zip": "<string>"
},
"regAddressSameAsShipping": true,
"mailingAddressSameAsShipping": true
}
},
"preorderId": "<string>",
"brandKey": "<string>",
"metadata": {
"randomField": "randomValue"
}
}'