Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /services/prices/mappings | Update price mappings for service prices | Update price mappings for service prices |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | body | Guid? | No | Company to show services for |
ServicePriceMappings | body | List<ServicePriceMapping> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid? | No | The id |
PriceId | form | int | No | The price id |
ReferenceType | form | string | No | The Reference Type |
ExternalReference | form | string | No | The external reference; Values for e-accounting; EAccountingCustomerId, EAccountingArticle, EAccountingInvoice, EAccountingDraftInvoice |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | The company id |
Id | form | Guid | No | |
PriceId | form | int | No | The price id |
ExternalReference | form | string | No | The external reference |
ReferenceType | form | string | No | The Reference Type |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /services/prices/mappings HTTP/1.1
Host: api.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000","ServicePriceMappings":[{"Id":"00000000-0000-0000-0000-000000000000","PriceId":0,"ReferenceType":"String","ExternalReference":"String"}]}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"PriceId":0,"ExternalReference":"String","ReferenceType":"String"}