Update subscription product
PATCH
/v1/subscriptions/products/{id}Updates a single product defined by the Merchant in the service. Only one product can be updated per request. The product description should be complaint with the scheme shown below. You will receive all the data for one product in return.
Request
Path Params
id
string <uuid>
required
An unique identifier
Example:
3fa85f64-5717-4562-b3fc-2c963f66afa6
Header Params
request-id
string
required
A unique identifier generated by requesting client
>= 38 characters<= 1024 characters
Example:
|us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv.
Match pattern:
^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$
Body Params application/json
url
string
required
Match pattern:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
Example
{
"url": "string"
}
Request samples
Responses
OK(200)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
url
string
optional
Match pattern:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
id
string <uuid>
required
merchantId
string
required
shopId
string
required
terminalId
string
required
name
string
required
>= 1 characters<= 125 characters
description
string
required
>= 1 characters<= 500 characters
type
string
required
Allowed values:
productservice
status
string
required
Allowed values:
verifiedblockedpending
createdAt
required
One of
updatedAt
required
One of
deletedAt
string
optional
Match pattern:
d{4}-[01]d-[0-3]dT[0-2]d:[0-5]d:[0-5]d.d+Z?
Example
{
"url": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"merchantId": "string",
"shopId": "string",
"terminalId": "string",
"name": "string",
"description": "string",
"type": "product",
"status": "verified",
"createdAt": "2019-08-24",
"updatedAt": "2019-08-24",
"deletedAt": "string"
}
Modified at 14 days ago