Skip to main content
POST
/
benefits
Create a benefit
curl --request POST \
  --url https://api.rntor.com/v1/benefits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Client-ID: <api-key>' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "partner_name": "<string>",
  "discount_value": "<string>",
  "valid_from": "2023-12-25",
  "valid_until": "2023-12-25"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "20% Off Coffee",
    "description": "Get 20% off at our partner coffee shop",
    "partner_name": "Local Coffee Co.",
    "discount_value": "20%",
    "valid_from": "2023-12-25",
    "valid_until": "2023-12-25",
    "is_active": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "request_id": "req_abc123def456",
    "timestamp": "2024-01-15T10:30:00Z"
  }
}

Authorizations

Authorization
string
header
required

Your API client secret

X-Client-ID
string
header
required

Your API client ID

Body

application/json
title
string
required
description
string
partner_name
string
discount_value
string
valid_from
string<date>
valid_until
string<date>

Response

Benefit created

data
object
meta
object