0.5.12 • Published 6 years ago

@mojaloop/dfsp-subscription v0.5.12

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
6 years ago

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