AddEvent

Summary

Add event to account

Resource URL /api/v3/customer-account/{accountNumber}/event
http method POST
Content type application/json; text/json;

Input parameters

Parameter name Location Type / Model Description
accountNumber path required
Account number
request body AddEventToAccountRequest required

Responses

http status code Model Comment
OK(200) AddEventToAccountResponse Add Event To Account Response
BadRequest (400) array of ResponseMessage Request failed. Check response model for list of Errors.
Unauthorized (401) API user is unauthorized. Make sure X-Auth-Key header is sent.
InternalServerError (500) Request failed due internal error. Retry request later.

Examples

{
  "eventType": "Purchase",
  "time": "2016-02-01T00:00:00Z",
  "nfcId": "NFC884661000",
  "posId": "POS781000545",
  "posName": "Optional POS Terminal name",
  "totalTax": 0.0,
  "totalAmount": 63.0,
  "items": [
    {
      "itemId": "10",
      "itemDescription": "Boots",
      "unitCode": "777",
      "quantity": 1.0,
      "unitPrice": 50.50,
      "netAmount": 50.50,
      "taxAmount": 0.0,
      "discount": 0.0,
      "grossAmount": 50.50
    },
    {
      "itemId": "52599",
      "itemDescription": "Belt",
      "unitCode": "888",
      "quantity": 1.0,
      "unitPrice": 12.50,
      "netAmount": 12.50,
      "taxAmount": 0.0,
      "discount": 0.0,
      "grossAmount": 12.50
    }
  ]
}
{
  "eventAdded": true,
  "transactionId": "9c49c2b6-6135-41db-8e09-cf89e465b32f"
}