Adding your first Customer

Let's create a customer on your Upodi Tenant.

curl -X POST \
  https://api-front.upodi.io/customers/ \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {Base64EncodedUpodiAPIKey}' \
  -H 'Content-Type: application/json' \
  -H 'X-version: {version}' \
  -d '{
  "AccountNumber": "CU_12345678",
  "FullName": "John Doe",
  "CurrencyCode": "USD",
}'
//Step 1 - set up Upodi client. Requires API-key
UpodiClient upodi = new Upodi.SDK.UpodiClient("{apiKey}");

//Step 2 - create new customer. 
upodi.Customers.Create("CU_12345678", "John Doe", "USD");

Note: AccountNumber, FullName and CurrencyCode are required properties. For a full list of optional properties please refer to the customer object.

The response should be 201 Created and a response body:

{
    "AccountNumber": "CU_12345678",
    "FullName": "John Doe",
    "CurrencyCode": "USD",
    "AutoBill": true, //Assigned by Upodi (default)
    "ID": "{Guid}", //Globally Unique ID assgned by Upodi
    "CreatedDate": "2019-09-05T10:50:07Z",
    "ModifiedDate": "2019-09-05T10:50:07Z"
      ...
}

Save the ID - we're gonna need it later.