Изменение настроек кабинета
const url = 'https://example.comhttps://svc.cashwell.io/merchant';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"callbackUrl":"https://example.com/payment/hook","successUrl":"https://merchant.example/payment/success","errorUrl":"https://merchant.example/payment/error"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Request Bodyrequired
Заголовок раздела «Request Bodyrequired»object
Адрес для webhook-уведомлений об изменении статусов сделок. Ваш сервер должен отвечать кодом 200 или 201, иначе уведомление будет доставляться повторно
Example
https://example.com/payment/hookАдрес, куда вернуть плательщика с платёжной страницы после успешной оплаты
object
Example
https://merchant.example/payment/successАдрес, куда вернуть плательщика с платёжной страницы после неуспешной оплаты
object
Example
https://merchant.example/payment/errorResponses
Заголовок раздела «Responses»Изменение настроек кабинета
object
Id of the merchant
Name of the merchant
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.
URL where payer should be returned after a successful pay-in payment
object
URL where payer should be returned after an unsuccessful pay-in payment
object
Technical support link for the merchant
object
Balance of the provider
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"}