Update shop details
Use this request to change the merchant's shop details.
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/shops/{SHOP_ID}, where {SHOP_ID} is an identifier of the merchant's shop account in the system.
| Parameter | Type | Description |
|---|---|---|
| shop | object | A section of the merchant's shop details. |
| id * required | integer | An identifier of the merchant's shop account. Used to authorize merchant requests. |
| name * required | string | A name of the merchant's shop. |
| URL * required | string | An URL of the merchant's shop. |
| contact_email * required | string | An email of the merchant's shop. Indicated as contact information in transaction receipts. |
| contact_phone * required | string | A phone number of the merchant's shop. Indicated as contact information in transaction receipts. |
| secret_key * required | string | A secret key of the merchant's shop account. Used to authorize merchant requests. |
| enabled * required | boolean | A status of the merchant's shop account. Possible values: true, if the shop is active;false, if the shop is inactive. |
Request example
{ "shop":{ "name":"BMW750", "url":"http://bmw750.com", "contact_email":"bmw750@bmw.com", "contact_phone":"555444", "secret_key":"2b728085f755b83427cebe84cb1bb1c5560ef6eff4278d014e04d6b1d9854e7e", "enabled":true }}
Response
You will get the 204 HTTP response code if your request was processed successfully.