Create a Note or Call Log

Creates a note object with a note or call type under a specified customer.

Examples

curl -X POST "https://api.chartmogul.com/v1/customer_notes" \
     -u YOUR_API_KEY: \
     -H "Content-Type: application/json" \
     -d '{
            "customer_uuid":"cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
            "type": "note",
            "author_email": "[email protected]",
            "text": "They are a world leader in specialized software.\n",
            "created_at":"2023-11-01T00:00:00Z"
        }'
ChartMogul::Note.create!(
  customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  type: "note",
  author_email: "[email protected]",
  text: "They are a world leader in specialized software.\n",
  created_at: Time.utc(2023, 11, 01),
)
ChartMogul.CustomerNote.create(config, {
  customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  type: "note",
  author_email: "[email protected]",
  text: "They are a world leader in specialized software.\n",
  created_at: "2023-11-01T00:00:00Z",
});
ChartMogul\CustomerNote::create([
  "customer_uuid" => "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  "type" => "note",
  "author_email" => "[email protected]",
  "text" => "They are a world leader in specialized software.\n",
  "created_at" => "2023-11-01T00:00:00Z"
]);
api.CreateNote(&cm.NewNote{
  CustomerUUID: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  Type:         "note",
  Text:         "They are a world leader in specialized software.\n",
  Author:       "[email protected]",
  CreatedAt:    "2023-11-01T00:00:00Z"
})
chartmogul.CustomerNote.create(
  config,
  data={
    "customer_uuid": "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
    "type": "note",
    "author_email": "[email protected]",
    "text": "They are a world leader in specialized software.\n",
    "created_at": "2023-11-01T00:00:00Z",
  },
)

Result Format

{
  "uuid": "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
  "customer_uuid": "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  "type": "note",
  "text": "They are a world leader in specialized software.\n",
  "call_duration": 0,
  "author": "Adam ([email protected])",
  "created_at": "2023-11-01T00:00:00.000Z",
  "updated_at": "2023-12-21T10:53:50.082Z"
}
#<ChartMogul::Note:0x00007fb757b74038 
  @customer_uuid="cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0", 
  @type="note", 
  @text="They are a world leader in specialized software.\n", 
  @created_at="2023-11-01T00:00:00.000Z", 
  @author="Adam ([email protected])", 
  @call_duration=0, 
  @updated_at="2023-12-21T10:53:50.082Z", 
  @uuid="note_39351ba6-dea0-11ee-ac96-37b2b3de29af"
>
{
  uuid: "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
  customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  type: "note",
  text: "They are a world leader in specialized software.\n",
  call_duration: 0,
  author: "Adam ([email protected])",
  created_at: "2023-11-01T00:00:00.000Z",
  updated_at: "2023-12-21T10:53:50.082Z"
}
class ChartMogul\CustomerNote (8) {
  protected $uuid => string(41) "note_39351ba6-dea0-11ee-ac96-37b2b3de29af"
  protected $customer_uuid => string(40) "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0"
  protected $type => string(4) "note"
  protected $text => string(49) "They are a world leader in specialized software.\n"
  protected $call_duration => int(1)
  protected $author => string(23) "Adam ([email protected])"
  protected $created_at => string(24) "2023-11-01T00:00:00.000Z"
  protected $updated_at => string(24) "2023-12-21T10:53:50.082Z"
}
(*chartmogul.Note)(0x17000568000)({
  UUID: (string) (len=41) "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
  CustomerUUID: (string) (len=40) "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  Type: (string) (len=40) "note",
  Text: (string) (len=49) "They are a world leader in specialized software.\n",
  CallDuration (uint32) 0
  Author:  (string) (len=23) "Adam ([email protected])",
  CreatedAt: (string) (len=24) "2023-11-01T00:00:00.000Z",
  UpdatedAt: (string) (len=24) "2023-12-21T10:53:50.082Z"
})
<Note{
  uuid: "note_39351ba6-dea0-11ee-ac96-37b2b3de29af",
  customer_uuid: "cus_52eb54c2-dea0-11ed-ac96-ef735d89fca0",
  type: "note",
  text: "They are a world leader in specialized software.\n",
  call_duration: 0,
  author: "Adam ([email protected])",
  created_at: "2023-11-01T00:00:00.000Z",
  updated_at: "2023-12-21T10:53:50.082Z"
}>
Language