Set a variant's cost
What one sale of a variant costs the store, as an amount or as a share of what it sold for: what the buyer paid for it, after its sale price and discounts, without tax. Send neither to clear it. The cost is stamped onto each order line when the order is paid, so a later change does not rewrite old months. Refused with business_details_required until the store has its business details.
Needs the finance.write permission (Change Finance).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The variant.

