Create buyer

POST
/api/v2/buyers
lts

Endpoint is responsible for creating a buyer without subscription. Can be used when the buyer is missed not in the system.

Header parameters
Attribute
Requirement
Description
x-public-key
mandatory
a public key that identifies the merchant account (there can be several for one merchant)
x-buyer-ip
mandatory
is responsible for information about the buyer's IP address
x-date
mandatory
is responsible for the date and time of sending the request
x-token
mandatory
generated on the merchant side
x-source
mandatory
identifier of the type of service that is the initiator of the request
x-id
mandatory
service identifier from which the current request is made
Request parameters
Attribute
Type
Requirement
Description
Standard
merchantCode
string
mandatory
Unique merchant code
-
customerId
string
mandatory
The unique identifier of the customer to which the newly created buyer will be tied
uuid
email
string
mandatory
Buyer email
-
country
string
mandatory
Country code
ISO 3166-1 alpha-2
zip
string
OPTIONAL
Index
-
state
string
OPTIONAL
Region/state
-
locale
string
OPTIONAL
Localization language
ISO 639 set 1
Response parameters
Attribute
Type
Description
data
object
Contains basic information about buyer
meta
object
Provides metadata about the response
{
  "data": {
    "id": "028afc6c-34d4-4925-8b08-4ea88a94a878"
  },
  "meta": {
    "type": "entity"
  }
}