Chuyển đến nội dung chính
POST
https://api-gw.verolabs.co/api/v1
/
referral
/
refcode
Tạo hoặc cập nhật mã giới thiệu và tỷ lệ rebate
curl --request POST \
  --url https://api-gw.verolabs.co/api/v1/referral/refcode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refCode": "<string>",
  "rebateRate": 0.5
}
'
{
  "refCode": "<string>",
  "ownerAccountId": "<string>",
  "rebateRate": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.oms.verolabs.co/llms.txt

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

Ủy quyền

Authorization
string
header
bắt buộc

JWT returned by Ory /sessions/whoami?tokenize_as=jwt_template_1 and stored by ApiClient.

Nội dung

application/json
refCode
string
bắt buộc
rebateRate
number
bắt buộc
Phạm vi bắt buộc: 0 <= x <= 1

Phản hồi

Updated referral code information.

refCode
string
ownerAccountId
string
rebateRate
number

0-1 ratio.

createdAt
string
updatedAt
string