# Import activity bonus

Method that allows a third-party to manually import activities and update bonus amount for a member. 

Available activites that qualifies for bounus points can be found using the /bonus/rules endpoint.

The request and response can be customer specific and the example below shows only a common type of request body.

Endpoint: POST /loyalty/bonus/import
Version: 4.3.2
Security: api_key

## Request fields (application/json):

  - `externalId` (string)
    The external identifer, most common is the members mobile phone number.
    Example: "+4712345678"

  - `activity` (string)
    The id of the activity that the customer has performed.
    Example: "20"

  - `activityDate` (string)
    When whas the activity done.
    Example: "2022-07-01"

  - `activityValue` (integer)
    How many points is awarded for the activity.
    Example: 10

## Response 200 fields (application/json):

  - `status` (string)
    Response status code
    Example: "1"

  - `statusText` (string)
    Response status for the bonus import in text
    Example: "OK"

  - `points` (string)
    Campaign type identificator
    Example: "38"

  - `totaltPoints` (string)
    Total bonus amount
    Example: "38"

  - `activityPoints` (string)
    Points rewarded by purchasing a product included in this campaign. Depending on rewardType, this value is not always set.
    Example: "8"


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields
