Mutation
mutation CreatePaymentPlan($input: CreatePaymentPlanInput!) {
createPaymentPlan(input: $input) {
clientMutationId
errors
paymentPlan {
approvalEnabled
benefits
createdAt
description
external
id
}
}
}Variables
{
"input": {
"name": "string",
"pricingType": "string",
"spaceIds": [
"id"
]
}
}Response
{
"data": {
"createPaymentPlan": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentPlan": {
"approvalEnabled": true,
"benefits": [
"string"
],
"createdAt": "value",
"description": "string",
"external": true,
"id": "id"
}
}
}
}Mutations
createPaymentPlan
Create a host-to-member Payment Plan in the current Network. The Plan is created hidden until the Host publishes it.
Required scope: host:write:network_plans
MUTATION
createPaymentPlan(input: CreatePaymentPlanInput!): CreatePaymentPlanPayloadArguments
input
required
Parameters for CreatePaymentPlan
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
paymentPlan
Mutation
mutation CreatePaymentPlan($input: CreatePaymentPlanInput!) {
createPaymentPlan(input: $input) {
clientMutationId
errors
paymentPlan {
approvalEnabled
benefits
createdAt
description
external
id
}
}
}Variables
{
"input": {
"name": "string",
"pricingType": "string",
"spaceIds": [
"id"
]
}
}Response
{
"data": {
"createPaymentPlan": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentPlan": {
"approvalEnabled": true,
"benefits": [
"string"
],
"createdAt": "value",
"description": "string",
"external": true,
"id": "id"
}
}
}
}