Object

Overview of the Presentation APIs response object.

The table below lists the response objects received for the Presentation APIs.

Subscription APIsObject
Create PresentationCreate Presentation Response Object
Get PresentationPresentation Response Object
Get Presentation by Subscription IdGet Presentation by Subscription Id Response Object

Create Presentation

Shown below is a sample response returned through our Create Presentation API.

{
  "subscription_id": "v1-sub-4405071524-aa-qlAtAf",
  "presentation_id": "v1-pre-4405071524-aa-qlAtAf",
  "due_date": "2022-09-21T17:32:28Z",
  "amount": {
    "value": 100,
    "currency": "INR"
  },
  "merchant_presentation_reference": "1234567890"
}

The table below lists the various parameters returned in the Create Presentation API response. This is part of the Create Presentation response object.

ParameterTypeDescription
subscription_idstringUnique identifier for the subscription plan in the plural database.
  • Maximum length: 50 characters.
Example: v1-sub-4405071524-aa-qlAtAf
presentation_idstringA Unique identifier for the presentation provided by the Plural.
  • Maximum length: 50 characters.
Example: v1-pre-4405071524-aa-qlAtAf
due_datestringThe ISO 8601 UTC Timestamp is the date & time at which the payment is due.

Example: 2022-09-21T17:32:28Z
amountobjectAn object that contains the amount details.

Learn more about the amount child object.
merchant_presentation_referencestringUnique identifier of the merchant presentation reference entered while creating a presentation.
  • Minimum length: 1 character.
  • Maximum length: 50 characters.
Example: 1234567890

amount [Child Object]

The table below lists the various parameters in the amount child object. This is part of the Create Presentation response object.

ParameterTypeDescription
valueintegerTransaction amount is Paisa.
  • Minimum value: 100 (₹1)
  • Maximum value: 100000000 (₹10 lakh).
Example: 1000
currencyStringType of currency.

Example: INR

Get Presentation

Shown below is a sample response returned through our Get Presentation API.

{
  "subscription_id": "v1-sub-4405071524-aa-qlAtAf",
  "presentation_id": "v1-pre-4405071524-aa-qlAtAf",
  "due_date": "2022-09-21T17:32:28Z",
  "amount": {
    "value": 100,
    "currency": "INR"
  },
  "merchant_presentation_reference": "1234567890"
}

The table below lists the various parameters returned in the Get Presentation API response. This is part of the Get Presentation response object.

ParameterTypeDescription
subscription_idstringUnique identifier for the subscription plan in the plural database.
  • Maximum length: 50 characters.
Example: v1-sub-4405071524-aa-qlAtAf
presentation_idstringA Unique identifier for the presentation provided by the Plural.
  • Maximum length: 50 characters.
Example: v1-pre-4405071524-aa-qlAtAf
due_datestring The ISO 8601 UTC timestamp indicating the date and time when the payment is due.

Example: 2022-09-21T17:32:28Z
amountobjectAn object that contains the amount details.

Learn more about the amount child object.
merchant_presentation_referencestringUnique identifier of the merchant presentation reference entered while creating a presentation.
  • Minimum length: 1 character.
  • Maximum length: 50 characters.
Example: 1234567890

amount [Child Object]

The table below lists the various parameters in the amount child object. This is part of the Get Presentation response object.

ParameterTypeDescription
valueintegerTransaction amount is Paisa.
  • Minimum value: 100 (₹1)
  • Maximum value: 100000000 (₹10 lakh).
Example: 1000
currencyStringType of currency.

Example: INR

Get Presentation by Subscription Id

Shown below is a sample response returned through our Get Presentation by Subscription Id API.

