SoraiDocs
GuidesAPI reference

sorai prices update

Change some of a price's fields.

Only the fields you pass change; the currency cannot change.

sorai prices update --product-id <uuid> --price-id <uuid> [flags]

Flags

  • --store <id|slug>: A store id or slug. Defaults to SORAI_STORE, the saved login's store, or the only store.
  • --product-id <uuid> (required): The product's id, from sorai products list.
  • --price-id <uuid> (required): The price's id, from sorai prices list.
  • --amount-minor <int>: The amount in the currency's smallest unit: 1500 is USD 15.00. IDR, JPY, KRW and VND have no decimals, so 150000 is IDR 150,000.
  • --kind <one_time|recurring>
  • --interval <string|null>: For a recurring price: month or year.
  • --pay-what-you-want <true|false|null>
  • --min-minor <int|null>
  • --dry-run: Print the request it would send, and for an update the fields that would change, without changing anything.

Permissions

Needs a key with the catalog:read and catalog:write permissions.

This command changes data. It can overwrite, archive or delete what is stored. Run it with --dry-run first to see what it would do.

On this page