APIs for NetSuite Clutch Integration

Here are the APIs available for updating customer reward points in Clutch:

To add reward points to customer:

curl --location 'https://{endpoint}/merchant/updateBalance' 
--header 'authorization: Basic {Authorization code}' 
--header 'brand: SME8953' 
--header 'location: SMEECOMM' 
--header 'terminal: SMEECOMMWS' 
--data '{
 "cardNumber": "1234593316630193",
 "action": "issue",
 "amount": {
 "amount": "882",
 "balanceType": "Points"
 }
}'

To redeem reward points to customer:

curl --location 'https://{endpoint}/merchant/updateBalance' 
--header 'authorization: Basic {Authorization code}' 
--header 'brand: SME8953' 
--header 'location: SMEECOMM' 
--header 'terminal: SMEECOMMWS' 
--data '{
 "cardNumber": "1234593316630193",
 "action": "issue",
 "amount": {
 "amount": "882",
 "balanceType": "Points"
 }
}'

To add purchase activity details for customer:

curl --location 'https://{endpoint}/merchant/checkout' 
--header 'authorization: Basic {Authorization code}' 
--header 'brand: SME8953' 
--header 'location: SMEECOMM' 
--header 'terminal: SMEECOMMWS' 
--data '{
 [
  {sku: "abc",
   unitPrice: 10,
   amountPurchased: 1,
   sequenceId: 3
   }
 ]
 "returnBalances": "true",
 "returnBalanceMutations": "true",
 "cardNumber": "1234593316630193"
}'

Leave a comment

Your email address will not be published. Required fields are marked *