Merchant

A Merchant object represents your business and the associated configuration in Ansa.

Merchant attributes

FieldTypeDescriptionExample value
idstringUnique identifier for the merchant.2aa3d415-8256-4d0e-97a1-7cd0a09e0230
metadataobjectMetadata object containing details about the merchant
namestringThe merchant's nameansa merchant

Metadata attributes

The Merchant object has an associated metadata object that stores configuration details of your closed-loop program.

FieldTypeDescriptionExample value
appReloadConfigobjectThe App Reload object containing details about the reload options available to customers.
autoReloadConfigobjectThe Auto reload object containing details about the merchant's default auto reload settings, and allowed minimum and maximum amounts.
omsProviderstringThe order management software providersquare
paymentProcessorstringThe payment processorstripe
userReferralConfigobjectThe User referral object containing details about user referral configuration

Auto reload attributes

FieldTypeDescriptionExample value
minimumAutoReloadThresholdintegerThe minimum balance required in the customers' wallets before the auto-reload is triggered. If the user balance is below this threshold, the reload amount defined by the user will be added to their balance.1000
minimumAutoReloadAmountintegerThe lowest amount that a customer can choose to reload to their balance1000
maximumAutoReloadAmountinteger

The maximum amount of money that customers can choose to reload to their balance.

Customers cannot choose the reload amount that is greater than the reload maximum set.

1000

App reload attributes

FieldTypeDescriptionExample value
presetAmountsobject

The preset reload options shown to the client.

At most one object in the array will have isMostPopular set to true.

[  
    {  
      "id": "preset_1",  
      "amount": 1000,  
      "isMostPopular": true  
    },  
    {  
      "id": "preset_2",  
      "amount": 2500,  
      "isMostPopular": false  
    },  
    {  
      "id": "preset_3",  
      "amount": 5000,  
      "isMostPopular": false  
    }  
  ]
allowCustomAmountbooleanToggle for clients' to allow custom reload amountstrue

User referral attributes

FieldTypeDescriptionExample value
enabledbooleanIf true, user referral's are enabledtrue
redemptionEventstringEither add_balance or create_user. This determines which event triggers the user referral bonus.add_balance
redemptionThresholdAmountintegerOnly applies if redemptionEvent is add_balance. This is the minimum value required to trigger the user referral bonus100
senderCreditAmountintegerThe user referral bonus for the user who is doing the referral100
recipientCreditAmountintegerThe user referral bonus for the user who is claiming a referral100