---
title: "Update a PayPal Subscription"
method: PATCH
path: "/v1/billing/invoices/{invoice_id}/paypal_subscription"
tags: ["Billing"]
---

# Update a PayPal Subscription

`PATCH /v1/billing/invoices/{invoice_id}/paypal_subscription`

Used to verify that a subscription was created upon callback from PayPal SDK

## Path parameters

- `invoice_id` integer, required

## Request body

- UpdateBillingPayPalSubscriptionRequest
  - `paypal_order_id` string, required — ID of the order that is returned from PayPal SDK onApprove
  - `paypal_subscription_id` string, required — ID of the subscription that is returned from PayPal SDK onApprove

## Response `200`

OK

- SuccessResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object
    - `success` boolean — whether the request succeeded

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `405` — Invalid input
- `412` — Precondition failed
- `500` — Internal error

---

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