Update BAX merchant agreement
Replace the values of a BankAxept (BAX) merchant agreement, including its bax_number. The agreement keeps its id. A deleted agreement can’t be updated.
The values must match the store, see the request body. After a successful update the agreement’s status is valid. If it is the store’s current agreement, the new values are synced to the terminal system.
The request fails with 400 when:
- the store has no payout destination
- the store’s payout destination is not found
- the agreement doesn’t match the store. The response lists the fields that don’t match in
error.errors, with theexpectedandactualvalue of each, see the request body. - the
bax_numberis already used by another agreement
scopes:
- admin:dintero
Authorizations
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
Body
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 and update, organization_number, name, address.address_line and address.postal_code must match the registered data for the store:
name: the store'sstore_name. If the store has none, the organization'strade_name, then itsname.main_unitstore: the payout destination's organization number and address.sub_unitstore: the sub-unit's organization number and address in the Norwegian business register (BRREG).
Values are compared ignoring case and whitespace.
If a value doesn't match, the request fails with 400. The response lists the fields that don't match in error.errors. Each item has the field, the expected value from the store and the actual value from the request, for example [{"field": "name", "expected": "Dintero Oslo", "actual": "Dintero"}].
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.
valid- the agreement matches the storemismatch- the store no longer matches the agreement, seemismatched_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.
valid, mismatch