Skip to navigation

Change your contact and invoice details

Partner key only. Changes the fields you send, with the same rules as “Kontakt og faktura” (contact and invoicing) in LettBestilt Partner; an empty string or null clears a field. invoiceDeliveryMethod: EMAIL needs invoiceEmail. The legal name and organisation number cannot be changed. With expectedUpdatedAt, nothing is written if the partner changed in the meantime (409 CHANGED). Needs a key created by an owner or administrator (403 KEY_ROLE_FORBIDDEN, error.details.capability is profile.manage). Logged with the field names, never the values.

Authentication

AuthorizationBearer

The partner key (lbp_test_… or lbp_live_…), sent as Authorization: Bearer lbp_… and created in LettBestilt Partner under Partner key. It belongs to the whole partner, not to a restaurant, and only works against /api/v1/partner. Server to server only: a request with an Origin header is rejected with 403 FORBIDDEN, and the key must never be in a browser. A TEST key sees and creates only sandboxes; LIVE keys work once LettBestilt Partner is open. A suspended or archived partner, a revoked key and a restaurant key (lbs_…) here give 401 UNAUTHORIZED; an expired key gives 401 KEY_EXPIRED.

Request

This endpoint expects an object.
contactNamestring or nullOptional<=120 characters
contactEmailstring or nullOptionalformat: "email"<=160 characters
contactPhonestring or nullOptionalformat: "^[+0-9 ()-]{5,}$"<=20 characters
preferredContactMethodenumOptional
Allowed values:
invoiceDeliveryMethodenumOptional

EHF goes to the organisation number; EMAIL needs invoiceEmail.

Allowed values:
invoiceEmailstring or nullOptionalformat: "email"<=160 characters
invoiceAddressLinestring or nullOptional<=160 characters
invoicePostalCodestring or nullOptionalformat: "^\d{4}$"
4 digits.
invoiceCitystring or nullOptional<=80 characters
invoiceReferencestring or nullOptional<=60 characters
expectedUpdatedAtdatetimeOptional

updatedAt from GET. If the object has changed since, 409 CHANGED and nothing is written. Without it, nothing is checked.

Response

The details after the change.
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error