POST api/PaymentType/UpsertPaymentType

Documentation for 'UpsertPaymentType'.

Request Information

Parameters

NameDescriptionAdditional information
req
Documentation for 'req'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "PaymentType": {
    "ID": "5e247a14-f629-4bc9-af82-74855ab654af",
    "Name": "sample string 2",
    "TransactionType": "sample string 3",
    "Code": "sample string 4",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "ExpiredLimitInMinutes": 7,
    "IsDeleted": true,
    "Created": "2026-06-06T04:28:06.5748237+07:00",
    "CreatedBy": "sample string 10",
    "Updated": "2026-06-06T04:28:06.5748237+07:00",
    "UpdatedBy": "sample string 12",
    "PaymentPlan": "sample string 13",
    "Tenor": "sample string 14",
    "MinOrder": 1.0,
    "MaxOrder": 1.0,
    "Note": "sample string 15",
    "SortOrder": 16,
    "KodeBIN": "sample string 17",
    "IsPromo": true,
    "PaymentMethod": "sample string 18",
    "NextStep": "sample string 19",
    "IsPromoPayment": true,
    "IsPromoPaymentNewLine": true,
    "Mekanisme": [
      {
        "$id": "2",
        "PromoCode": "sample string 1",
        "PromoDesc": "sample string 2",
        "Discount": 3.0,
        "KodeBin": "sample string 4"
      },
      {
        "$ref": "2"
      },
      {
        "$ref": "2"
      }
    ],
    "IsDisabled": true,
    "PaymentIntructionsLink": "sample string 23",
    "AdminFeeLayer": "sample string 24",
    "IsSpecialPayment": true,
    "BankAccountName": "sample string 25",
    "BankAccountNo": "sample string 26",
    "BankAccountBranch": "sample string 27"
  },
  "PublicKey": "sample string 1",
  "Signature": "sample string 2",
  "TimeStamp": "2026-06-06T04:28:06.5748237+07:00"
}

application/xml, text/xml

Sample:
<RequestUpsertPaymentType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PaymentType>
    <ID>5e247a14-f629-4bc9-af82-74855ab654af</ID>
    <Name>sample string 2</Name>
    <TransactionType>sample string 3</TransactionType>
    <Code>sample string 4</Code>
    <StartTime />
    <EndTime />
    <ExpiredLimitInMinutes>7</ExpiredLimitInMinutes>
    <IsDeleted>true</IsDeleted>
    <Created>2026-06-06T04:28:06.5748237+07:00</Created>
    <CreatedBy>sample string 10</CreatedBy>
    <Updated>2026-06-06T04:28:06.5748237+07:00</Updated>
    <UpdatedBy>sample string 12</UpdatedBy>
    <PaymentPlan>sample string 13</PaymentPlan>
    <Tenor>sample string 14</Tenor>
    <MinOrder>1</MinOrder>
    <MaxOrder>1</MaxOrder>
    <Note>sample string 15</Note>
    <SortOrder>16</SortOrder>
    <KodeBIN>sample string 17</KodeBIN>
    <IsPromo>true</IsPromo>
    <PaymentMethod>sample string 18</PaymentMethod>
    <NextStep>sample string 19</NextStep>
    <IsPromoPayment>true</IsPromoPayment>
    <IsPromoPaymentNewLine>true</IsPromoPaymentNewLine>
    <Mekanisme>
      <RessPromoPayment>
        <PromoCode>sample string 1</PromoCode>
        <PromoDesc>sample string 2</PromoDesc>
        <Discount>3</Discount>
        <KodeBin>sample string 4</KodeBin>
      </RessPromoPayment>
      <RessPromoPayment>
        <PromoCode>sample string 1</PromoCode>
        <PromoDesc>sample string 2</PromoDesc>
        <Discount>3</Discount>
        <KodeBin>sample string 4</KodeBin>
      </RessPromoPayment>
      <RessPromoPayment>
        <PromoCode>sample string 1</PromoCode>
        <PromoDesc>sample string 2</PromoDesc>
        <Discount>3</Discount>
        <KodeBin>sample string 4</KodeBin>
      </RessPromoPayment>
    </Mekanisme>
    <IsDisabled>true</IsDisabled>
    <PaymentIntructionsLink>sample string 23</PaymentIntructionsLink>
    <AdminFeeLayer>sample string 24</AdminFeeLayer>
    <IsSpecialPayment>true</IsSpecialPayment>
    <BankAccountName>sample string 25</BankAccountName>
    <BankAccountNo>sample string 26</BankAccountNo>
    <BankAccountBranch>sample string 27</BankAccountBranch>
  </PaymentType>
  <PublicKey>sample string 1</PublicKey>
  <Signature>sample string 2</Signature>
  <TimeStamp>2026-06-06T04:28:06.5748237+07:00</TimeStamp>
</RequestUpsertPaymentType>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "ResponseCode": "sample string 1",
  "ResponseMessage": "sample string 2",
  "TimeStamp": "2026-06-06T04:28:06.5904585+07:00"
}

application/xml, text/xml

Sample:
<ResponseUpsertPaymentType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ResponseCode>sample string 1</ResponseCode>
  <ResponseMessage>sample string 2</ResponseMessage>
  <TimeStamp>2026-06-06T04:28:06.5904585+07:00</TimeStamp>
</ResponseUpsertPaymentType>