POST
/
customers
/
migrate
/
transactions
curl --request POST \
  --url https://app.masivo.ai/api/storefront/v1/customers/migrate/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customers": [
    {
      "id": "<string>",
      "transactions": [
        {
          "brand_id": "<string>",
          "reward_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "details": "<string>",
          "type": "ACCUMULATION",
          "issued_at": "2023-11-07T05:31:56Z",
          "resolved_at": "2023-11-07T05:31:56Z",
          "amount": 123,
          "cost": 123,
          "store_id": "<string>",
          "channel_id": "<string>",
          "event": {
            "type": "PURCHASE",
            "order": {
              "purchase_id": "<string>",
              "channel_id": "<string>",
              "store_id": "<string>",
              "value": 20.95,
              "discounted_value": 10.95,
              "products": [
                {
                  "sku": "<string>",
                  "amount": 123,
                  "value": 123,
                  "discounted_value": 123,
                  "redeem": [
                    {
                      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "amount": 1
                    }
                  ],
                  "tags": {},
                  "metadata": {}
                }
              ],
              "shipping": {
                "value": 3.25,
                "discounted_value": 2.25,
                "redeem": [
                  {
                    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                    "amount": 1
                  }
                ],
                "tags": {},
                "metadata": {}
              },
              "payment_method": "CREDIT",
              "redeem": [
                {
                  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "amount": 1
                }
              ],
              "metadata": {}
            }
          },
          "funded_by": "<string>"
        }
      ]
    }
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customers
object[]
required

Response

201

Customer transactions enqueued successfully