Update a price
The id of the price.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
This class presents the Price Command Request Data from the client.
The id of the package.
The id of the subscription type
The code of the price.
The name of the price.
The amount of the price.
The currency code of the price. The currency must be a valid ISO 4217 currency code.
The checkout link of the price. When the user clicks on this link, they will be redirected to the checkout page.
The description of the price.
The tags of the price.
The order of the price. This value is used to sort into the list of prices. By default, the value is 1. If you want to change the order of the price, you can set this value to a higher number.
PUT /api/v1/prices/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 188
{
"packageId": "text",
"subscriptionTypeId": "text",
"code": "text",
"name": "text",
"amount": 1,
"currency": "text",
"checkoutLink": "https://example.com",
"description": "text",
"tags": "text",
"zOrder": 1
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"code": "Code",
"name": "Name",
"amount": 10,
"currency": "USD",
"description": "Description",
"checkoutLink": "CheckoutLink",
"tags": "Tags",
"packageName": "PackageName",
"packageId": "PackageId",
"subscriptionName": "SubscriptionName",
"subscriptionTypeId": "SubscriptionTypeId",
"zOrder": 1
},
"errors": []
}
Last updated
Was this helpful?