POST api/Payment

Request Information

URI Parameters

None.

Body Parameters

LokePayment
NameDescriptionTypeAdditional information
Event

string

None.

location

PaymentLocation

None.

organization

PaymentOrganization

None.

payment

Payment

None.

Request Formats

application/json, text/json

Sample:
{
  "Event": "sample string 1",
  "location": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "organization": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "payment": {
    "id": "sample string 1",
    "locationId": "sample string 2",
    "billingType": "sample string 3",
    "state": "sample string 4",
    "currency": "sample string 5",
    "total": 6,
    "tipAmount": 7,
    "discountAmount": 8,
    "creditAmount": 9,
    "chargedAmount": 10,
    "externalAmount": 11,
    "feeAmount": 12,
    "payoutAmount": 13,
    "customer": {
      "id": "sample string 1",
      "firstName": "sample string 2",
      "lastName": "sample string 3",
      "email": "sample string 4",
      "phoneNumber": "sample string 5"
    },
    "items": [
      {
        "id": "sample string 1",
        "label": "sample string 2",
        "name": "sample string 3",
        "amount": 4,
        "quantity": 5,
        "type": "sample string 6",
        "options": [
          {
            "id": "sample string 1",
            "name": "sample string 2",
            "choices": [
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              },
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              }
            ]
          },
          {
            "id": "sample string 1",
            "name": "sample string 2",
            "choices": [
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              },
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              }
            ]
          }
        ]
      },
      {
        "id": "sample string 1",
        "label": "sample string 2",
        "name": "sample string 3",
        "amount": 4,
        "quantity": 5,
        "type": "sample string 6",
        "options": [
          {
            "id": "sample string 1",
            "name": "sample string 2",
            "choices": [
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              },
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              }
            ]
          },
          {
            "id": "sample string 1",
            "name": "sample string 2",
            "choices": [
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              },
              {
                "id": "sample string 1",
                "name": "sample string 2",
                "amount": 3
              }
            ]
          }
        ]
      }
    ],
    "discounts": [
      {},
      {}
    ],
    "createdAt": "2026-04-10T13:47:46.1559666+01:00",
    "updatedAt": "2026-04-10T13:47:46.1559666+01:00",
    "completedAt": "2026-04-10T13:47:46.1559666+01:00"
  }
}

application/xml, text/xml

Sample:
<LokePayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Loke_Webhook.Models">
  <Event>sample string 1</Event>
  <location>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </location>
  <organization>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </organization>
  <payment>
    <billingType>sample string 3</billingType>
    <chargedAmount>10</chargedAmount>
    <completedAt>2026-04-10T13:47:46.1559666+01:00</completedAt>
    <createdAt>2026-04-10T13:47:46.1559666+01:00</createdAt>
    <creditAmount>9</creditAmount>
    <currency>sample string 5</currency>
    <customer>
      <email>sample string 4</email>
      <firstName>sample string 2</firstName>
      <id>sample string 1</id>
      <lastName>sample string 3</lastName>
      <phoneNumber>sample string 5</phoneNumber>
    </customer>
    <discountAmount>8</discountAmount>
    <discounts xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </discounts>
    <externalAmount>11</externalAmount>
    <feeAmount>12</feeAmount>
    <id>sample string 1</id>
    <items>
      <Item>
        <amount>4</amount>
        <id>sample string 1</id>
        <label>sample string 2</label>
        <name>sample string 3</name>
        <options>
          <Option>
            <choices>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
            </choices>
            <id>sample string 1</id>
            <name>sample string 2</name>
          </Option>
          <Option>
            <choices>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
            </choices>
            <id>sample string 1</id>
            <name>sample string 2</name>
          </Option>
        </options>
        <quantity>5</quantity>
        <type>sample string 6</type>
      </Item>
      <Item>
        <amount>4</amount>
        <id>sample string 1</id>
        <label>sample string 2</label>
        <name>sample string 3</name>
        <options>
          <Option>
            <choices>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
            </choices>
            <id>sample string 1</id>
            <name>sample string 2</name>
          </Option>
          <Option>
            <choices>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
              <Choice>
                <amount>3</amount>
                <id>sample string 1</id>
                <name>sample string 2</name>
              </Choice>
            </choices>
            <id>sample string 1</id>
            <name>sample string 2</name>
          </Option>
        </options>
        <quantity>5</quantity>
        <type>sample string 6</type>
      </Item>
    </items>
    <locationId>sample string 2</locationId>
    <payoutAmount>13</payoutAmount>
    <state>sample string 4</state>
    <tipAmount>7</tipAmount>
    <total>6</total>
    <updatedAt>2026-04-10T13:47:46.1559666+01:00</updatedAt>
  </payment>
</LokePayment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>