Skip to content

Commit

Permalink
Fix http method for absolute stock update
Browse files Browse the repository at this point in the history
  • Loading branch information
imbue committed Sep 18, 2023
1 parent 33f73b6 commit e6ca77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adjustments.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (bc *Client) AdjustInventoryAbsolute(adjustment *Adjustment) error {
url := "/v3/inventory/adjustments/absolute"

reqJSON, _ := json.Marshal(adjustment)
req := bc.getAPIRequest(http.MethodPost, url, bytes.NewReader(reqJSON))
req := bc.getAPIRequest(http.MethodPut, url, bytes.NewReader(reqJSON))
_, err := bc.HTTPClient.Do(req)
if err != nil {
return err
Expand Down

0 comments on commit e6ca77e

Please sign in to comment.