Partner Provisioning

Create or update an end customer (no order)

Create an end customer, or update its requisites, WITHOUT placing an order — for pushing customer details to Servera before (or independently of) a purchase.

  • Email not in Servera → a new account is created (owned by you, verification email sent) → customer_created: true.
  • Email exists and you own it → its requisites are updated → customer_created: false.
  • Email exists but you don't own it → adopted + updated when link_if_exists: true, else 409 customer_exists_not_owned.

Naturally idempotent: the email identifies the account, so a retry updates the same customer rather than creating a duplicate. Returns the customer with customer_id (use it on later /partner/orders) and its services.

post/v1/partner/customers

Request

  • Base URL: https://developers.servera.lt
  • URL: https://developers.servera.lt/v1/partner/customers
  • Auth: HTTP bearer

Request body

link_if_existsboolean

If a customer with this email already exists in Servera but is not yet owned by this partner, adopt it and update its requisites instead of returning 409.

send_emailsboolean

Send the verification email when a NEW account is created.

Example request

{
  "customer": {
    "company_name": "UAB Pavyzdys",
    "company_number": "300000000",
    "country": "LT",
    "email": "klientas@pavyzdys.lt",
    "first_name": "Vardas",
    "language": "lt",
    "last_name": "Pavardė",
    "tax_id": "LT100000000000"
  },
  "link_if_exists": true
}

Response

Successful Response

customer_idinteger required
emailstring nullable
company_namestring nullable
namestring nullable
countrystring nullable
languagestring nullable
email_verifiedboolean nullable
created_atstring nullable
customer_createdboolean nullable

Only set by POST /partner/customers: true if a new account was created, false if an existing one was updated/reused.

Changes

No recorded changes to this operation across all 1 revision of this API.