# Update

To update the merchant information send a patch with a Partial<Merchant> in the body and the merchant id in the url to the merchant endpoint.

 











PATCH /v1/merchant/:id

Host: merchant.intergiro.com
Content-Type: application/json
Authorization: Bearer <agent.api.key>

{
  "number": "Example",
  "name": "Example Merchant",
  "currency": "SEK",
}

The response is the updated merchant on the same form as in create merchant, in this case with the currency updated to SEK.

Note that the rules can also be updated through a patch call.

# Guards

To activate certain guards PATCH the merchant with a list off all guards that should be activated.

 









PATCH /v1/merchant/:id

Host: merchant.intergiro.com
Content-Type: application/json
Authorization: Bearer <agent.api.key>

{
  "guard": ["iin"],
}