Name Your Price supports CoCart since
Add item to cart
Apply the customers requested price for the product when adding item to cart.cURL
Documentation is still being updated. Some content maybe unfinished.
Allow customers to define the product price. Also useful for accepting user-set donations.
curl -X POST https://your-store.com/wp-json/cocart/v2/cart/add-item \
-H "Content-Type: application/json" \
-d '{
"id": "129",
"quantity": "1",
"item_data": {
"nyp": 24
}
}'
Was this page helpful?