curl --location --request POST '/api/v1/subscriptions//upgrade' \
--header 'idempotency-key;' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"priceId": "string",
"metadata": {}
}'{
"success": true,
"data": {
"authId": "string",
"renewalCounter": 0,
"priceId": "string",
"expiresAt": null,
"authorizationId": "string",
"billingDetails": {
"immediateCharge": 0,
"proRatedAmount": 0,
"nextBillingAmount": 0,
"effectiveDate": "string"
},
"invoiceCreated": true
}
}