---
updatedAt: 2026-07-31T14:12:28.000Z
agentTools:
  projectIndex: https://reference.fidel.uk/llms.txt
---

# Create Offer

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fidel-api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.fidel.uk/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Fidel-Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/offers": {
      "post": {
        "summary": "Create Offer",
        "description": "",
        "operationId": "create-offer",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Fidel-Key",
            "in": "header",
            "description": "test/live API secret key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brandId",
                  "countryCode",
                  "name",
                  "startDate"
                ],
                "properties": {
                  "brandId": {
                    "type": "string",
                    "description": "Id of the Brand."
                  },
                  "countryCode": {
                    "type": "string",
                    "description": "ISO 3166-1 alpha-3 country code where the offer is active."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the offer, 2 - 50 characters long."
                  },
                  "startDate": {
                    "type": "string",
                    "description": "Starting date when offer starts qualifying transactions in the format YYYY-MM-DDThh:mm:ss.",
                    "format": "date"
                  },
                  "type": {
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name property can have one of the following two values: [amount, discount]"
                      },
                      "value": {
                        "type": "integer",
                        "description": "fixed amount of currency to be rewarded or the percentage value in case of a discount offer.",
                        "format": "int32"
                      },
                      "maxRewardAmount": {
                        "type": "integer",
                        "description": "Maximum amount to be rewarded. Available for offers where the 'type.name' is 'discount'.",
                        "default": null,
                        "format": "int32"
                      }
                    },
                    "required": [
                      "name",
                      "value"
                    ],
                    "type": "object"
                  },
                  "daysOfWeek": {
                    "type": "array",
                    "description": "Array of numbers between 0 and 6 representing the days of the week. Starting on Sunday.",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "endDate": {
                    "type": "string",
                    "description": "End date for the offer in the format YYYY-MM-DDThh:mm:ss. Can be at most 1 year from start date (default iIf not set/null)",
                    "format": "date"
                  },
                  "minTransactionAmount": {
                    "type": "number",
                    "description": "Minimum transaction amount to qualify for the offer.",
                    "default": 0,
                    "format": "double"
                  },
                  "returnPeriod": {
                    "type": "integer",
                    "description": "Number of days before a transaction qualifies for the offer.",
                    "default": null,
                    "format": "int32"
                  },
                  "schemes": {
                    "type": "array",
                    "description": "Schemes where the offer will qualify. Possible values are [visa, mastercard, amex].",
                    "items": {
                      "type": "string"
                    }
                  },
                  "activation": {
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Offer activation requires offer activation on cards for them to qualify for rewards. *NOTE: Enabling activation will disable card linking for any card not added to the offer. *",
                        "default": false
                      },
                      "qualifiedTransactionsLimit": {
                        "type": "integer",
                        "description": "The number of transactions allowed to qualify for each offer",
                        "format": "int32"
                      }
                    },
                    "required": [],
                    "type": "object"
                  },
                  "metadata": {
                    "type": "object",
                    "description": "Metadata object to be associated with the Offer.",
                    "properties": {}
                  },
                  "feeSplit": {
                    "type": "number",
                    "description": "Comission rate from total CPA"
                  },
                  "channels": {
                    "type": "array",
                    "description": "Type of offer, can be `in-store` and/or `online`",
                    "items": {
                      "type": "string"
                    }
                  },
                  "shortDescription": {
                    "type": "string",
                    "description": "Short offer description"
                  },
                  "longDescription": {
                    "type": "string",
                    "description": "Long offer description"
                  },
                  "requiresApproval": {
                    "type": "boolean",
                    "description": "As a content provider, if is an offer subject to approval "
                  },
                  "customerRecency": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "default": "false"
                      },
                      "days": {
                        "type": "number",
                        "description": "Number of days to reset cycle"
                      }
                    },
                    "description": "Offer rule for recency - new users or have not transacted per days cycle"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "items": [
                        {
                          "accepted": true,
                          "activation": {
                            "enabled": false
                          },
                          "additionalTerms": null,
                          "brandId": "f8bdb5e7-85c3-4acb-8a59-1b7e9218e412",
                          "brandName": "API Reference",
                          "brandLogoURL": null,
                          "created": "2021-06-09T13:28:25.034Z",
                          "countryCode": "GBR",
                          "currency": "GBP",
                          "daysOfWeek": [
                            0,
                            1,
                            2,
                            3,
                            4,
                            5,
                            6
                          ],
                          "endDate": null,
                          "feeSplit": 2,
                          "funded": {
                            "id": "3693ac7e-3e2b-432c-8c60-2b786453ca9b",
                            "type": "card-linking"
                          },
                          "id": "c952f00f-b86a-4145-b9be-366ea25b1566",
                          "live": false,
                          "locationsTotal": 0,
                          "minTransactionAmount": 0,
                          "maxTransactionAmount": 0,
                          "metadata": {
                            "some": "data"
                          },
                          "name": "20% Off Netflix Subscription",
                          "origin": {
                            "type": "card-linking",
                            "id": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                          },
                          "priority": 1,
                          "publisherId": "3693ac7e-3e2b-432c-8c60-2b786453ca9b",
                          "returnPeriod": null,
                          "schemes": [
                            "amex",
                            "mastercard",
                            "visa"
                          ],
                          "startDate": "2020-04-25T00:00:00",
                          "supplier": null,
                          "type": {
                            "name": "discount",
                            "value": 20,
                            "maxRewardAmount": 10
                          },
                          "updated": "2021-06-09T13:28:25.034Z"
                        }
                      ],
                      "resource": "/v1/offers",
                      "status": 201,
                      "execution": 79.577655
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accepted": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "activation": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              }
                            }
                          },
                          "additionalTerms": {},
                          "brandId": {
                            "type": "string",
                            "example": "f8bdb5e7-85c3-4acb-8a59-1b7e9218e412"
                          },
                          "brandName": {
                            "type": "string",
                            "example": "API Reference"
                          },
                          "brandLogoURL": {},
                          "created": {
                            "type": "string",
                            "example": "2021-06-09T13:28:25.034Z"
                          },
                          "countryCode": {
                            "type": "string",
                            "example": "GBR"
                          },
                          "currency": {
                            "type": "string",
                            "example": "GBP"
                          },
                          "daysOfWeek": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            }
                          },
                          "endDate": {},
                          "funded": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                              },
                              "type": {
                                "type": "string",
                                "example": "card-linking"
                              }
                            }
                          },
                          "id": {
                            "type": "string",
                            "example": "c952f00f-b86a-4145-b9be-366ea25b1566"
                          },
                          "live": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "locationsTotal": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "minTransactionAmount": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "maxTransactionAmount": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "some": {
                                "type": "string",
                                "example": "data"
                              }
                            }
                          },
                          "name": {
                            "type": "string",
                            "example": "20% Off Netflix Subscription"
                          },
                          "origin": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "example": "card-linking"
                              },
                              "id": {
                                "type": "string",
                                "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                              }
                            }
                          },
                          "priority": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "publisherId": {
                            "type": "string",
                            "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                          },
                          "returnPeriod": {},
                          "schemes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "amex"
                            }
                          },
                          "startDate": {
                            "type": "string",
                            "example": "2020-04-25T00:00:00"
                          },
                          "supplier": {},
                          "type": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "discount"
                              },
                              "value": {
                                "type": "integer",
                                "example": 20,
                                "default": 0
                              },
                              "maxRewardAmount": {
                                "type": "integer",
                                "example": 10,
                                "default": 0
                              }
                            }
                          },
                          "updated": {
                            "type": "string",
                            "example": "2021-06-09T13:28:25.034Z"
                          }
                        }
                      }
                    },
                    "resource": {
                      "type": "string",
                      "example": "/v1/offers"
                    },
                    "status": {
                      "type": "integer",
                      "example": 201,
                      "default": 0
                    },
                    "execution": {
                      "type": "number",
                      "example": 79.577655,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              },
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"resource\": \"/v1/offers\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"schema\",\n\t\t\"date\": \"2020-08-27T13:16:50.581Z\",\n\t\t\"message\": \"Invalid schema\",\n\t\t\"metadata\": [\n\t\t\t{\n\t\t\t\t\"keyword\": \"required\",\n\t\t\t\t\"dataPath\": \"\",\n\t\t\t\t\"schemaPath\": \"#/then/required\",\n\t\t\t\t\"params\": {\n\t\t\t\t\t\"missingProperty\": \"name\"\n\t\t\t\t},\n\t\t\t\t\"message\": \"should have required property 'name'\"\n\t\t\t}\n\t\t]\n\t},\n\t\"execution\": 19.55164\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "example": "/v1/offers"
                    },
                    "status": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "schema"
                        },
                        "date": {
                          "type": "string",
                          "example": "2020-08-27T13:16:50.581Z"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid schema"
                        },
                        "metadata": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "keyword": {
                                "type": "string",
                                "example": "required"
                              },
                              "dataPath": {
                                "type": "string",
                                "example": ""
                              },
                              "schemaPath": {
                                "type": "string",
                                "example": "#/then/required"
                              },
                              "params": {
                                "type": "object",
                                "properties": {
                                  "missingProperty": {
                                    "type": "string",
                                    "example": "name"
                                  }
                                }
                              },
                              "message": {
                                "type": "string",
                                "example": "should have required property 'name'"
                              }
                            }
                          }
                        }
                      }
                    },
                    "execution": {
                      "type": "number",
                      "example": 19.55164,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST https://api.fidel.uk/v1/offers \\\n  -H 'content-type: application/json' \\\n  -H 'fidel-key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63' \\\n  -d '{\n        \"countryCode\": \"GBR\",\n        \"name\":\"20% Off Netflix Subscription\",\n        \"brandId\":\"f8bdb5e7-85c3-4acb-8a59-1b7e9218e412\",\n        \"startDate\":\"2020-04-25T00:00:00\",\n        \"type\":{\n          \"name\":\"discount\",\n          \"value\":20,\n          \"maxRewardAmount\":10\n        },\n        \"metadata\": {\n          \"some\": \"data\"\n        }\n      }'",
              "name": "cURL"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```