Update a merchant account
Use this request to update details of a merchant account registered in your instance if the beGateway payment processing system.
Request
The requests must:
- use HTTP Basic authentication with
xas a username and your PSP secret key as a password; - have a body with parameters in the JSON or XML formats, or as an HTML form data;
- have the
Content-Typeheader set toapplication/jsonorapplication/xmldepending on the request body format; - have the
Acceptheader set toapplication/jsonorapplication/xmldepending on the preferred response format; - be UTF-8 encoded.
Send a PUT request to {YOUR_BACKOFFICE_URL}/api/merchants/{MERCHANT_ID}, where {MERCHANT_ID} is an identifier of the merchant account in the system.
| Parameter | Type | Description |
|---|---|---|
| merchant | object | A section of the merchant account details. |
| name * required | string | A name of the merchant. |
| email * required | string | An email of the merchant. Used as a login to the system back office. |
| enabled * required | string | A status of the merchant account. Possible values: true, if the account is active;false, if the account is inactive. |
Request example
{ "merchant": { "name":"John Doe", "email":"john@example.com", "enabled":false }}
Response
You will get the 204 HTTP response code if your request was processed successfully