Attach Digital Code

POST {{baseUrl}}/products/:product/digital-codes

You can add digital codes to a specific codes product by providing the ID of the product you want to attach these codes to it in the product path parameter.

💡 Note

You can attach codes to codes product only.

Request Body

{"codes"=>["232m322", "2D3w", "sD21S"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"status":201,"success":true,"data":{"message":"The entity has been created successfully","code":201}}