---
title: "Bulk update providers/customers mapping"
method: POST
path: "/v1/customers/providers-bulk-update"
tags: ["Customers"]
---

# Bulk update providers/customers mapping

`POST /v1/customers/providers-bulk-update`

Bulk update providers/customers mapping, make sure to check the query response to see if all customers were updated.

## Query parameters

- `sync` union — Sync the customer with the provider after updating the mapping. If the provider is a Payment Service Provider, the payment methods of the customers will be imported.
  - boolean
  - 'true' | 'false'

## Request body

- object[]
  - `customer_id` string, required — Customer ID.
  - `provider_name` 'mollie' | 'stripe' | 'gocardless' | 'airwallex' | 'hubspot' | 'attio' | 'salesforce' | 'xero' | 'exact-online' | 'pennylane' | 'quickbooks' | 'netsuite' | 'anrok', required — Provider name.
  - `provider_id` string — Provider ID. Required if multiple instances of the same provider are connected in Hyperline.
  - `provider_account_id` string, nullable, required — ID of the customer on the provider side. Using a null value will reset the previously saved ID.

## Response `200`

- object
  - `successful` number, required — Number of record successfully updated.
  - `expected` number, required — Number of record expected to be updated.
  - `updated` string[], required — Customer IDs that were successfully updated.

---

[API](https://skmtc.net/hyperline/apis/hyperline-api.md) · [All operations](https://skmtc.net/hyperline/apis/hyperline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperline/hyperline-api/versions/19fa5f22e39b/schema)
