| 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> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid? | No | The id |
| PriceId | form | int | No | The price id |
| ReferenceType | form | string | Yes | The Reference Type: StripeArticle = 1, EAccountingArticle = 2 |
| ExternalReference | form | string | Yes | The external reference; Values for EAccountingArticle, StripeArticle |
| 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 | Yes | The external reference |
| ReferenceType | form | string | Yes | 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"}