The product to edit is identified by the
id field in the request body, not by
the {id} segment in the URL path.Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-HereRequest Body
Unique identifier of the digital product to edit. This is read from the request
body.
Digital product name.
Digital product description.
Digital product price amount.
Crossed-out price displayed as the original price.
URL where the customer will be redirected after completing payment.
Additional notes for the digital product.
Product expiration date in ISO 8601 format.
Response
Successful ResponseMain Structure (Root)
Status code from API.
Status message that describes the status code.
The updated digital product data.
data Structure (Object)
Unique identifier of the digital product.
Public URL of the updated digital product.
Errors
When the request body fails validation, this endpoint still responds with HTTP
200 but sets messages to failed and returns the validator errors in
data: { "statusCode": 200, "messages": "failed", "data": { ... } }.Returned when the product does not belong to the authenticated account:
{ "statusCode": 401, "messages": "Unauthorized" }.Returned when the product does not exist:
{ "statusCode": 404, "messages": "Product not found" }.