Start Billing Agreement Link Flow

Initiates the headless billing agreement link flow process. *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.
aliasstringRequired
Email or phone number associated with the consumer's afterpay account
requestIdstringRequired
A unique identifier for this request

Response

Link flow started successfully
tokenstring
Token identifying the billing agreement to be created
requestIdstring
The unique identifier from the request
expiresAtdatetime
When this link attempt will expire
deliveryTypeenum
How the verification code was delivered to the consumer

Errors

404
Start Billing Agreement Link Request Not Found Error
412
Start Billing Agreement Link Request Precondition Failed Error
429
Start Billing Agreement Link Request Too Many Requests Error