{
  "links": {
    "first": {
      "href": "https://api.pluralpay.in/api/v1/public /{resource}/?size=10&page=0&sort=id,asc"
    },
    "self": {
      "href": "https://api.pluralpay.in/api/v1/public /{resource}/?size=10&page=0&sort=id,asc"
    },
    "next": {
      "href": "https://api.pluralpay.in/api/v1/public /{resource}/?size=10&page=0&sort=id,asc"
    },
    "last": {
      "href": "https://api.pluralpay.in/api/v1/public /{resource}/?size=10&page=0&sort=id,asc"
    }
  },
  "page": {
    "size": 10,
    "total_elements": 50,
    "total_pages": 5,
    "number": 1
  },
  "presentations": [
    {
      "subscription_id": "v1-sub-4405071524-aa-qlAtAf",
      "presentation_id": "v1-pre-4405071524-aa-qlAtAf",
      "due_date": "2022-09-21T17:32:28Z",
      "amount": {
        "value": 100,
        "currency": "INR"
      },
      "merchant_presentation_reference": "1234567890"
    }
  ]
}

The table below lists the various parameters returned in the Get Presentation by Subscription Id API response. This is part of the Get Presentation by Subscription Id object.

ParameterTypeDescription
linksObjectAn object that contains pagination links for navigation.

Learn more about the links child object.
pageobjectAn object that contains the page information.

Learn more about the page child object.
presentationsArray of ObjectsAn array of object that contain presentations details.

Learn more about the presentations child object.

links [Child object]

The table below lists the various parameters in the links child object. This is part of the Get Presentation by Subscription Id response object.

ParameterTypeDescription
firstobjectAn object that contains the URL information of the first page.

Learn more about the first child object.
selfobjectAn object that contains the URL information of the current page.

Learn more about the self child object.
nextobjectAn object that contains the URL information of the current page.

Learn more about the next child object.
lastobjectAn object that contains the URL information of the current page.

Learn more about the last child object.

First [Child Object]

The table below lists the various parameters in the first child object. This is part of the links object.

ParameterTypeDescription
hrefstringURL of the first page.

Example: https://api.pluralpay.in/api/v1/public/subscriptions/{subscription_id}/presentations?size=10&page=0&sort=id,asc

Self [Child Object]

The table below lists the various parameters in the self child object. This is part of the links object.

ParameterTypeDescription
hrefstringURL of the current page.

Example: "https://api.pluralpay.in/api/v1/public/subscriptions/{subscription_id}/presentations?size=10&page=0&sort=id,asc"

Next [Child Object]

The table below lists the various parameters in the next child object. This is part of the links object.

ParameterTypeDescription
hrefstringURL of the next page.

Example: "https://api.pluralpay.in/api/v1/public/subscriptions/{subscription_id}/presentations?size=10&page=0&sort=id,asc"

Last [Child Object]

The table below lists the various parameters in the last child object. This is part of the links object.

ParameterTypeDescription
hrefstringURL of the last page.

Example: "https://api.pluralpay.in/api/v1/public/subscriptions/{subscription_id}/presentations?size=10&page=0&sort=id,asc"

Page [Child Object]

The table below lists the various parameters in the page child object. This is part of the Get All Plan response object.

ParameterTypeDescription
sizeIntegerNumber of items per page.

Example: 10
total_elementsIntegerTotal number of elements.

Example: 50
total_pagesIntegerTotal number of pages.

Example: 5
numberIntegerPage number.

Example: 1

Presentations [Child Object]

The table below lists the various parameters in the presentations child object. This is part of the Get Presentation by Subscription Id response object

ParameterTypeDescription
subscription_idstringUnique identifier for the subscription plan in the plural database.
  • Maximum length: 50 characters.
Example: `v1-sub-4405071524-aa-qlAtAf
presentation_idstringA Unique identifier for the presentation provided by the Plural.
  • Maximum length: 50 characters.
Example: v1-pre-4405071524-aa-qlAtAf
due_datestringThe ISO 8601 UTC timestamp indicating the date and time when the payment is due.

Example: 2022-09-21T17:32:28Z
amountobjectAn object that contains the amount details.

Learn more about the amount child object.
merchant_presentation_referencestringUnique identifier of the merchant presentation reference entered while creating a presentation.
  • Minimum length: 1 character.
  • Maximum length: 50 characters.
Example: 1234567890

Amount [Child Object]

The table below lists the various parameters in the amount child object. This is part of the presentations object.

ParameterTypeDescription
valueintegerTransaction amount is Paisa.
  • Minimum value: 100 (₹1)
  • Maximum value: 100000000 (₹10 lakh).
Example: 1000
currencyStringType of currency.

Example: INR