header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
Body Params application/json
Example
{"name":"Basic Plan update","code":"BSC_PLN","type":"public","interval":"monthly","currency":"USD","description":"This is a basic plan.","amount":1000,"trial_period_in_days":14,"country":"US","tax_rate":5,"plan_matrix":"{\"key\":\"value\"}","advance_payment":false}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'http://localhost:8080/v1/admin/plans/dad08e78-50f9-4cb7-beb4-d75a9ccc040d' \
--header'Content-Type: application/json' \
--data-raw'{
"name": "Basic Plan update",
"code": "BSC_PLN",
"type": "public",
"interval": "monthly",
"currency": "USD",
"description": "This is a basic plan.",
"amount": 1000,
"trial_period_in_days": 14,
"country": "US",
"tax_rate": 5,
"plan_matrix": "{\"key\":\"value\"}",
"advance_payment": false
}'
Responses
🟢200OK
application/json
Body
Example
{"message":"plan updated successfully","result":{"created_at":"2024-03-30T14:21:35+06:00","updated_at":"2024-03-30T08:27:13.783626257Z","name":"Basic Plan update","code":"BSC_PLN","type":"public","interval":"monthly","currency":"USD","status":"active","external_plan_id":null,"description":"This is a basic plan.","amount":1000,"trial_period_in_days":14,"country":"US","tax_rate":5,"plan_matrix":"{\"key\":\"value\"}","deleted_at":null,"id":"dad08e78-50f9-4cb7-beb4-d75a9ccc040d","advance_payment":false},"success":true}