Skip to content

Migrate hardcoded pricing

POST
/api/v1/pricing/migrate

Migrate hardcoded pricing data from code to DynamoDB storage. By default operates in dry-run mode to preview the migration. This is typically a one-time operation.

object
dry_run

Preview migration without applying

boolean
default: true

Migration result

object
data
object
dry_run
boolean
applied
boolean
plans_to_create
Array<object>
object
packs_to_create
Array<object>
object
plans_skipped
Array<string>
packs_skipped
Array<string>

Bad request - invalid input

object
error
object
code

Error code

string
Allowed values: BAD_REQUEST UNAUTHORIZED NOT_FOUND CONFLICT INTERNAL_ERROR
message

Human-readable error message

string

Unauthorized - missing or invalid credentials

object
error
object
code

Error code

string
Allowed values: BAD_REQUEST UNAUTHORIZED NOT_FOUND CONFLICT INTERNAL_ERROR
message

Human-readable error message

string