Перейти к содержимому

Изменение настроек кабинета

PATCH
/merchant
curl --request PATCH \
--url https://example.comhttps://svc.cashwell.io/merchant \
--header 'Content-Type: application/json' \
--data '{ "callbackUrl": "https://example.com/payment/hook", "successUrl": "https://merchant.example/payment/success", "errorUrl": "https://merchant.example/payment/error" }'
Media typeapplication/json
object
callbackUrl
required

Адрес для webhook-уведомлений об изменении статусов сделок. Ваш сервер должен отвечать кодом 200 или 201, иначе уведомление будет доставляться повторно

string

Example

https://example.com/payment/hook
successUrl

Адрес, куда вернуть плательщика с платёжной страницы после успешной оплаты

object

Example

https://merchant.example/payment/success
errorUrl

Адрес, куда вернуть плательщика с платёжной страницы после неуспешной оплаты

object

Example

https://merchant.example/payment/error

Изменение настроек кабинета

Media typeapplication/json
object
id
required

Id of the merchant

string
name
required

Name of the merchant

string
callbackUrl
required

Callback URL used for notifications about trade status updates. Please respond with a 200 status code to confirm receipt of the message, ensuring that we do not resend this request.

string
successUrl

URL where payer should be returned after a successful pay-in payment

object
errorUrl

URL where payer should be returned after an unsuccessful pay-in payment

object
supportLink

Technical support link for the merchant

object
balance
required

Balance of the provider

string format: int64
groupId

Id of the merchant group the merchant belongs to

object

Example

{
"id": "9ee42dff-83ec-4a90-8dfb-1fc74d3afbe4",
"name": "Provider Name",
"callbackUrl": "https://google.com/payment/hook",
"successUrl": "https://merchant.example/payment/success",
"errorUrl": "https://merchant.example/payment/error",
"supportLink": "https://t.me/example_support",
"balance": "1000",
"groupId": "9ee42dff-83ec-4a90-8dfb-1fc74d3afbe4"
}