PUT api/Customer/{id}/subscription
Updates user subscription
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The id of the customer |
string |
Required |
Body Parameters
Subscription to update
SubscriptionName | Description | Type | Additional information |
---|---|---|---|
UserID | string |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
Status | string |
None. |
|
Memo | string |
None. |
|
Plan | Plan |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserID": "sample string 1", "StartDate": "2025-09-23T20:49:18.7396642+00:00", "EndDate": "2025-09-23T20:49:18.7396642+00:00", "Status": "sample string 3", "Memo": "sample string 4", "Plan": { "BundleID": 1, "PlanName": "sample string 2", "Interval": "Hour", "IntervalCount": 3, "Currency": "sample string 4", "Amount": 5.0, "ExternalIdentifier": "sample string 6", "ExternalIdentifier2": "sample string 7" } }
application/xml, text/xml
Sample:
<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yummy.Portal.Models"> <EndDate>2025-09-23T20:49:18.7396642+00:00</EndDate> <Memo>sample string 4</Memo> <Plan> <Amount>5</Amount> <BundleID>1</BundleID> <Currency>sample string 4</Currency> <ExternalIdentifier>sample string 6</ExternalIdentifier> <ExternalIdentifier2>sample string 7</ExternalIdentifier2> <Interval>Hour</Interval> <IntervalCount>3</IntervalCount> <PlanName>sample string 2</PlanName> </Plan> <StartDate>2025-09-23T20:49:18.7396642+00:00</StartDate> <Status>sample string 3</Status> <UserID>sample string 1</UserID> </Subscription>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Http Status Code
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |