When creating a sales order line via the API, sales price agreements were not applied

When creating a sales order line via the API, sales price agreements were not applied.