Get donor’s shareable plans
This GET
operation retrieves a list of shareable plans by donorId
. If successful, you receive an HTTP response code of 200
and a JSON
response listing shareable plans.
See HTTP response codes for other response codes. |
GET /sqs/api/shareablePlans/<donorId>
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
content-type: application/JSON
accept: application/JSON
By default, accept is XML . You must explicitly set accept in your header to application/JSON to receive a JSON response.
|
permissions: SQS_SHAREABLE_PLANS_READ_PERMISSION
JSON response
The JSON
response includes the list of shareable plans by planId
.
{
"plans":[
{
"planId":6221,
"planName":"1GB_MONTHLY",
"recurring": false,
"shareableAmount":1000,
"shareableAmountType" : "volume",
"maxRecipients" : null
}
]
}
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
shareable plan not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
Example 1. SQS response codes
|
||||
|
internal error |
||||
|
request rejected due to overload |