Light Mode
Attach Digital Code
POST
/products/{product}/digital-codesLast modified: 2 months ago
This 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
Path Params
product
integer
required
The Product ID. List of Product ID can be found here.
Body Params application/json
codes
array[string]
required
A unique alphanumeric or numerical identifiers assigned to individual products.
Example
{
"codes": [
"232m322",
"2D3w",
"sD21S"
]
}
Request samples
Responses
Attached Successfully(201)
Not Found(404)
Error Validation(422)
Attached Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"message": "The entity has been created successfully",
"code": 201
}
}
Last modified: 2 months ago