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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"success":"\u003cboolean\u003e","status":"\u003cnumber\u003e","error":{"code":"\u003cnumber\u003e","message":"\u003cstring\u003e"}}