FCHubFCHub.co

Create custom order

Create a custom order line item on an existing order.

POST
/orders/{order_id}/create-custom

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Path Parameters

order_id*integer

Order ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://your-site.com/wp-json/fluent-cart/v2/orders/0/create-custom" \  -H "Content-Type: application/json" \  -d '{}'
{}