Welcome to unifinu's doc center

Print

With the REST API that unifinu provides, you can create different accounts for merchants. This is mainly used by providers who want to offer the services from unifinu to their own customers in a white -label set up. In such a case it can be very convenient to create accounts with a REST API call that is executed during boarding of the merchant in their own systems. Same applies to retrieving merchant details as well as updating it. This section explain how to update merchant records.

PUT: /unifinu/merchant/{merchantId}

Replace the {merchantId} with the id of the merchant you want to update.

Please ensure you include the correct headers, including the ‘authorization’ element with the JWT token. More info here.

In the body you need to provide with some minimal information that wil be used to update the account details.

JSON
				{
  "createdUser": 0,
  "enabled": false,
  "merchantContactEmail": "string",
  "merchantName": "string"
}
			

If the request was handled successfully and a statuscode 200 was returned, a response would look like below.

JSON
				{
  "createdDate": {
    "date": 0,
    "day": 0,
    "hours": 0,
    "minutes": 0,
    "month": 0,
    "nanos": 0,
    "seconds": 0,
    "time": 0,
    "timezoneOffset": 0,
    "year": 0
  },
  "createdUser": 0,
  "enabled": false,
  "id": 0,
  "merchantContactEmail": "string",
  "merchantName": "string",
  "modifiedDate": {
    "date": 0,
    "day": 0,
    "hours": 0,
    "minutes": 0,
    "month": 0,
    "nanos": 0,
    "seconds": 0,
    "time": 0,
    "timezoneOffset": 0,
    "year": 0
  },
  "users": [
    {
      "createdBy": 0,
      "createdDate": {
        "date": 0,
        "day": 0,
        "hours": 0,
        "minutes": 0,
        "month": 0,
        "nanos": 0,
        "seconds": 0,
        "time": 0,
        "timezoneOffset": 0,
        "year": 0
      },
      "description": "string",
      "email": "string",
      "enabled": false,
      "firstName": "string",
      "id": 0,
      "lastModifiedBy": 0,
      "lastName": "string",
      "modifiedDate": {
        "date": 0,
        "day": 0,
        "hours": 0,
        "minutes": 0,
        "month": 0,
        "nanos": 0,
        "seconds": 0,
        "time": 0,
        "timezoneOffset": 0,
        "year": 0
      },
      "password": "string",
      "passwordExpiryDate": "1970-01-01",
      "roles": [
        "string"
      ]
    }
  ]
}
			
On this page