| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| PUT | /eaccounting/article/mappings | Update price mappings only for E-Accounting; | Update price mappings for E-Accounting prices |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ServicePriceMappings | body | List<ServicePriceMapping> | Yes | |
| CompanyId | body | Guid? | No | Company to show services for |
| 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /eaccounting/article/mappings HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ServicePriceMappings:
[
{
Id: 00000000-0000-0000-0000-000000000000,
PriceId: 0,
ReferenceType: String,
ExternalReference: String
}
],
CompanyId: 00000000-0000-0000-0000-000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
PriceId: 0,
ExternalReference: String,
ReferenceType: String
}