riverty logo

Docs

Create Customer

Path

POST /businesses/{businessCode}/customers

Request Parameters

businessCode
required
string
Business Code
X-Request-ID
string
The unique ID of this particular request/transaction. Subsequent requests with the same request ID might get ignored.

Request Body

application/json

currency
string
Currency used in order (encoded as 3-letter code according to ISO 4217)
required
object
Customer object
object
Contains information about a registered payment

Responses

Create Customer example

Request Example

    
        {
 "currency": "EUR",
 "customer": {
  "email": "test@test.com",
  "phone": "+37258XXX585",
  "address": {
   "careOf": "c/o Mr. Bloom",
   "street": "exampleStreet",
   "postalCode": "12345",
   "addressType": "main address",
   "countryCode": "DE",
   "postalPlace": "exampleCity",
   "streetNumber": "1234",
   "streetNumberAdditional": "d"
  },
  "language": "de",
  "lastName": "Doe",
  "birthDate": "1980-09-01T00:00:00Z",
  "firstName": "John",
  "salutation": "MR",
  "companyName": "myCompany",
  "mobilePhone": "+37258774XXX",
  "customerNumber": "cust1234",
  "customerCategory": "categoryABC",
  "identificationNumber": "700XXX651",
  "taxIdentificationNumber": "12345678L"
 },
 "paymentRegistration": {
  "id": "ACVB123455675669",
  "pspCustomerId": "string",
  "pspPaymentMethodId": "string"
 }
}
    

Response Example

    
        null