Body
The wallet address the agreement is for.
The network ID of the blockchain the checkout is being made on.
1
The token address used to pay at checkout.
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
The id's of the item being checked out.
[
"02cdf48d-dfbb-49ff-8439-28eb254ad43d",
"0431edda-0027-4d38-bde1-5f1ad7bb614a"
]
(Optional) the email of the user making the checkout.
"test@mail.com"
(Optional) The ID of the entity the checkout is for. Only required if the checkout is for a child entity.
"0x1234"
(Optional) External reference ID.
"123-abc"
(Optional) The id of the subscription in the external system. Will be used to link the subscription to the agreement.
"cus_01234"
(Optional) The ids of the prices in the external system. Will be used to link the items using external price ids to the agreement.
["price_01234", "price_01235", "price_01236"]
(Optional) If an open or draft invoice should be paid immediately and not wait for the bill date
false
(Optional) Whether the user is allowed to self cancel the agreement via the customer portal
true
(Optional) Whether the user is allowed to resubscribe to the agreement after it has been canceled via the customer portal
true
Response
Ok
To get agreementIDs, you can use the “get agreements” endpoint to query all the wallets that have authorized your contract and their associated items.
A list of the returned agreements based on the request