Start Billing Agreement Approval Process

Initiates the approval process for a new billing agreement. *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-AgentstringRequired
Accept"application/json"Required

Request

This endpoint expects an object.
merchantobjectRequired
consumerobjectOptional
Consumer details for the billing agreement
merchantReferencestringOptional<=128 characters
Merchant's unique reference for this billing agreement
agreementslist of objectsOptional

Agreement type for approval (only single agreement is supported)

Response

The consumer approved the billing agreement
tokenstring
Token identifying this billing agreement approval request
expiresdatetime
When this approval request expires
redirectCheckoutUrlstringformat: "uri"
URL where the consumer should be redirected to complete approval

Errors

401
Start Billing Agreement Approval Request Unauthorized Error
403
Start Billing Agreement Approval Request Forbidden Error
415
Start Billing Agreement Approval Request Unsupported Media Type Error
422
Start Billing Agreement Approval Request Unprocessable Entity Error