curl --request POST \
--url https://api.gameball.co/api/v4.0/integrations/coupons/automatic \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"customerId": "<string>",
"cartId": "<string>",
"email": "<string>",
"mobile": "<string>",
"totalPrice": 123,
"totalShipping": 123,
"lineItems": [
{
"productId": "<string>",
"quantity": 123,
"price": 123,
"sku": "<string>",
"tags": [
"<string>"
],
"category": [
"<string>"
],
"weight": 123,
"vendor": "<string>",
"collection": [
"<string>"
],
"title": "<string>",
"taxes": 123,
"discount": 123,
"extra": {}
}
],
"merchant": {
"uniqueId": "<string>",
"name": "<string>",
"branch": {
"uniqueId": "<string>",
"name": "<string>"
}
}
}
'