---
updatedAt: 2026-08-03T12:32:45.000Z
agentTools:
  projectIndex: https://developer.scantopay.io/llms.txt
---

# Update Code

Update a previously created code. The changes will take effect immediately.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Scan to Pay API",
    "version": "V0.1"
  },
  "servers": [
    {
      "url": "https://ragstest.oltio.co.za/pluto/",
      "description": "QA/Test Service"
    },
    {
      "url": "https://rags.oltio.co.za/rags/",
      "description": "Production Service"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Codes API",
      "description": "Managing QR codes"
    }
  ],
  "paths": {
    "/code/{code}": {
      "put": {
        "tags": [
          "Codes API"
        ],
        "summary": "Update Code",
        "description": "Update a previously created code. The changes will take effect immediately.",
        "operationId": "edit",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionInfoCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Code Updated"
          },
          "400": {
            "description": "Invalid request",
            "content": {}
          },
          "401": {
            "description": "Not Authenticated"
          },
          "403": {
            "description": "Not Authorized",
            "content": {}
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AFTData": {
        "required": [
          "moneySendSensitive",
          "tranSpecificData"
        ],
        "type": "object",
        "properties": {
          "moneySendSensitive": {
            "$ref": "#/components/schemas/MoneySendSensitive"
          },
          "tranSpecificData": {
            "$ref": "#/components/schemas/TranSpecificData"
          }
        },
        "description": "AFT (Account Funding Transaction) request data"
      },
      "AdditionalMerchantData": {
        "type": "object",
        "properties": {
          "paymentFacilitatorData": {
            "$ref": "#/components/schemas/PaymentFacilitatorData"
          },
          "salesOrgId": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Independent sales organization ID",
            "example": "12345"
          },
          "subMerchantId": {
            "maxLength": 15,
            "minLength": 1,
            "type": "string",
            "description": "Sub-merchant ID",
            "example": "12345"
          },
          "retailerIndicator": {
            "maxLength": 3,
            "minLength": 1,
            "type": "string",
            "description": "Retailer Indicator",
            "example": "F"
          },
          "customData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomData"
            }
          }
        }
      },
      "CardAcceptorCustomData": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Card Acceptor custom attribute key",
            "enum": [
              "phone",
              "retailerPhone",
              "retailerStateCode",
              "website",
              "additionalContactInfo",
              "taxId",
              "partnerIdCode",
              "cardAcceptorGeographicCoordinates",
              "serviceLocationGeographicCoordinates",
              "retailerType",
              "retailerName"
            ]
          },
          "value": {
            "type": "string",
            "description": "Card Acceptor custom value",
            "example": "ABC123456"
          }
        },
        "description": "Card acceptor custom key-value attributes",
        "example": [
          {
            "key": "phone",
            "value": "27123456789"
          },
          {
            "key": "retailerPhone",
            "value": "27876543210"
          },
          {
            "key": "retailerStateCode",
            "value": "GT"
          },
          {
            "key": "website",
            "value": "https://merchant.com"
          },
          {
            "key": "additionalContactInfo",
            "value": "27123456789 or contact@merchant.com"
          },
          {
            "key": "taxId",
            "value": "TX998877"
          },
          {
            "key": "partnerIdCode",
            "value": "PART123"
          },
          {
            "key": "cardAcceptorGeographicCoordinates",
            "value": "-26.2041,28.0473"
          },
          {
            "key": "serviceLocationGeographicCoordinates",
            "value": "-25.7461,28.1881"
          },
          {
            "key": "retailerType",
            "value": "M"
          },
          {
            "key": "retailerName",
            "value": "ABC Retail Pvt Ltd"
          }
        ]
      },
      "CardAcceptorData": {
        "type": "object",
        "properties": {
          "streetAddress": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor street address",
            "example": "Golfers Corner"
          },
          "city": {
            "maxLength": 45,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor city",
            "example": "Johannesburg"
          },
          "stateCode": {
            "maxLength": 3,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor state code",
            "example": "GT"
          },
          "postalCode": {
            "maxLength": 10,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor postal code",
            "example": "1700"
          },
          "countryCode": {
            "maxLength": 3,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor ISO numeric country code",
            "example": "710"
          },
          "commerceIndicator": {
            "type": "string",
            "description": "Card Acceptor electronic commerce indicator",
            "example": "A"
          },
          "draftCapture": {
            "type": "string",
            "description": "Card Acceptor electronic draft catpure",
            "example": "B"
          },
          "custService": {
            "maxLength": 15,
            "minLength": 1,
            "type": "string",
            "description": "Card Acceptor customer service",
            "example": "27213004455"
          },
          "cardAcceptorCustomData": {
            "type": "array",
            "description": "Card acceptor custom key-value attributes",
            "example": [
              {
                "key": "phone",
                "value": "27123456789"
              },
              {
                "key": "retailerPhone",
                "value": "27876543210"
              },
              {
                "key": "retailerStateCode",
                "value": "GT"
              },
              {
                "key": "website",
                "value": "https://merchant.com"
              },
              {
                "key": "additionalContactInfo",
                "value": "27123456789 or contact@merchant.com"
              },
              {
                "key": "taxId",
                "value": "TX998877"
              },
              {
                "key": "partnerIdCode",
                "value": "PART123"
              },
              {
                "key": "cardAcceptorGeographicCoordinates",
                "value": "-26.2041,28.0473"
              },
              {
                "key": "serviceLocationGeographicCoordinates",
                "value": "-25.7461,28.1881"
              },
              {
                "key": "retailerType",
                "value": "M"
              },
              {
                "key": "retailerName",
                "value": "ABC Retail Pvt Ltd"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/CardAcceptorCustomData"
            }
          }
        },
        "description": "Card Acceptor Data"
      },
      "CustomData": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Specific custom key",
            "example": "Supported key: visaMvv, subMcc"
          },
          "value": {
            "type": "string",
            "description": "Specific custom value",
            "example": "ABC123456"
          }
        }
      },
      "LimitBasket": {
        "required": [
          "amount",
          "itemType"
        ],
        "type": "object",
        "properties": {
          "destination": {
            "type": "string"
          },
          "itemType": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          }
        },
        "description": "This is an optional parameter. It also allows limits to be checked if the destination msisdn and item type is specified. The itemType can be either AIRTIME or AIRTIME_BUNDLE. The merchant account needs to be enabled to allow limits to be checked. This parameter cannot be used with a variable amount or if useOnce is true or with partial payments. ",
        "example": "[{'description':'USB Mouse', 'quantity':'1','value':50.00,'imageURL':'https://ragstest.oltio.co.za/item1.png'}],[{'description':'Airtime Purchase','quantity':'1', value':30.00,'imageURL': https://ragstest.oltio.co.za/item2.png','destination':'27831234567','itemType':'AIRTIME'}],[{'description':'Bundle Purchase','quantity':'1', value':100.00,'imageURL': https://ragstest.oltio.co.za/item3.png','destination':'27821234567','itemType':'AIRTIME_BUNDLE'}]"
      },
      "MoneySendSensitive": {
        "required": [
          "accountNumberReceiver",
          "accountNumberSender"
        ],
        "type": "object",
        "properties": {
          "accountNumberSender": {
            "maxLength": 34,
            "minLength": 1,
            "type": "integer",
            "description": "Contains the account number of the sender of the transaction",
            "format": "int64",
            "default": 1234567890
          },
          "accountNumberReceiver": {
            "maxLength": 34,
            "minLength": 1,
            "type": "integer",
            "description": "Contains the account number of the receiver of the transaction",
            "format": "int64",
            "default": 987654321
          }
        },
        "description": "The PAN related information will be included in the Structured Data tag MoneySendSensitive. It is recommended that PAN related data send to Transaction Manager should also use the Structured Data tag MoneySendSensitive to transport PAN related MoneySend data."
      },
      "MoneyTransferReceiverData": {
        "required": [
          "accountIdentifier",
          "accountNumber",
          "accountNumberType",
          "address",
          "birthCountry",
          "city",
          "country",
          "dob",
          "expiryDate",
          "firstName",
          "identificationCountryCode",
          "identificationNumber",
          "identificationSubType",
          "identificationType",
          "lastName",
          "middleName",
          "mobilePhoneNumber",
          "name",
          "nationality",
          "participationId",
          "postalCode",
          "state"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 40,
            "type": "string",
            "description": "Contains the name of the entity funding the transaction.",
            "example": "JOHNDOW"
          },
          "firstName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the First Name.",
            "example": "JOHN"
          },
          "middleName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the First Name.",
            "example": "P"
          },
          "lastName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the Last Name.",
            "example": "DOW"
          },
          "dob": {
            "maxLength": 8,
            "minLength": 8,
            "type": "string",
            "description": "Contains the Date of Birth in the format MMDDYYYY",
            "example": "05081992"
          },
          "nationality": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Nationality. It must be a valid ISO country code.",
            "example": "710"
          },
          "birthCountry": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Country of Birth. It must be a valid ISO country code.",
            "example": "710"
          },
          "address": {
            "maxLength": 50,
            "type": "string",
            "description": "Contains the Street Address.",
            "example": "3rd street"
          },
          "city": {
            "maxLength": 25,
            "type": "string",
            "description": "Contains the City.",
            "example": "Johannesburg"
          },
          "state": {
            "maxLength": 3,
            "type": "string",
            "description": "Contains the State / Province Code.",
            "example": "GP"
          },
          "country": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Country It must be a valid ISO country code.",
            "example": "710"
          },
          "postalCode": {
            "maxLength": 10,
            "type": "string",
            "description": "Contains the Postal Code.",
            "example": "2000"
          },
          "mobilePhoneNumber": {
            "maxLength": 20,
            "type": "string",
            "description": "Contains the Mobile Number",
            "example": "271000000009"
          },
          "accountNumber": {
            "maxLength": 34,
            "type": "string",
            "description": "Contains the account number of the Sender",
            "example": "ACOUNT12345649"
          },
          "accountNumberType": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the account number type of the Receiver/Sender.<br>00 - Other<br>01 - RTN + Bank Account<br>02 - IBAN<br>03 - Card Account<br>04 - Email<br>05 - Phone Number<br>06 - Bank Account Number (BAN) + Bank Identification Code (BIC)<br>07 - Wallet ID<br>08 - Social Network ID<br>",
            "enum": [
              "00",
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08"
            ]
          },
          "accountIdentifier": {
            "maxLength": 34,
            "type": "string",
            "description": "Contains the account identifier value of the sender or recipient.",
            "example": "3rd street"
          },
          "expiryDate": {
            "maxLength": 8,
            "minLength": 8,
            "type": "string",
            "description": "Contains the Identification Expiry Date in the format MMDDYYYY",
            "example": "05081992"
          },
          "identificationType": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the Identification Type<br>01 - National Identification Card<br>02 - Driver's Licence<br>03 - Government Issued<br>04 - Other<br>05 - Passport<br>06 - Tax Identification<br>07 - Company Registration Number<br>08 - Proxy Identification<br>09 - Social Security Number<br>10 - Alien Registration Number<br>11 - Law Enforcement Identification<br>12 - Military Identification<br>13 - Travel Identification Non-Passport<br>14 - Phone<br>",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08",
              "09",
              "10",
              "11",
              "12",
              "13",
              "14"
            ]
          },
          "identificationSubType": {
            "maxLength": 1,
            "minLength": 1,
            "type": "string",
            "description": "Contains the Identification Sub Type<br>B - BUSINESS<br>I - INDIVIDUAL<br>",
            "enum": [
              "B",
              "I"
            ]
          },
          "identificationNumber": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the Identification Number",
            "example": "8821654512165156"
          },
          "identificationCountryCode": {
            "maxLength": 3,
            "type": "string",
            "description": "Contains the Identification Country Code. It must be a valid ISO country code",
            "example": "710"
          },
          "participationId": {
            "maxLength": 30,
            "type": "string",
            "description": "Contains the participation ID of the Sender.",
            "example": "16549815615"
          }
        },
        "description": "Contains sub elements related to Receiver information as described below."
      },
      "MoneyTransferSenderData": {
        "required": [
          "accountIdentifier",
          "accountNumber",
          "accountNumberType",
          "address",
          "birthCountry",
          "city",
          "country",
          "dob",
          "emailAddress",
          "expiryDate",
          "firstName",
          "fundingSource",
          "identificationCountryCode",
          "identificationNumber",
          "identificationSubType",
          "identificationType",
          "lastName",
          "mesasage",
          "middleName",
          "mobilePhoneNumber",
          "name",
          "nationality",
          "participationId",
          "postalCode",
          "state",
          "telephone",
          "transactionPurpose"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 40,
            "type": "string",
            "description": "Contains the name of the entity funding the transaction.",
            "example": "JOHNDOW"
          },
          "firstName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the First Name.",
            "example": "JOHN"
          },
          "middleName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the First Name.",
            "example": "P"
          },
          "lastName": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the Last Name.",
            "example": "DOW"
          },
          "dob": {
            "maxLength": 8,
            "minLength": 8,
            "type": "string",
            "description": "Contains the Date of Birth in the format MMDDYYYY",
            "example": "05081992"
          },
          "nationality": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Nationality. It must be a valid ISO country code.",
            "example": "710"
          },
          "birthCountry": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Country of Birth. It must be a valid ISO country code.",
            "example": "710"
          },
          "address": {
            "maxLength": 50,
            "type": "string",
            "description": "Contains the Street Address.",
            "example": "3rd street"
          },
          "city": {
            "maxLength": 25,
            "type": "string",
            "description": "Contains the City.",
            "example": "Johannesburg"
          },
          "state": {
            "maxLength": 3,
            "type": "string",
            "description": "Contains the State / Province Code.",
            "example": "GP"
          },
          "country": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Contains the Country It must be a valid ISO country code.",
            "example": "710"
          },
          "postalCode": {
            "maxLength": 10,
            "type": "string",
            "description": "Contains the Postal Code.",
            "example": "2000"
          },
          "mobilePhoneNumber": {
            "maxLength": 20,
            "type": "string",
            "description": "Contains the Mobile Number",
            "example": "271000000009"
          },
          "accountNumber": {
            "maxLength": 34,
            "type": "string",
            "description": "Contains the account number of the Sender",
            "example": "ACOUNT12345649"
          },
          "accountNumberType": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the account number type of the Receiver/Sender.<br>00 - Other<br>01 - RTN + Bank Account<br>02 - IBAN<br>03 - Card Account<br>04 - Email<br>05 - Phone Number<br>06 - Bank Account Number (BAN) + Bank Identification Code (BIC)<br>07 - Wallet ID<br>08 - Social Network ID<br>",
            "enum": [
              "00",
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08"
            ]
          },
          "accountIdentifier": {
            "maxLength": 34,
            "type": "string",
            "description": "Contains the account identifier value of the sender or recipient.",
            "example": "3rd street"
          },
          "expiryDate": {
            "maxLength": 8,
            "minLength": 8,
            "type": "string",
            "description": "Contains the Identification Expiry Date in the format MMDDYYYY",
            "example": "05081992"
          },
          "identificationType": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the Identification Type<br>01 - National Identification Card<br>02 - Driver's Licence<br>03 - Government Issued<br>04 - Other<br>05 - Passport<br>06 - Tax Identification<br>07 - Company Registration Number<br>08 - Proxy Identification<br>09 - Social Security Number<br>10 - Alien Registration Number<br>11 - Law Enforcement Identification<br>12 - Military Identification<br>13 - Travel Identification Non-Passport<br>14 - Phone<br>",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08",
              "09",
              "10",
              "11",
              "12",
              "13",
              "14"
            ]
          },
          "identificationSubType": {
            "maxLength": 1,
            "minLength": 1,
            "type": "string",
            "description": "Contains the Identification Sub Type<br>B - BUSINESS<br>I - INDIVIDUAL<br>",
            "enum": [
              "B",
              "I"
            ]
          },
          "identificationNumber": {
            "maxLength": 35,
            "type": "string",
            "description": "Contains the Identification Number",
            "example": "8821654512165156"
          },
          "identificationCountryCode": {
            "maxLength": 3,
            "type": "string",
            "description": "Contains the Identification Country Code. It must be a valid ISO country code",
            "example": "710"
          },
          "participationId": {
            "maxLength": 30,
            "type": "string",
            "description": "Contains the participation ID of the Sender.",
            "example": "16549815615"
          },
          "transactionPurpose": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the Purpose of the Transaction<br>00 - Family Support<br>01 - Regular Labour Transfers (expatriates)<br>02 - Travel & Tourism<br>03 - Education<br>04 - Hospitalization & Medical Treatment<br>05 - Emergency Need<br>06 - Savings<br>07 - Gifts<br>08 - Other<br>09 - Salary (NED) / Reserved (SBSA)<br>10 - Crown lending (NED) / Reserved (SBSA)<br>11 - Crypto currency<br>12 - Refund to original card<br>13 - Refund to new card<br>14 - Transfer to another person/org in the same Staged Digital Wallet (Brazil)<br>15 - Boleto Payment (Brazil)<br>16 - High Risk Securities<br>",
            "enum": [
              "00",
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08",
              "09",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16"
            ]
          },
          "fundingSource": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Contains the information representing the Moneysend transaction funding source<br>01 - Credit<br>02 - Debit<br>03 - Prepaid<br>04 - Deposit Account (Mastercard) / Cash (Visa)<br>05 - Mobile Money Account (Mastercard) / non-Visa debit/deposit access (Visa)<br>06 - Cash (Mastercard) / non-Visa credit accounts (Visa)<br>07 - Reserved for future use (Mastercard)<br>08 - Cheque (Mastercard)<br>09 - ACH - Automated Clearing House (Mastercard)<br>",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08",
              "09"
            ]
          },
          "telephone": {
            "maxLength": 20,
            "type": "string",
            "description": "Contains the telephone Number",
            "example": "271000000009"
          },
          "emailAddress": {
            "type": "string",
            "description": "Contains the Email Address"
          },
          "mesasage": {
            "maxLength": 65,
            "type": "string",
            "description": "Additional Message"
          }
        },
        "description": "Contains sub elements related to Sender information as described below"
      },
      "PaymentFacilitatorData": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Payment facilitator name",
            "example": "EFT"
          },
          "mastercard": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Mastercard - Payment facilitator ID",
            "example": "12345"
          },
          "visa": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Visa - Payment facilitator ID",
            "example": "12345"
          },
          "diners": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Diners - Payment facilitator ID",
            "example": "12345"
          },
          "discover": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Discover - Payment facilitator ID",
            "example": "12345"
          },
          "amex": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Amex - Payment facilitator ID",
            "example": "12345"
          },
          "maestro": {
            "maxLength": 11,
            "minLength": 1,
            "type": "string",
            "description": "Maestro - Payment facilitator ID",
            "example": "12345"
          }
        },
        "description": "Payment facilitator Data for various card brands"
      },
      "TranSpecificData": {
        "required": [
          "businessApplicationIdentifier",
          "freeFormData",
          "moneyTransferReceiverData",
          "moneyTransferSenderData",
          "purposeOfPayment",
          "referenceNumber",
          "transactionTypeIdentifier"
        ],
        "type": "object",
        "properties": {
          "businessApplicationIdentifier": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "Business Application Identifier (Visa-specific)<br>AA - Account-to-Account initiated transfer<br>PP - Person-to-Person initiated transfer<br>LO - Loyalty and offers<br>LA - AFT (Nedbank example: Cryptocurrency) - not in general BAI table<br>FD - Funds disbursement<br>GD - Government disbursement<br>MD - Merchant disbursement<br>OG - Online gambling payout<br>TU - Top up<br>CP - Card bill payment<br>WT - Wallet transfer<br>BB - Business to business<br>BI - Money transfer - bank-initiated<br>BP - Non-card bill payment<br>CC - Cash claim<br>CI - Cash in<br>CO - Cash out<br>MA - Mobile air time payment<br>MI - Money transfer - merchant-initiated<br>MP - Face-to-face merchant payment<br>PD - Payroll/pension disbursement<br>PG - Payment to government<br>PS - Payment for goods and services (general)<br>CB - Consumer bill payment<br>CD - Cash deposit<br>",
            "enum": [
              "AA",
              "PP",
              "LO",
              "LA",
              "FD",
              "GD",
              "MD",
              "OG",
              "TU",
              "CP",
              "WT",
              "BB",
              "BI",
              "BP",
              "CC",
              "CI",
              "CO",
              "MA",
              "MI",
              "MP",
              "PD",
              "PG",
              "PS",
              "CB",
              "CD"
            ]
          },
          "transactionTypeIdentifier": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "description": "Transaction Type Identifier indicates the type of additional transaction purpose (MasterCard-specific)<br>C01 - Person-to-Person<br>C02 - Mastercard rebate<br>C03 - rePower Load Value<br>C04 - Gaming Re-pay (NED) / Payment transaction (SBSA)<br>C05 - Payment Transaction for a reason other than C01-C04<br>C06 - Payment of a credit card balance with cash or cheque<br>C07 - MoneySend Person-to-Person / General Person-to-Person Transfer<br>C09 - Card Activation<br>C51 - MoneySend Additional Funding/Payment Indicator (Reserved for Future Use)<br>C52 - MoneySend Account-to-Account Transfer / General Transfer to Own Account<br>C53 - MoneySend Agent Cash Out<br>C54 - MoneySend Credit Card Bill Payment / Payment of Own Credit Card Bill<br>C55 - MoneySend Business Disbursement<br>C56 - MoneySend Government/Non-profit Disbursement<br>C57 - MoneySend Acquirer Merchant Settlement / Rapid Merchant Settlement<br>C65 - Refund to new card (appendix) / General B2B Transfer (SBSA AFT table)<br>C67 - Masterpass QR<br>C68 - Masterpass QR Refund<br>P2P - Peer-to-Peer Transaction<br>F07 - General Person-to-Person Transfer<br>F08 - Person-to-Person Transfer to Card Account<br>F52 - General Transfer to Own Account<br>F53 - Agent Cash-Out<br>F54 - Payment of Own Credit Card Bill<br>F55 - Business Disbursement<br>F61 - Transfer to Own Staged Digital Wallet Account<br>F64 - Transfer to Own Debit or Prepaid Account<br>F65 - General Business to Business Transfer<br>",
            "enum": [
              "C01",
              "C02",
              "C03",
              "C04",
              "C05",
              "C06",
              "C07",
              "C09",
              "C51",
              "C52",
              "C53",
              "C54",
              "C55",
              "C56",
              "C57",
              "C65",
              "C67",
              "C68",
              "P2P",
              "F07",
              "F08",
              "F52",
              "F53",
              "F54",
              "F55",
              "F61",
              "F64",
              "F65"
            ]
          },
          "moneyTransferSenderData": {
            "$ref": "#/components/schemas/MoneyTransferSenderData"
          },
          "moneyTransferReceiverData": {
            "$ref": "#/components/schemas/MoneyTransferReceiverData"
          },
          "purposeOfPayment": {
            "maxLength": 6,
            "minLength": 6,
            "type": "string",
            "description": "This tag will contain the purpose of payment code that the originating acquirer will populate for the recipient issuer.<br>ISACCT - Account management<br>ISAIRB - Air transport related business<br>ISALLW - Payment of allowance<br>ISANNI - Settlement of annuity<br>ISBENE - Unemployment disability benefit<br>ISBEXP - Business expenses<br>ISBONU - Bonus payment<br>ISBUSB - Bus transport related business<br>ISCASH - Cash management transfer<br>ISCBTV - Payment of cable TV bill<br>ISCCHD - Government cash compensation/helplessness/disability<br>ISCCRD - Credit card payment<br>ISCDBL - Payment of credit card bill<br>ISCHAR - Payment for charity reasons<br>ISCOLL - Collection payment<br>ISCOMC - Commercial payment<br>ISCOMM - Commission<br>ISCOMP - Compensation (interest loss / value date adjustment, may include fees)<br>ISCPYR - Payment of copyright<br>ISDCRD - Debit card payment<br>ISDEPT - Payment of a deposit<br>ISDIVD - Payment of dividend<br>ISEDUC - Payment of study/tuition fees<br>ISELEC - Payment of electricity bill<br>ISENRG - Energies<br>ISFEES - General fees<br>ISFERB - Payment for ferry related business<br>ISFREX - Foreign exchange<br>ISGASB - Payment of gas bill<br>ISGFRP - Compensation to unemployed during insolvency procedures<br>ISGOVT - Government payment<br>ISHLTI - Health insurance<br>ISICCP - Reimbursement of credit card payment<br>ISIDCP - Reimbursement of debit card payment<br>ISINPC - Payment of car insurance premium<br>ISSSBE - Social security benefit<br>ISSTDY - Study<br>ISSUBS - Subscription<br>ISSUPP - Supplier payment<br>ISTAXR - Refund of a tax payment or obligation<br>ISTAXS - Tax payment<br>ISTBIL - Telecommunications related bill<br>ISTRAD - Trade services operation<br>ISTREA - Treasury payment<br>ISTRPT - Payment for travel<br>ISUBIL - Utility bill payment<br>ISVATX - Value added tax payment<br>ISWHLD - Withholding<br>ISWTER - Payment of water bill<br>",
            "enum": [
              "ISACCT",
              "ISAIRB",
              "ISALLW",
              "ISANNI",
              "ISBENE",
              "ISBEXP",
              "ISBONU",
              "ISBUSB",
              "ISCASH",
              "ISCBTV",
              "ISCCHD",
              "ISCCRD",
              "ISCDBL",
              "ISCHAR",
              "ISCOLL",
              "ISCOMC",
              "ISCOMM",
              "ISCOMP",
              "ISCPYR",
              "ISDCRD",
              "ISDEPT",
              "ISDIVD",
              "ISEDUC",
              "ISELEC",
              "ISENRG",
              "ISFEES",
              "ISFERB",
              "ISFREX",
              "ISGASB",
              "ISGFRP",
              "ISGOVT",
              "ISHLTI",
              "ISICCP",
              "ISIDCP",
              "ISINPC",
              "ISSSBE",
              "ISSTDY",
              "ISSUBS",
              "ISSUPP",
              "ISTAXR",
              "ISTAXS",
              "ISTBIL",
              "ISTRAD",
              "ISTREA",
              "ISTRPT",
              "ISUBIL",
              "ISVATX",
              "ISWHLD",
              "ISWTER"
            ]
          },
          "freeFormData": {
            "maxLength": 255,
            "type": "string",
            "description": "General Information"
          },
          "referenceNumber": {
            "maxLength": 12,
            "type": "string",
            "description": "Contains the Unique Transaction Reference Number Contains a transaction reference number that is provided by the originator or acquirer and can be used to uniquely identify the entity funding the transaction."
          }
        }
      },
      "TransactionInfoCreate": {
        "required": [
          "amount",
          "merchantReference"
        ],
        "type": "object",
        "properties": {
          "merchantReference": {
            "type": "string",
            "description": "This is a merchant reference. Use this to link this code to a transaction.",
            "example": "50307e9b-e827-49d5-b3df-fd2c8e9ddee3"
          },
          "amount": {
            "type": "number",
            "description": "To use a variable amount use 0 as the amount. The currency is tied to the merchant setup.",
            "example": 15.5
          },
          "expiryDate": {
            "type": "integer",
            "description": "If this is empty the code will by default expire in 30 minutes from issue. If this value is 0 the code will never expire. This time is specified in epoch.",
            "format": "int64",
            "example": 1765749600000
          },
          "useOnce": {
            "type": "boolean",
            "description": "If you want to reuse the same code multiple times set this to false.",
            "example": false,
            "default": true
          },
          "reserveQR": {
            "type": "boolean",
            "description": "To generate reservedQR",
            "example": false,
            "default": false
          },
          "shortDescription": {
            "maxLength": 45,
            "minLength": 0,
            "type": "string",
            "description": "This will be displayed to the consumer at the time a code is scanned. Length is 5 to 45",
            "example": "This is a basket of goods"
          },
          "subMerchantName": {
            "type": "string",
            "description": "To be used if there is a sub-merchant linked to the original merchant. This will be displayed on the consumer's bank statement if supported by the merchant's acquirer",
            "example": "Bob's Ice Cream"
          },
          "terminalId": {
            "type": "string",
            "description": "It allows an additional terminal id or application id to be sent on the purchase transaction to the acquirer. Please note this terminal id will replace the terminal id used in the original merchant configuration and could therefore cause bank settlement issuess",
            "example": "00001234"
          },
          "requestPartialPayment": {
            "type": "boolean",
            "description": "If present the consumer will be allowed to edit the amount before payment",
            "example": false,
            "default": false
          },
          "requestTip": {
            "type": "boolean",
            "description": "If present the consumer will be prompted to enter a tip amount. In order to use the requestTip function requestPartialPayment must also be set to true",
            "example": false,
            "default": false
          },
          "limitBasket": {
            "type": "array",
            "description": "This is an optional parameter. It also allows limits to be checked if the destination msisdn and item type is specified. The itemType can be either AIRTIME or AIRTIME_BUNDLE. The merchant account needs to be enabled to allow limits to be checked. This parameter cannot be used with a variable amount or if useOnce is true or with partial payments. ",
            "example": "[{'description':'USB Mouse', 'quantity':'1','value':50.00,'imageURL':'https://ragstest.oltio.co.za/item1.png'}],[{'description':'Airtime Purchase','quantity':'1', value':30.00,'imageURL': https://ragstest.oltio.co.za/item2.png','destination':'27831234567','itemType':'AIRTIME'}],[{'description':'Bundle Purchase','quantity':'1', value':100.00,'imageURL': https://ragstest.oltio.co.za/item3.png','destination':'27821234567','itemType':'AIRTIME_BUNDLE'}]",
            "items": {
              "$ref": "#/components/schemas/LimitBasket"
            }
          },
          "rrn2": {
            "maxLength": 12,
            "minLength": 12,
            "type": "string",
            "description": "This is a secondary RRN in cases where merchants require an additional RRN value passed back besides the bank RRN. Must be 12 characters left filled with zeroes",
            "example": "123456789012"
          },
          "smsNotify": {
            "type": "array",
            "description": "It allows SMS notifications to be sent at code level. A maximum of 3 msisdns (mobile numbers) is permitted and must be sent in international format. Must be comma separated",
            "example": "[N/A]",
            "items": {
              "type": "string",
              "description": "It allows SMS notifications to be sent at code level. A maximum of 3 msisdns (mobile numbers) is permitted and must be sent in international format. Must be comma separated",
              "example": "[N/A]"
            }
          },
          "emailNotify": {
            "type": "array",
            "description": "It allows email notifications to be sent at code level. A maximum of 5 email addresses is permitted. Must be comma separated",
            "example": "[N/A]",
            "items": {
              "type": "string",
              "description": "It allows email notifications to be sent at code level. A maximum of 5 email addresses is permitted. Must be comma separated",
              "example": "[N/A]"
            }
          },
          "notificationUrl": {
            "type": "string",
            "description": "This will override any merchant / psp level notifications",
            "example": "https://mydomain.com/notify/abc"
          },
          "notificationKey": {
            "type": "string",
            "description": "This will be used to encrypt the notification and must be a valid AES encryption key, this will be used to encrypt the notification payload",
            "example": "ABCDEFGHIJKL"
          },
          "additionalMerchantData": {
            "$ref": "#/components/schemas/AdditionalMerchantData"
          },
          "cardAcceptorData": {
            "$ref": "#/components/schemas/CardAcceptorData"
          },
          "aftData": {
            "$ref": "#/components/schemas/AFTData"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```