Skip to main content
POST
Utwórz voucher

Autoryzacje

X-API-Key
string
header
wymagane

Parametry ścieżki

shopId
string
wymagane

ID sklepu (ObjectId)

Treść

application/json
productId
string
wymagane

ID produktu (ObjectId)

Przykład:

"664f1a2b3c4d5e6f7a8b9c0d"

serverId
string
wymagane

ID serwera (ObjectId)

Przykład:

"664f1a2b3c4d5e6f7a8b9c0e"

code
string

Kod vouchera (gen. automatycznie jeśli brak)

Przykład:

"ABC123"

expiresAt
string

Data wygaśnięcia (ISO 8601)

Odpowiedź

OK

success
boolean
Przykład:

true

data
object
message
string