Replace Subscription Primary Payment Method
curl --request PUT \
  --url https://api.revolv3.com/api/Subscriptions/{subscriptionId}/payment-method \
  --header 'Content-Type: application/json-patch+json' \
  --data '{
  "existingPaymentMethod": null,
  "paymentMethod": {
    "paymentMethodTypes": [
      1
    ],
    "taxAmount": 2.57,
    "originalNetworkTransactionId": "test-transaction-id",
    "billingAddress": {
      "addressId": null,
      "addressLine1": "100 Main Street",
      "addressLine2": null,
      "city": "Irvine",
      "state": "CA",
      "postalCode": "92602",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    },
    "creditCard": {
      "paymentAccountNumber": "4111111111111111",
      "expirationDate": "1025",
      "securityCode": null,
      "networkToken": null,
      "processingMethodType": 5
    },
    "ach": null,
    "googlePay": null,
    "applePay": null,
    "merchantPaymentMethodRefId": null,
    "billingFirstName": "John",
    "billingLastName": "Doe",
    "billingFullName": null
  }
}'
{
  "subscriptionId": 1,
  "customerId": 1,
  "merchantSubscriptionRefId": "1234-5678-9101",
  "networkTransactionId": null,
  "billingIntervalType": "Months",
  "billingIntervalCount": 1,
  "subscriptionStatusType": "Current",
  "subscriptionCancelType": "Immediate",
  "initialBillDate": "08-Sep-25",
  "nextBillDate": "08-Oct-25",
  "taxAddress": null,
  "paymentMethodIds": [
    1,
    2
  ],
  "cancelledAt": null,
  "billingPlans": [
    {
      "subscriptionBillingPlanId": 1,
      "subscriptionId": 0,
      "name": "Billing Plan 1",
      "value": 10.99,
      "startDate": "08-Sep-25",
      "cyclesRemaining": -1,
      "cycleCount": 0,
      "valueType": "Standard"
    },
    {
      "subscriptionBillingPlanId": 2,
      "subscriptionId": 0,
      "name": "Billing Plan 2",
      "value": 14.99,
      "startDate": "08-Oct-25",
      "cyclesRemaining": 12,
      "cycleCount": 0,
      "valueType": "Standard"
    }
  ],
  "message": null,
  "paymentProcessor": null,
  "processorMerchantId": null,
  "processorRawResponse": null,
  "currency": null
}

Path Parameters

subscriptionId
integer
required

Body

Response

OK

The response is of type object.