0.5.12 • Published 6 years ago
@mojaloop/dfsp-subscription v0.5.12
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
- Code: 200
Content
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
- Code: 200
Content
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
- Code: 200
Content