Customer

Customer self management

Options

Enable CORS by returning correct headers

SecurityNone
Responses
200

Enable CORS by returning correct headers

options/v1/customer-wallet

Retrieve customer wallet

Retrieve the prepaid wallet for the customer. It provides the current balance and details on its state.

SecurityOAuth2 or JifelineAuthorizer
Responses
200

Successfully obtained customer prepaid wallet

400

Returned when a client sends a bad request

401

Returned when a request is performed without or with an incorrect OIDC token

403

Returned when a client requests a resource it's not authorized for.

500

Returned when an error occurs on the server

get/v1/customer-wallet
Response samples
application/json
{
  • "balance": 150,
  • "balance_state": "healthy"
}

Options

Enable CORS by returning correct headers

SecurityNone
Responses
200

Enable CORS by returning correct headers

options/v1/customers/me

Get customer information of the currently logged-in user

Get customer details of a currently logged-in user

SecurityOAuth2 or JifelineAuthorizer
Responses
200

Successfully obtained current logged-in user's customer contact details

400

Returned when a client sends a bad request

401

Returned when a request is performed without or with an incorrect OIDC token

403

Returned when a client requests a resource it's not authorized for.

500

Returned when an error occurs on the server

get/v1/customers/me
Response samples
application/json
{
  • "name": "Autodiagnose Vogels",
  • "reference": 213432,
  • "street": "Zevensprong",
  • "number": "7",
  • "postal_code": "6511AA",
  • "city": "Amsterdam",
  • "country": "NL",
  • "email_address": "john@forbes.com",
  • "financial_email_address": "patricia@blackrock.com",
  • "phone": 31651226913,
  • "currency": "EUR"
}

Edit a authenticated user's customer details

Edit authenticated user's customer details

SecurityOAuth2 or JifelineAuthorizer
Request
Request Body schema: application/json
required

Company details

name
string

Company name

street
string

Company street name

number
string

Company street number

postal_code
string

Company postal code

city
string

Company city

country
string

Company country code

email_address
string

Company e-mail address

financial_email_address
string

Company financial dpt. e-mail address

phone
string

Company phone number

Responses
200

Successfully updated user's customer details

400

Returned when a client sends a bad request

401

Returned when a request is performed without or with an incorrect OIDC token

403

Returned when a client requests a resource it's not authorized for.

500

Returned when an error occurs on the server

put/v1/customers/me
Request samples
application/json
{
  • "name": "Autodiagnose Vogels",
  • "street": "Zevensprong",
  • "number": "7",
  • "postal_code": "6511AA",
  • "city": "Amsterdam",
  • "country": "NL",
  • "email_address": "john@forbes.com",
  • "financial_email_address": "patricia@blackrock.com",
  • "phone": 31651226913
}
Response samples
application/json
{
  • "name": "Autodiagnose Vogels",
  • "reference": 213432,
  • "street": "Zevensprong",
  • "number": "7",
  • "postal_code": "6511AA",
  • "city": "Amsterdam",
  • "country": "NL",
  • "email_address": "john@forbes.com",
  • "financial_email_address": "patricia@blackrock.com",
  • "phone": 31651226913,
  • "currency": "EUR"
}