Create sandbox customer
POSThttps://psd2.eika.no/api-sandbox/v1/sandbox/customers
Post new customers. customerNumber should be used as identifier when performing SCA in test. For private customers an agreement is created automatically as a part of the process. Corporate customers needs to add agreements through POST /v1/sandbox/agreements.
Request
Responses
- 201
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://psd2.dengulebanken.no/v1/sandbox/customers");
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());