Attach Digital Code

POST https://api.salla.dev/admin/v2/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"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

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