Skip to main content
POST
aid_account_management_stores_sid_bax_merchant_agreements_post

Authorizations

Authorization
string
header
required

Bearer authentication (token authentication) should be used for accessing the API.

Use Get Token to get an access token for client credentials. Pass the token in the request header:

where the access_token is JSON Web Tokens (JWT).

Path Parameters

aid
string<^[PT]{1}\d{8}$>
required

An id that uniquely identifies the account.

Required string length: 9
store_id
string
required

Store ID as returned in the store creation response.

Maximum string length: 255

Body

application/json

A BankAxept (BAX) merchant agreement for the store. The BAX number identifies a point of sale registered with BankAxept by organization number, name and visiting address.

On create, organization_number, name, address.address_line and address.postal_code must match the registered data for the store, otherwise the request fails:

  • name: the store's store_name. If the store has none, the organization's trade_name, then its name.
  • main_unit store: the payout destination's organization number and address.
  • sub_unit store: the sub-unit's organization number and address in the Norwegian business register (BRREG).

Values are compared ignoring case and whitespace.

bax_number
string
required

BankAxept merchant number. Unique across all agreements that aren't deleted.

Pattern: ^\d{6,7}$
Example:

"1234567"

organization_number
string
required

Organization number on the agreement

Example:

"123456789"

name
string
required

Name on the agreement

Example:

"Dintero Oslo"

address
object
required

Visiting address on the agreement

Response

BAX merchant agreement

A BankAxept merchant agreement registered for a store. Agreements are never updated, only deleted. The most recent agreement for a store that isn't deleted is the current one.

bax_number
string
required

BankAxept merchant number. Unique across all agreements that aren't deleted.

Pattern: ^\d{6,7}$
Example:

"1234567"

organization_number
string
required

Organization number on the agreement

Example:

"123456789"

name
string
required

Name on the agreement

Example:

"Dintero Oslo"

address
object
required

Visiting address on the agreement

id
string<uuid>
required
read-only
status
enum<string>
required
  • valid - the agreement matches the store
  • mismatch - the store no longer matches the agreement, see mismatched_fields. Create a new agreement, or change the store back so it matches.

The status is checked again when the store or its payout destination changes.

Available options:
valid,
mismatch
store_id
string
required
read-only
Example:

"T66600000-0001"

payout_destination_id
string
required
read-only

The store's payout destination when the agreement was created

created_at
string<date-time>
required
read-only
created_by
string
required
read-only
updated_at
string<date-time>
required
read-only
updated_by
string
required
read-only
mismatched_fields
enum<string>[]

Fields where the store no longer matches the agreement

Available options:
organization_number,
name,
address_line,
postal_code
deleted_at
string<date-time>
read-only

Only set in the response to a delete, together with deleted_by

deleted_by
string
read-only