---
title: "Update Customer"
method: POST
path: "/subscription/updatecustomer"
tags: ["Subscription API"]
---

# Update Customer

`POST /subscription/updatecustomer`

Updates your internal customer ID (<code>CustomerReferenceId</code>) for a subscription. You can use this endpoint to match a unique customer ID (<code>CustomerReferenceId</code>) from your system with the automatically generated <b>Internal customer ID</b> in the Cleverbridge platform when the customer initially purchases the subscription. This way, you'll be able to easily identify any future events related to a customer with multiple subscriptions.<br /><b>Note:</b> The <code>CustomerReferenceId</code> corresponds to the <code>internalCustomer</code> field name (JSON) in the notifications you receive for some events related to one-time or recurring purchases the customer makes.<br />For XML examples and schemas, see the [Additional Examples - Update Customer](https://dev.cleverbridge.com/page/additional-examples-update-internal-customer-id)

## Headers

- `Accept` 'application/json' | 'application/xml'
- `Content-Type` 'application/json' | 'application/xml'

## Request body

- CleverbridgeBackEndRestApiSubscriptionClassesUpdateCustomerRequest
  - `CustomerReferenceId` string — Your unique ID of the customer. This value is submitted by you when the customer initially purchases the subscription and is stored by Cleverbridge. Corresponds to the <b>Internal customer ID</b> in the Cleverbridge platform. For more information, see [Customer Data](https://docs.cleverbridge.com/public/all/using-the-platform/list-of-checkout-process-parameters.htm#Customer_Data?utm_source=developer-docs&amp;utm_medium=api-reference).
  - `SubscriptionId` string, required — Unique ID of the customer's subscription, with or without an initial 'S'.

## Response `200`

OK

- CleverbridgeBackEndRestApiSubscriptionClassesUpdateCustomerResponse
  - `ResultMessage` string — Optional result or error message.

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

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