Skip to main content
PUT
/
payment-setting
/
{id}
Update Payment Setting
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment-setting/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "<string>",
  "settings": {},
  "isDefault": true,
  "memo": "<string>"
}'
{
  "message": "Payment setting updated successfully"
}
Update Payment Setting Description:
The /payment-setting/{id} endpoint allows updating details of a specific payment setting.
Method:
PUT
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the payment setting

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathāœ…Payment Setting ID

Request Body

Request Schema

FieldTypeRequiredDescription
namestringāŒThe name of the payment setting
typestringāŒThe type of the payment setting
settingsobjectāŒThe settings/configuration of the payment setting
isDefaultbooleanāŒWhether this is the default payment setting
memostringāŒAdditional notes or comments

Responses

āœ… 200 - Success

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

Payment Settings

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Payment Setting ID

Body

application/json
name
string

The name of the payment setting

type
string

The type of the payment setting

settings
object

The settings/configuration of the payment setting

isDefault
boolean

Whether this is the default payment setting

memo
string

Additional notes or comments

Response

Success

message
string
paymentSetting
object
⌘I