curl --request POST \
--url https://api.confiopagos.com/v1/stores/{store}/subscription-plans/assignments/{assignment}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Customer requested cancellation"
}
'{}Cancel a subscription assignment. This will immediately stop billing and mark the subscription as canceled.
curl --request POST \
--url https://api.confiopagos.com/v1/stores/{store}/subscription-plans/assignments/{assignment}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Customer requested cancellation"
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"01G65Z755AFWAKHE12NY0CQ9FH"
"01JNRVWWHH68E76V3TMFFT6GHJ"
Optional reason for cancellation
"Customer requested cancellation"
Successfully canceled plan assignment.
The response is of type object.