Skip to content

BulkAddItemTax incorrectly wraps data #62

@antmarot

Description

@antmarot

The body of BulkAddItemTax is incorrectly wrapped into an additional data field.

BulkAddItemTax(body, options) {
    return this.request.send(`${this.endpoint}/${this.cartId}/taxes`, 'POST', {
      data: body,
      ...(options && {options})
    })
  }

Error returned by API

{
  errors: [
    {
      status: 400,
      source: 'data',
      title: 'invalid_type',
      detail: 'Invalid type. Expected: array, given: object',
      meta: [Object]
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions