Skip to main content

Parameters required in the MoR model

If you work with Smart Glocal according to the Merchant of Record model, make sure you pass all the parameters required to calculate tax correctly and to send confirmations and receipts.

To make a payment, complete the standard steps.

Required parameters

The parameters listed below are not the complete set of fields you need to transmit. They represent only the required parameters necessary in the MoR model.

Check all the parameters

NameTypeDescription
itemsarrayPurchased product/service details
  idstringProduct UUID in your system
  namestringProduct name
  amount_detailsobjectAmount details
    amountintAmount
    currencystringISO 4217 currency code. Case insensitive
  quantityintQuantity of product items
  category_codestringProduct item category. Always: general
senderobjectSender details
  country_iso3stringPayer's country
  emailstringPayer's email address
  postal_codestringPayer's postal code (for the USA only)

Sample request

curl -X POST \
https://demo.smart-glocal.com/api/v2/session/create \
-H 'content-type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"amount_details": {
"amount": 10000,
"currency": "usd"
},
"items": [{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "white box",
"amount_details": {
"amount": 5000,
"currency": "rub"
},
"quantity": 1,
"category_code": "general"
},
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d475",
"name": "Black box",
"amount_details": {
"amount": 100,
"currency": "rub"
},
"quantity": 50,
"category_code": "general"
}],
"participant_details": {
"sender": {
"country_iso3": "USA",
"postal_code": "postal code",
"email": "helen.adams@hotmail.com"
}
}
}'