curl --request POST \
--url https://app.masivo.ai/api/storefront/v1/customers/migrate/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
{
"id": "<string>",
"events": [
{
"type": "PURCHASE",
"brand_id": "<string>",
"order": {
"purchase_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": {}
}
],
"payment_method": "CREDIT",
"channel_id": "<string>",
"store_id": "<string>",
"shipping": {
"value": 3.25,
"discounted_value": 2.25,
"redeem": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
],
"tags": {},
"metadata": {}
},
"redeem": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
],
"metadata": {}
},
"fulfilled": true,
"issued_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"channel_id": "<string>",
"store_id": "<string>"
}
]
}
]
}
'{}Migrate events from an old system to Masivo
curl --request POST \
--url https://app.masivo.ai/api/storefront/v1/customers/migrate/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customers": [
{
"id": "<string>",
"events": [
{
"type": "PURCHASE",
"brand_id": "<string>",
"order": {
"purchase_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": {}
}
],
"payment_method": "CREDIT",
"channel_id": "<string>",
"store_id": "<string>",
"shipping": {
"value": 3.25,
"discounted_value": 2.25,
"redeem": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
],
"tags": {},
"metadata": {}
},
"redeem": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
],
"metadata": {}
},
"fulfilled": true,
"issued_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"channel_id": "<string>",
"store_id": "<string>"
}
]
}
]
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Your customer unique identifier
Show child attributes
The type of the event
"PURCHASE"
The brand id of the event
Show child attributes
The id of a placed order in your system
The order total or subtotal
20.95
The order total or subtotal after discounts
10.95
Show child attributes
The product sku
The quantity of the product
The total or subtotal of the product
The total or subtotal of the product after discounts
Include your conditions event tags here
Include any additional info here
The payment method used in the order
CREDIT, DEBIT, CASH, BANK_TRANSFER, OTHER The channel unique identifier in your system
The store unique identifier in your system
The shipping information of the order
Show child attributes
The shipping cost
3.25
The shipping cost after discounts
2.25
Include your conditions event tags here
Include any additional info here
The metadata of the order
If the event was fulfilled.
The date when the event was issued
The date when the event was resolved
The channel id of the event
The store id of the event
Customer events enqueued successfully