openapi: 3.2.0
info:
version: 2.6.1
title: Moneris Subscriptions API
description: 'Moneris API Platform
[](https://god.gw.postman.com/run-collection/25575461-f04750a0-88e9-4c83-8b58-a3aff15eeea8?action=collection%2Ffork&collection-url=entityId%3D25575461-f04750a0-88e9-4c83-8b58-a3aff15eeea8%26entityType%3Dcollection%26workspaceId%3D5d2a9a0f-57a7-441c-b2af-fe6315e80a08)'
termsOfService: https://www.moneris.com/en/legal/terms-of-use
contact:
url: https://api-developer.moneris.com
email: UnifiedAPI@moneris.com
license:
name: Moneris
url: https://developer.moneris.com/Agreements/Terms%20of%20Use
x-audience: external-public
servers:
- url: https://api.sb.moneris.io
description: Sandbox server (uses test data)
x-internal: false
- url: https://api.moneris.io
description: Production server (uses live data)
x-internal: false
tags:
- name: Subscriptions
description: Perform and Manage Subscriptions
paths:
/subscriptions:
parameters:
- $ref: '#/components/parameters/apiVersion'
- $ref: '#/components/parameters/correlationId'
- $ref: '#/components/parameters/merchantId'
post:
summary: Create Subscription
description: "
This operation is used to create a Subscription.
\n\n
This is the base definition for all event messages. It contains the common properties that are shared across all events.
\n \nIdentifier of the triggered\n event. Can be used\n as an idempotency key to\n detect duplicates.
\nThis is a\n list of all the types of\n events we currently\n send.
\nthe timestamp of when the event occurred (not\n necessarily the same of when it was\n delivered)
\nThe Moneris API Version used to\n populate the event\n payload.
\nUsed to\n identify API resources which\n may be required for\n future follow-on\n transactions; i.e. Refunds,\n Corrections,\n Completions, Reversals,\n etc.
\nUniform\n resource locator to retrieve\n resource\n details.
\nCorrelation Id transmitted during the\n original request.\n This is useful to correlate between\n multiple events corresponding to same\n flow.
\n\n{\n \"title\": \"webhookRequest\",\n \"required\": [\n \"eventId\",\n \"eventType\",\n \"occuredAt\",\n ],\n \"type\": \"object\",\n \"properties\": {\n \"eventId\": {\n \"type\": \"string\"\n \"description\": \"Unique Identifier for the Event.\",\n \"pattern\": \"^[A-Za-z]{2}\\d{2}[A-Za-z0-9]{26}$\",\n \"minLength\": 30,\n \"maxLength\": 30,\n \"example\": \"ev0105ARZ3NDEKTSV4RRFFQ69G5FAV\"\n },\n \"eventType\": {\n \"type\": \"string\",\n \"description\": \"This is a list of all the types of events we currently send. RECURRING_PAYMENT_CONFIRMED\",\n \"enum\": [\n \"RECURRING_PAYMENT_CONFIRMED\"\n ]\n \"example\": RECURRING_PAYMENT_CONFIRMED\n },\n \"occuredAt\": {\n \"type\": \"string\",\n \"description\": \"Date & Time at which the event has occurred.\",\n \"format\": \"date-time\",\n \"example\": 2025-02-17T18:00:00Z\n },\n \"apiVersion\": {\n \"type\": \"string\",\n \"description\": \"The Moneris API Version used to populate the event payload.\",\n \"nullable\": true,\n \"example\": 2024-09-17\n },\n \"objectId\": {\n \"type\": \"string\",\n \"description\": \"Used to identify API resources which may be required for future follow-on transactions; i.e. Refunds, Corrections, Completions, Reversals, etc.\",\n \"nullable\": true,\n \"example\": pi0105ARZ3NDEKTSV4RRFFQ69G5FAV\n },\n \"href\": {\n \"type\": \"string\",\n \"description\": \"Uniform resource locator to retrieve resource details\",\n \"format\": \"uri-reference\",\n \"nullable\": true,\n \"example\": /payments/pi0105ARZ3NDEKTSV4RRFFQ69G5FAV\n },\n \"correlationId\": {\n \"type\": \"string\",\n \"description\": \"Correlation Id transmitted during the original request.\",\n \"nullable\": true,\n \"example\": \"f0d4c76f-f129-4b91-92a3-9a120829bbe5\",\n },\n \"data\": {\n \"type\": \"object\",\n \"description\": \"Full representation of the resource that triggered the event. For Payments, it will be the Payment object\",\n \"nullable\": true\n }\n}\n\n
\n
Webhook event processed successfully
\n \n\n
An error has occured while processing webhook event
\n \n