Cancel Billing Agreement (Alternative)
Cancel Billing Agreement (Alternative)
Alternative endpoint to cancel a billing agreement using a request body instead of path parameter.
Functionally equivalent to DELETE /v2/billing-agreements/{token}.
*Deprecated. For new integrations, see [Grants](https://afterpay.docs.buildwithfern.com/afterpay-online-developer/api-reference/reference/grants/start-grant-approval).*
Authentication
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Headers
User-Agent
Accept
Request
The request containing the billing agreement token to cancel
token
The billing agreement token to cancel
Response
Billing agreement cancelled successfully
token
Unique token identifying the agreement
type
Type of agreement
Allowed values:
status
Current status of the agreement
Allowed values:
created
Timestamp when the agreement was created
merchantReference
Merchant's reference for this agreement
cancelled
If present, indicates when the agreement was cancelled
expires
If present, indicates when the agreement's status will become EXPIRED, preventing a client from using it to create payments
events
List of events associated with this agreement
requestId
Unique identifier for the request
consumerReference
Reference identifier for the consumer
email
Masked email address of the consumer
Errors
403
Forbidden Error
404
Not Found Error