---
title: "Migrate customer payment method"
method: POST
path: "/2026-04/paymentMethod/migrate"
---

# Migrate customer payment method

`POST /2026-04/paymentMethod/migrate`

## Request

- Base URL: `https://api.loopsubscriptions.com/admin`
- URL: `https://api.loopsubscriptions.com/admin/2026-04/paymentMethod/migrate`
- Auth: API key in header `X-Loop-Token`

This endpoint allows you to migrate customer payment method from specific payment aggregator (Stripe, Authorize.net, braintree, paypal)

## Request body

- object
  - `email` string, required
  - `firstName` string, required
  - `lastName` string, required
  - `stripe` object
    - `customerId` integer: Unique identifier of the customer in stripe.
    - `paymentMethodId` integer: Unique identifier of the payment method in Stripe.
  - `authorizeNet` object
    - `customerId` integer: Unique identifier of the customer in AuthorizeNet.
    - `paymentMethodId` integer: Unique identifier of the payment method in AuthorizeNet.
  - `braintree` object
    - `customerId` integer: unique identifier of the customer in Braintree.
    - `paymentMethodId` integer: Unique identifier of the payment method in Braintree.
  - `paypal` object
    - `paypalBillingAgreementId` string: Unique identifier of the Paypal billing agreement in Paypal.

## Response `200`

---

[API](https://skmtc.dev/loopwork/apis/loop-admin.md) - [All operations](https://skmtc.dev/loopwork/apis/loop-admin/llms.txt) - [OpenAPI document](https://skmtc.dev/loopwork/apis/loop-admin/revisions/1eaf81bcb1ea?raw)
