@mojaloop/dfsp-subscription

0.5.12 • Public • Published

Subscription service API


This service is used for mapping between the users and phone numbers. It is supporting the following private API calls:

Add subscription

  • URL

    /rpc/subscription/subscription/add

  • Method

    POST

  • Data Params

    Required

    • actorId [string] - Actor id
    • phoneNumber [string] - Phone number
  • Success Response

    • Code: 200
      Content
      • subscriptionId [number] - Subscription id
      • actorId [string] - Actor id
      • phoneNumber [string] - Phone number

Get subscription

  • URL

    /rpc/subscription/subscription/get

  • Method

    POST

  • Data Params

    Optional

    • actorId [string] - Actor id
    • phoneNumber [string] - Phone number
  • Success Response

    • Code: 200
      Content
      • actorId [string] - Actor id
      • phoneNumber [string] - Phone number

Remove subscription

  • URL

    /rpc/subscription/subscription/remove

  • Method

    POST

  • Data Params

    Optional

    • subscriptionId [number] - Subscription id
  • Success Response

    • Code: 200
      Content
      • subscriptionId [number] - Subscription id

Dependencies (13)

Dev Dependencies (4)

Package Sidebar

Install

npm i @mojaloop/dfsp-subscription

Weekly Downloads

1

Version

0.5.12

License

Apache-2.0

Last publish

Collaborators

  • mojaloopci
  • pedrosousabarreto
  • mdebarros