Skip to main content

Create engagements for sandbox agreement

POST 

https://psd2.eika.no/api-sandbox/v1/sandbox/agreements/:mockAgreementId/engagements

Add additional accounts with privileges to an agreement created using POST /v1/sandbox/agreements.

Engagements must have both the role "REGISTER" and "VIEW" to be available for granting consent in the sandbox environment.

Note that the field "customer" points to the PSU which should see the accounts when granting consent in the PSD2 Sandbox. However the field "account" should not be owned by the same PSU, this should be owned by the customer created as the corporation which the PSU is a member of. Also note that the field "owner" in agreement is also the corporation which the PSU is a member of.

Request

Responses

CREATED

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://psd2.gruesparebank.no/v1/sandbox/agreements/:mockAgreementId/engagements");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://psd2.eika.no/api-sandbox
Parameters
— pathrequired
— headerrequired
— headerrequired
— headerrequired
— headerrequired
— header
— header
— header
— header
— header
— header
Body required
{
  "customer": "01085800481",
  "account": {
    "iban": "NO8626743379224"
  },
  "roles": [
    "REGISTER",
    "VIEW"
  ],
  "registerLimit": 0,
  "approvalLimit": 0
}