Attach Digital Code

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

This endpoint allows you to 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.

Scope: products.read_write- Products Read & Write

Request Body

{"codes"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cnumber\u003e&quot;}}