Error message returned by checkouts endpoint

I am getting an error back that I don’t understand

|category|INVALID_REQUEST_ERROR|
|code|MISSING_REQUIRED_PARAMETER|
|detail|Missing required parameter.|
|field|order|

here is the body that I am sending:

{
“idempotency_key”: “#potency_key#”,
“order”: {
“reference_id”: “#url.rental_id#”,
“location_id” : “LGCXK9B633G4J”,
“line_items”: [
{
“name”: “Rental Payment”,
“quantity”: “#all_items#”,
“base_price_money”: {
“amount”: #deposit_payment#,
“currency”: “USD”
},
“discounts”: ,
“taxes”:
}
],
“discounts”: ,
“taxes”:
},
“additional_recipients”: ,
“ask_for_shipping_address”: true,
“merchant_support_email”: “[email protected]”,
“pre_populate_buyer_email”: “#trim(get_contact.emailaddress)#”,
“pre_populate_shipping_address”: {
“address_line_1”: “#get_contact.homestreet#”,
“address_line_2”: “#get_contact.homestreet2#”,
“locality”: “#get_contact.homecity#”,
“administrative_district_level_1”: “#get_contact.homestate#”,
“postal_code”: “#get_contact.homepostalcode#”,
“country”: “US”,
“first_name”: “#get_contact.firstname#”,
“last_name”: “#get_contact.lastname#”
},
“redirect_url”: “https://motorcoachresortpsl.com/order_confirm.cfm

}

That’s the deprecated Checkout API. You’ll want to use our new Payment Links which is the new and supported version of the Checkout API. :slightly_smiling_face: