Create cart
documentedCreate a new cart.
POST /3dCartWebAPI/v1/CartsCartsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v2/Cart" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "SecureURL: {{$secure_url}}" \
-H "PrivateKey: {{$private_key}}" \
-H "Token: {{$token}}" \
-d '{
"CustomerId": {{$customer_id}},
"BillingFirstName": "{{$billing_first_name}}",
"BillingLastName": "{{$billing_last_name}}",
"BillingAddress": "{{$billing_address}}",
"BillingCity": "{{$billing_city}}",
"BillingState": "{{$billing_state}}",
"BillingZipCode": "{{$billing_zip}}",
"BillingCountry": "{{$billing_country}}",
"BillingEmail": "{{$billing_email}}",
"ShipmentFirstName": "{{$shipment_first_name}}",
"ShipmentLastName": "{{$shipment_last_name}}",
"ShipmentAddress": "{{$shipment_address}}",
"ShipmentCity": "{{$shipment_city}}",
"ShipmentState": "{{$shipment_state}}",
"ShipmentZipCode": "{{$shipment_zip}}",
"ShipmentCountry": "{{$shipment_country}}",
"ShipmentPhone": "{{$shipment_phone}}",
"ShipmentEmail": "{{$shipment_email}}",
"Items": [
{
"CatalogID": {{$catalog_id}},
"ItemQuantity": {{$item_quantity}}
}
]
}'