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
Path Parameters
An id that uniquely identifies the account.
9Store ID as returned in the store creation response.
255BAX merchant agreement ID
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"}].
BankAxept merchant number. Unique across all agreements that aren't deleted.
^\d{6,7}$"1234567"
Organization number on the agreement
"123456789"
Name on the agreement
"Dintero Oslo"
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.
BankAxept merchant number. Unique across all agreements that aren't deleted.
^\d{6,7}$"1234567"
Organization number on the agreement
"123456789"
Name on the agreement
"Dintero Oslo"
Visiting address on the agreement
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 "T66600000-0001"
The store's payout destination when the agreement was created
Fields where the store no longer matches the agreement
organization_number, name, address_line, postal_code Only set in the response to a delete, together with deleted_by