Attach Digital Code
POST
https://api.salla.dev/admin/v2/products/{product}/digital-codesThis endpoint allows you to add digital codes to a specific product by passing the product
as a path parameter.
:::tip[Note]
You can only attach codes to a product.
:::
Request
The Product ID. List of Product ID can be found here.
A unique alphanumeric or numerical identifiers assigned to individual products.
{
"codes": [
"232m322",
"2D3w",
"sD21S"
]
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A text or data communication generated by a system or application in response to a request.
A numerical or alphanumeric identifier used in various systems and protocols to indicate the status or outcome of a specific request.
{
"status": 201,
"success": true,
"data": {
"message": "The entity has been created successfully",
"code": 201
}
}