You can add a buyer by calling the
POST /buyers API. The call accepts
external_identifier (for example the user's email, username, or a
database ID) and an optional
display_name which will be shown in the admin
There is no need create a buyer first before creating a transaction. A buyer can be automatically created and associated when a transaction is made.
A buyer can be created without any
that case the buyer only serves as a way to link stored payments methods to a
user ID. In this case you will need to keep track of the buyer's
ID in your
own database to link it back to a user record.
The API returns a new buyer resource.