Skip to main content
PUT
/
api
/
v2
/
network
/
promo-codes
/
{id}
Update promo code
curl --request PUT \
  --url 'https://{domain}/api/v2/network/promo-codes/{id}?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "string",
  "affiliate_id": 1,
  "offer_id": 1,
  "status": 1,
  "start_date": "2025-01-20"
}
'
{
  "status": "success",
  "code": 200,
  "name": "OK",
  "message": "<string>",
  "info": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.scaleo.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

api-key
string
query
required

API key passed as query parameter. User must have api_status enabled.

Path Parameters

id
integer
required

Promo code ID.

Body

application/json
code
string
affiliate_id
integer
offer_id
integer
status
integer
start_date
string<date>
end_date
string<date>
commission_plan_id
integer

Response

Updated promo code.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object