---
updatedAt: 2026-08-12T06:51:30.000Z
agentTools:
  projectIndex: https://developer.loopwork.co/llms.txt
---

# Change payment method

This endpoint allows you to change the payment method linked to the subscription for future billing attempts.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Storefront API",
    "version": "2023-10"
  },
  "servers": [
    {
      "url": "https://api.loopsubscriptions.com/storefront"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/2026-04/subscription/{subscriptionId}/paymentMethod": {
      "put": {
        "responses": {
          "200": {
            "description": "Payment method has been changed in the subscription",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "message": "Payment method edited on contract successfully",
                      "data": {
                        "id": 131,
                        "type": "CustomerCreditCard",
                        "status": "expiring_soon",
                        "card": {
                          "brand": "visa",
                          "expiryYear": 23,
                          "expiryMonth": 12,
                          "lastDigits": "3184"
                        },
                        "payPal": null,
                        "subscription": {
                          "id": 2130
                        }
                      },
                      "code": "SUCCESS",
                      "pageInfo": null
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "message": {
                      "type": "string",
                      "example": "Payment method edited on contract successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 131,
                          "default": 0
                        },
                        "type": {
                          "type": "string",
                          "example": "CustomerCreditCard"
                        },
                        "status": {
                          "type": "string",
                          "example": "expiring_soon"
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string",
                              "example": "visa"
                            },
                            "expiryYear": {
                              "type": "integer",
                              "example": 23,
                              "default": 0
                            },
                            "expiryMonth": {
                              "type": "integer",
                              "example": 12,
                              "default": 0
                            },
                            "lastDigits": {
                              "type": "string",
                              "example": "3184"
                            }
                          }
                        },
                        "payPal": {},
                        "subscription": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 2130,
                              "default": 0
                            }
                          }
                        }
                      }
                    },
                    "code": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "pageInfo": {}
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true,
            "description": "The unique identifier for a subscription in Loop."
          }
        ],
        "summary": "Change payment method",
        "operationId": "put_2026-04-subscription-subscriptionid-paymentmethod",
        "description": "This endpoint allows you to change the payment method linked to the subscription for future billing attempts.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paymentMethodId": {
                    "type": "string",
                    "description": "The unique identifier for the payment method in Loop."
                  }
                },
                "required": [
                  "paymentMethodId"
                ]
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```