| 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 | 
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
@ValidateRequest(Validator="IsAuthenticated")
open class EAccountingUpdatePricesMapping : ICompany
{
    open var ServicePriceMappings:ArrayList<ServicePriceMapping> = ArrayList<ServicePriceMapping>()
    /**
    * Company to show services for
    */
    @ApiMember(Description="Company to show services for")
    override var CompanyId:UUID? = null
}
open class ServicePriceMapping
{
    /**
    * The id
    */
    @ApiMember(Description="The id")
    open var Id:UUID? = null
    /**
    * The price id
    */
    @ApiMember(Description="The price id")
    open var PriceId:Int? = null
    /**
    * The Reference Type: StripeArticle = 1, EAccountingArticle = 2
    */
    @ApiMember(Description="The Reference Type: StripeArticle = 1, EAccountingArticle = 2")
    open var ReferenceType:String? = null
    /**
    * The external reference; Values for EAccountingArticle, StripeArticle
    */
    @ApiMember(Description="The external reference; Values for EAccountingArticle, StripeArticle")
    open var ExternalReference:String? = null
}
open class ServicePriceMappingResponse
{
    /**
    * The company id
    */
    @ApiMember(Description="The company id")
    open var CompanyId:UUID? = null
    open var Id:UUID? = null
    /**
    * The price id
    */
    @ApiMember(Description="The price id")
    open var PriceId:Int? = null
    /**
    * The external reference
    */
    @ApiMember(Description="The external reference")
    open var ExternalReference:String? = null
    /**
    * The Reference Type
    */
    @ApiMember(Description="The Reference Type")
    open var ReferenceType:String? = null
}
Kotlin EAccountingUpdatePricesMapping DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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.bookmore.com 
Accept: text/csv
Content-Type: text/csv
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/csv
Content-Length: length
{"PriceId":0,"ExternalReference":"String","ReferenceType":"String"}