API for managing customers
new: Make country parameter dynamic and add support for Denmark.
doc: Improve description for customer
enrolled_by
type, add examples
new: Support new customer type
contact
. A user contact can be linked with users and a search matching a contact will match its linked users
new: Add endpoint for validating a given address and returning close matching alternatives if found.
Add endpoint for getting multiple addresses for given organization number.
Support multiple users sharing the same
phone_number
. Use the newusers.phone_number_validation.allow_duplicates
option to control the unique phone_number constraint on users
Support new customer type
other
.
Extend customer
enrolled_by.type
to allow any string value, not justurl
,store
andcustom
.
Add support for removing customer terms and
include_deleted
when getting list of all terms.
Add support for limited access to customer details with
user:customers:/customer/details
Add support for logging on without MFA even if configured with MFA
new Support filter users with
type
query parameter.
new Support filter user tokens with
include_deleted
query parameter.
new Support filter and search on sales locations
new Extend SalesLocation with
address.latitude
,address.longitude
,chain
,mcc
,gln
andfranchise
. Theaccount_id
will be included in any SalesLocation responses.
Add setting for require verification when updating user phone_number. Prevent all update of user phone_number without completing a verification via SMS.
Adds proxy to enhetsregisteret.
Add support for
attributes_keys
andattributes_values
query parameters for filtering customer users
Add support for enabling automatic tokens when phone numbers or emails change
Extends settings with support for configuring users
customer_id_format
.
Extends the TokenEvent definition with `expires_at read only property.
Extends settings with support for configuring token events expiry
Extend user Address, add support for
latitude
,longitude
andcomment
properties.
Add new endpoint for deleting a tag
The scope required for accessing endpoint has changed, we will continue to support the old scopes but they was removed from the documentation
Make type and company property optional when updating a customer user
Support new customer type
employee
.
Adding tokens to deleted customers will now fail with BAD_REQUEST.
Duplication control of
customer.email
is now case insensitive. email case will be ignore on Search and login.
Add support for query parameter
total
on GET user/token lists. Includes atotal-count
header in the response when enabled..
Add support for
delete_token_events
parameter when creating
Add support for filtering token events by
since_datetime
.
Delete customer and all tokens owed by the customer in one request when using
delete_tokens
query parameter.
Token event status. The status in response will now be set to
customer.status
if a customer with status is included in the response.
Add minimum length for token token_id/type/value
Add endpoint for GET/DELETE token events
Add
type
property to the customer. Support multiple customer types, add support for Company type for additional properties
Move endpoints for retrieving/updating token (events), use one endpoint for both retrieving and updating details about a token
Create a new customer, customer_id
, email
and phone_number
must
be unique if specified.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer to create
type required | string Default: "customer" Enum: "customer" "company" "contact" "employee" "other" Describe type of a user.
|
metadata | object <= 40 properties A set of key/value pairs that you can attach to a customer object. It can be useful for storing additional information about the customer in a structured format. You can unset an individual key by setting its value to null and then saving. To clear all keys, set metadata to null |
first_name | string or null |
last_name | string or null |
string or null customer email,
case insensitive duplication control prevents
multiple user with same customer@example.com is equal to CUStOMer@EXAMPLE.com | |
phone_number | string or null <^\+?[1-9]\d{1,14}$> A phone number in E.164 number formatting. |
attributes | object Custom attributes |
status | string or null Status of the customer |
favorite_store | string or null customer favorite store |
object The source that recruited the customer | |
object Customers consent for marketing in different channels | |
Array of objects (CustomerAddress) | |
object (CustomerTerm) | |
object Company details, supported when type is Company | |
gender | string or null |
date_of_birth | string or null <date> |
Array of objects The users that it is a contact for, supported when type is | |
customer_id | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) An auto-generated customer_id will be created if no customer_id is provided. |
password | string [ 8 .. 255 ] characters The customer password. The caller must have scope
|
pin | string = 6 characters ^\d{6}$ 6 digit customer pin, can only used for MFA login. The caller must have scope
|
{- "metadata": {
- "dob_year": 1985
}, - "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true
}, - "email": {
- "consent": true
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string",
- "password": "stringst",
- "pin": "string"
}
{- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
Check if there is users that match the parameters. The result will
match all parameters with AND
.
This endpoint must be enabled from PUT /customers/settings
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
string lookup customer by email | |
phone_number | string lookup customer by phone_number |
{- "error": {
- "code": "string",
- "errors": [
- { }
], - "message": "string"
}
}
Get all customers, limited by parameters. The result will
match all parameters with AND
.
Search is done by prefix match, and +
in phone_number/email
must be URL encoded, (+4799999999 => %2B4799999999)
Users with type contact
are by default excluded from the result,
use type=contact
or type=any
to include contact users
The response from a request that match contact users will include the users that are linked from the contact
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
token_value | string lookup customers by token value |
token_type | string lookup customer by token type |
string lookup customer by email | |
phone_number | string lookup customer by phone_number |
type | string Enum: "customer" "company" "contact" "employee" "other" "any" lookup customer by type |
search | string lookup customer where search term match name, phone number, customer_id or email. The search term will be matched with the user details |
tag_id | string lookup customers by tag id |
include_deleted | boolean Default: false include deleted customers in the response. A deleted user will only have an id/customer_id, created_at/created_by and deleted_at/deleted_by set All other details of a customer, like email or phone_number will be deleted. |
attributes_keys | Array of strings <= 4 items include customers that has all the attributes. |
attributes_values | Array of strings <= 4 items Combine with |
since_datetime | string <date-time> lookup customers that has been added or modified
since an ISO timestamp. NOTE: this parameter can't be combined
with |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
total | boolean Default: false include |
[- {
- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
]
Customer details scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
{- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
Update customer properties, properties not included in the body will remain unchanged. scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
Customer update
first_name | string or null |
last_name | string or null |
string or null customer email,
case insensitive duplication control prevents
multiple user with same customer@example.com is equal to CUStOMer@EXAMPLE.com | |
phone_number | string or null <^\+?[1-9]\d{1,14}$> A phone number in E.164 number formatting. |
attributes | object Custom attributes |
status | string or null Status of the customer |
favorite_store | string or null customer favorite store |
object The source that recruited the customer | |
object Customers consent for marketing in different channels | |
type | string Default: "customer" Enum: "customer" "company" "contact" "employee" "other" Describe type of a user.
|
Array of objects (CustomerAddress) | |
object (CustomerTerm) | |
object Company details, supported when type is Company | |
gender | string or null |
date_of_birth | string or null <date> |
Array of objects The users that it is a contact for, supported when type is | |
password | string [ 8 .. 255 ] characters The customer password. The caller must have scope
|
pin | string = 6 characters ^\d{6}$ 6 digit customer pin, can only be used for MFA login. The caller must have scope
|
{- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true
}, - "email": {
- "consent": true
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "password": "stringst",
- "pin": "string"
}
{- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
Delete single customer scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
delete_tokens | boolean Default: false Delete all tokens owned by the customer |
{- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
Update customer_id for an customer
warning: Any external resources "owned" by the user, i.e
receipts, discounts etc. will not be updated with the new
customer_id.
A new metadata property dintero_change_customer_id_{timestamp}.{hash}
will be added everytime the customer_id is changed
Following data will be included in the metadata property
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
Customer update
customer_id | string [ 1 .. 255 ] characters New customer_id (must not have trailing or leading spaces). |
{- "customer_id": "string"
}
{- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}
Get the token events scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
since_datetime | string <date-time> Only token events added/updated at or after this time is returned
NOTE: this parameter can't be combined with |
deleted_since | string <date-time> return only token events that has been deleted |
[- {
- "id": "string",
- "status": "DELETED",
- "events": [
- {
- "created_at": "2018-01-31T16:56:33Z",
- "event": "anonymous token",
- "status": "PENDING"
}, - {
- "created_at": "2018-02-05T00:00:00Z",
- "event": "reqruited",
- "status": "DELETED"
}
]
}
]
Delete the connection between token (type/value) and list of events. Include an event in the request to store the reason for the request scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
required | object (TokenTypeValue) Lookup by token type and value |
object Record an delete event, the status will be set to DELETED. |
{- "token": {
- "type": "string",
- "value": "string"
}, - "event": {
- "event": "customer registered in webshop",
- "metadata": { }
}
}
Find details about a token, inclusive details about any customer the token belongs to and any token events recorded Include event in the request to update the status of the token scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
required | object (TokenTypeValue) Lookup by token type and value |
object (TokenEvent) Record event data about a token An event can be created before the customer exist and before the token has been added to the customer |
{- "token": {
- "type": "string",
- "value": "string"
}, - "event": {
- "event": "customer declined signup in store",
- "status": "OPT_OUT",
- "metadata": {
- "store_id": "SID1234"
}
}
}
{- "id": "string",
- "customer": {
- "metadata": {
- "dob_year": 1985
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "first_name": "John",
- "last_name": "Doe",
- "email": "customer@example.com",
- "phone_number": "+4799999999",
- "attributes": { },
- "status": "string",
- "favorite_store": "string",
- "marketing_consent": {
- "sms": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}, - "email": {
- "consent": true,
- "updated_at": "2018-01-12T13:42:00Z"
}
}, - "type": "customer",
- "addresses": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 59.942112,
- "longitude": 10.716991,
- "type": "custom",
- "custom_type": "string",
- "comment": "5th floor, use doorbell."
}
], - "term": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accepted_at": "2019-08-24T14:15:22Z"
}, - "company": {
- "organization_number": "123456789MVA",
- "bussiness_name": "TKP tech AS",
- "department": "sales department",
- "industry": "computer industry",
- "website": "string",
- "number_of_employees": "string"
}, - "gender": "male",
- "date_of_birth": "1990-09-20",
- "contact_for": [
- {
- "customer_id": "string"
}
], - "customer_id": "string"
}, - "token": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "token_id": "string",
- "type": "sha1:email",
- "value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
- "metadata": {
- "exp_month": 10,
- "exp_year": 20,
- "mask_pan": "**** **** **** 3477"
}
}, - "status": "OPT_OUT",
- "events": [
- {
- "expires_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "event": "customer declined signup in store",
- "status": "OPT_OUT",
- "metadata": {
- "store_id": "SID1234"
}
}
]
}
Get all tokens for a Customer scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
type | string filter tokens on type |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
total | boolean Default: false include |
include_deleted | boolean Default: true include deleted tokens in the response. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "token_id": "string",
- "type": "sha1:email",
- "value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
- "metadata": {
- "exp_month": 10,
- "exp_year": 20,
- "mask_pan": "**** **** **** 3477"
}
}
]
Create a new customer token scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
delete_token_events | boolean Default: false delete all token events recorded on token type/value before creating new customer token |
customer token to add
type required | string non-empty identifies how or who is resposible for the token value |
value required | string non-empty |
token_id | string [ 1 .. 255 ] characters The token id you have defined for the token. (must not have trailing or leading spaces). An auto-generated token_id will be created if no token_id is provided. |
metadata | object Additional metadata about the token or the entity the token was created from |
{- "token_id": "string",
- "type": "sha1:email",
- "value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
- "metadata": {
- "exp_month": 10,
- "exp_year": 20,
- "mask_pan": "**** **** **** 3477"
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "token_id": "string",
- "type": "sha1:email",
- "value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
- "metadata": {
- "exp_month": 10,
- "exp_year": 20,
- "mask_pan": "**** **** **** 3477"
}
}
Delete Token
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
tid required | string <= 255 characters The token id you have defined for the token. (must not have trailing or leading spaces) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "token_id": "string",
- "type": "sha1:email",
- "value": "a1b79ef1a62d94ffa86b3f3d846df0ee3993af92",
- "metadata": {
- "exp_month": 10,
- "exp_year": 20,
- "mask_pan": "**** **** **** 3477"
}
}
Specify the email address of the user whose password you
would like to reset. If the call is successful, the user
will receive an email prompting them to change their password.
The caller must have scope write:accounts:/auth/users
to perform a
change password request.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
audience required | string The unique identifier of the target API you want to access. The audience must be a grant associated with the client used when calling this resource. |
email required | string |
type required | string Enum: "customer" "company" user type to login, required as users with different type can share email |
{- "email": "string",
- "audience": "string",
- "type": "customer"
}
{- "error": {
- "code": "string",
- "errors": [
- { }
], - "message": "string"
}
}
Login a customer user, the caller must have scope
write:accounts:/auth/users
.
If MFA is enabled on account, use
write:accounts:/auth/users/no-mfa
to skip MFA.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
credentials
audience required | string The unique identifier of the target API you want to access. The audience must be a grant associated with the client used when calling this resource. |
type required | string Enum: "customer" "company" user type to login, required as users with different type can share email |
password required | string [ 4 .. 255 ] characters The customer pin or password. The caller must have scope
|
string Required if | |
ident_type | string Enum: "phone_number" "email" Required if |
ident | string Email or phone_number, depending on the Required if |
{- "email": "string",
- "ident_type": "phone_number",
- "ident": "string",
- "audience": "string",
- "type": "customer",
- "password": "string"
}
{- "access_token": "eyJhbGci...t7P4",
- "token_type": "Bearer",
- "expires_in": 86400,
- "refresh_token": "string"
}
Initiate a Multi-Factor Authentication for a customer user, the caller must
have scope write:accounts:/auth/users
to perform a login.
Post the ident_type
, along with the ident
and secret
.
The server will return a challenge response specifying the
challenge_type
that will have to be completed to when getting an access
token from the POST /v1/accounts/{oid}/auth/token
endpoint.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
credentials
audience required | string The unique identifier of the target API you want to access. The audience must be a grant associated with the client used when calling this resource. |
ident_type required | string Enum: "phone_number" "email" |
ident required | string Email or phone_number, depending on the |
type required | string Enum: "customer" "company" user type to login, required as users with different type can share email |
secret required | string The customers pin or password. |
{- "ident_type": "phone_number",
- "ident": "string",
- "audience": "string",
- "type": "customer",
- "secret": "string"
}
{- "links": [
- {
- "rel": "mfa_challenge",
},
], - "mfa_token": "string",
- "challenge_type": "oob",
- "oob_channel": "sms"
}
Initiate a Multi-Factor Authentication recovery login for a customer user
that has forgotten/lost their secret
.
Specify the ident_type and the ident (email or phone_number) of the user. If
the call is successful, the user will get an email with an one time recovery
code that has to be submitted to the mfa_recovery endpoint.
When a valid one time recovery has been posted the server response with a
regular MFA challenge.
Once authenticated the password or pin can be changed by updating the
customer.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
audience required | string The unique identifier of the target API you want to access. The audience must be a grant associated with the client used when calling this resource. |
ident_type required | string Enum: "phone_number" "email" |
ident required | string Email or phone_number, depending on the |
type required | string Enum: "customer" "company" user type to login, required as users with different type can share email |
{- "ident_type": "phone_number",
- "ident": "string",
- "audience": "string",
- "type": "customer"
}
{- "links": [
- {
- "rel": "mfa_oob",
- "href": "string"
}
], - "binding_method": "prompt",
- "oob_code": "bkaiew...akas",
- "mfa_token": "string",
- "challenge_type": "oob"
}
Get the status of customer email / phone_number communication scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "communication": {
- "email": {
- "verified_at": "2019-08-24T14:15:22Z",
- "allowed": true
}, - "phone_number": {
- "verified_at": "2019-08-24T14:15:22Z",
- "allowed": true
}
}
}
Verify customer email/phone_number field. Consist of to steps:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customer_id required | string <= 255 characters The customer id you have defined for the customer. (must not have trailing or leading spaces) |
field required | string Enum: "email" "phone_number" field to verify |
operation required | string Enum: "send-verification-code" "confirm-verification-code" Verify operation |
verification code
code | string Verification code sent to customer |
{- "code": "string"
}
{- "error": {
- "code": "string",
- "errors": [
- { }
], - "message": "string"
}
}
Create customer terms and conditions scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
terms to create
terms required | string |
{- "terms": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "terms": "string"
}
Get all customer terms and conditions scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
include_deleted | boolean Default: false include deleted terms in the response |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "terms": "string"
}
]
Get single terms and conditions scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
tid required | string <uuid> terms id |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "terms": "string"
}
Delete the customer term scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
tid required | string <uuid> terms id |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "terms": "string"
}
Get customers settings
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
{- "users": {
- "head": {
- "enabled": false
}, - "phone_number_validation": {
- "allow_duplicates": false
}, - "customer_id_format": "uuid",
- "mfa": {
- "enabled": false,
- "login": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}, - "login_recovery": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}
}, - "verifications": {
- "phone_number": "sms"
}
}, - "auto_tokens": {
- "phone_number": [
- {
- "type": "SHA256"
}
], - "email": [
- {
- "type": "SHA256"
}
]
}, - "tokens": {
- "event_expiry": [
- {
- "status": "OPT_OUT",
- "time_to_live": 15780000
}
]
}, - "attributes": [
- {
- "name": "string",
- "type": "string",
- "multiple_values": false,
- "private": false
}
]
}
Update customers settings
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
customers settings
object customers user configurations | |
object Automatically generate tokens for these properties on the customer | |
object tokens configuration | |
Array of objects user attributes |
{- "users": {
- "head": {
- "enabled": false
}, - "phone_number_validation": {
- "allow_duplicates": false
}, - "customer_id_format": "uuid",
- "mfa": {
- "enabled": false,
- "login": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}, - "login_recovery": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}
}, - "verifications": {
- "phone_number": "sms"
}
}, - "auto_tokens": {
- "phone_number": [
- {
- "type": "SHA256"
}
], - "email": [
- {
- "type": "SHA256"
}
]
}, - "tokens": {
- "event_expiry": [
- {
- "status": "OPT_OUT",
- "time_to_live": 15780000
}
]
}, - "attributes": [
- {
- "name": "string",
- "type": "string",
- "multiple_values": false,
- "private": false
}
]
}
{- "users": {
- "head": {
- "enabled": false
}, - "phone_number_validation": {
- "allow_duplicates": false
}, - "customer_id_format": "uuid",
- "mfa": {
- "enabled": false,
- "login": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}, - "login_recovery": {
- "challenge_type": "oob",
- "oob_channel": "sms"
}
}, - "verifications": {
- "phone_number": "sms"
}
}, - "auto_tokens": {
- "phone_number": [
- {
- "type": "SHA256"
}
], - "email": [
- {
- "type": "SHA256"
}
]
}, - "tokens": {
- "event_expiry": [
- {
- "status": "OPT_OUT",
- "time_to_live": 15780000
}
]
}, - "attributes": [
- {
- "name": "string",
- "type": "string",
- "multiple_values": false,
- "private": false
}
]
}
Get all sales locations, the starting_after have to be set to location_id scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
search | string lookup locations where search term match name, phone_number, email, organization_number and business_name |
status | Array of strings filter locations by status |
country | Array of strings filter locations by country |
phone_number | Array of strings filter locations by phone_number |
organization_number | Array of strings filter locations by organization_number |
Array of strings filter locations by email | |
type | Array of strings filter locations by type |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "location_id": "S01923",
- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
]
Create a sales location scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
location to create
location_id | string <= 255 characters The id you have defined for the sales location. (must not have trailing or leading spaces). An auto-generated location_id will be created if no location_id is provided |
name | string The location's trade name which is shown to its customers (receipt/signs) |
timezone | string The location's timezone (IANA Timezone) |
status | string The location's status |
language_code | string Language code of the localized company info, as defined by BCP 47 (IETF BCP 47, "Tags for Identifying Languages"). |
currency | string The three-character ISO-4217 currency. https://en.wikipedia.org/wiki/ISO_4217 |
phone_number | string <^\+?[1-9]\d{1,14}$> A phone number in E.164 number formatting. |
chain | string |
string | |
mcc | string <iso-18245> [ 4 .. 4 ] A four-digit Merchant Category Code (MCC) for the store ISO 18245:2003 |
gln | string Company Global Location Number |
organization_number | string Company identification number |
business_name | string The location's legal name |
franchise | string The location is part of a franchise. |
type | string The location type (Physical, Mobile) |
website_url | string The location's website |
object |
{- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "location_id": "S01923",
- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
Get single sales location scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
lid required | string <= 255 characters location id |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "location_id": "S01923",
- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
Update location properties scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
lid required | string <= 255 characters location id |
Location update
name | string The location's trade name which is shown to its customers (receipt/signs) |
timezone | string The location's timezone (IANA Timezone) |
status | string The location's status |
language_code | string Language code of the localized company info, as defined by BCP 47 (IETF BCP 47, "Tags for Identifying Languages"). |
currency | string The three-character ISO-4217 currency. https://en.wikipedia.org/wiki/ISO_4217 |
phone_number | string <^\+?[1-9]\d{1,14}$> A phone number in E.164 number formatting. |
chain | string |
string | |
mcc | string <iso-18245> [ 4 .. 4 ] A four-digit Merchant Category Code (MCC) for the store ISO 18245:2003 |
gln | string Company Global Location Number |
organization_number | string Company identification number |
business_name | string The location's legal name |
franchise | string The location is part of a franchise. |
type | string The location type (Physical, Mobile) |
website_url | string The location's website |
object |
{- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "location_id": "S01923",
- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
Delete single location scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
lid required | string <= 255 characters location id |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "location_id": "S01923",
- "name": "TKP Store",
- "timezone": "Europe/Oslo",
- "status": "Active",
- "language_code": "string",
- "currency": "NOK",
- "phone_number": "+4799999999",
- "chain": "SuperChain",
- "email": "saleslocation@example.com",
- "mcc": "5814",
- "gln": "string",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "franchise": "Subway",
- "type": "string",
- "website_url": "string",
- "address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO",
- "latitude": 0,
- "longitude": 0
}
}
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
country required | string ISO 3166-1 country code |
organization_number required | string Organization number to get addresses for |
{- "items": [
- {
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "business_address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}, - "registry_address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}, - "office_type": [
- "head_office",
- "branch"
]
}
]
}
Proxy queries to the Norwegian or Danish organization registry.
Please note that the only supported countries currently are "no" (Norway) and "dk" (Denmark).
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
country required | string ISO 3166-1 country code |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
name | string Search for organization |
organization_number | string Search for organization |
[- {
- "response_from": "enhetsregisteret",
- "organization_type": "AS",
- "phone_number": "+4799999999",
- "email": "hello@company.com",
- "organization_number": "123456789MVA",
- "business_name": "TKP technology AS",
- "business_address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}, - "registry_address": {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}, - "website_url": "string"
}
]
Get postal place by country and postal code.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
country required | string ISO 3166-1 country code |
postal_code required | string Postal code |
{- "country": "NO",
- "postal_code": "0349",
- "postal_place": "Oslo"
}
Validate the given address and return close matching alternative suggestions if the provided address was most likely wrong.
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
country required | string ISO 3166-1 country code |
Address information, including the name of the address, the postal code, the postal place (city where the address is in), and the country.
address_line required | string |
postal_place required | string |
country required | string <iso-3166-1> ISO 3166-1 country code |
postal_code required | string |
address_line_2 | string |
{- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}
{- "valid": false,
- "alternatives": [
- {
- "address_line": "Sommerkroveien 34",
- "address_line_2": "PB 123",
- "postal_code": "0349",
- "postal_place": "Oslo",
- "country": "NO"
}
]
}