FCHubFCHub.co

Update product pricing

Update pricing information for a product. Prices must be specified in cents.

POST
/products/{product_id}/pricing

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

product_id*integer

Product 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/products/0/pricing" \  -H "Content-Type: application/json" \  -d '{    "post_title": "string",    "detail": {      "fulfillment_type": "digital"    },    "variants": [      {        "post_id": 0,        "variation_title": "string",        "item_price": 0      }    ]  }'
{}