POST api/Merchant/v1/GetPurchasesRelatedToSettlementTransaction

Method returns all purchases that are settled for payment provider with given settlement transaction id.

Request Information

URI Parameters

None.

Body Parameters

GetPurchasesRelatedToSettlementTransactionRequest
NameDescriptionTypeAdditional information
paymentProviderId

Id of payment provider (M)

globally unique identifier

None.

settlementTransactionId

Id of settlement transaction (M)

globally unique identifier

None.

OrganizationCode

string

None.

UserName

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "paymentProviderId": "df6e410e-d03c-41e3-8f7c-7e6faae91018",
  "settlementTransactionId": "1cb2eb38-4280-4f98-91b6-2863147ad30d",
  "OrganizationCode": "sample string 3",
  "UserName": "sample string 4",
  "Password": "sample string 5"
}

application/xml, text/xml

Sample:
<GetPurchasesRelatedToSettlementTransactionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers.Merchant">
  <OrganizationCode xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 3</OrganizationCode>
  <Password xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 5</Password>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 4</UserName>
  <paymentProviderId>df6e410e-d03c-41e3-8f7c-7e6faae91018</paymentProviderId>
  <settlementTransactionId>1cb2eb38-4280-4f98-91b6-2863147ad30d</settlementTransactionId>
</GetPurchasesRelatedToSettlementTransactionRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetPurchasesRelatedToSettlementTransactionRequest'.

Response Information

Resource Description

GetPurchasesRelatedToSettlementTransactionReply
NameDescriptionTypeAdditional information
Reply

Collection of Purchase

None.

Ok

boolean

None.

ErrorMessage

string

None.

ErrorCode

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Reply": [
    {
      "Id": "5a2e5f69-3a72-4b33-85c8-ee18f7e81c08",
      "Description": "sample string 2",
      "PurchaseDate": "2025-05-02T01:56:48.1287775+00:00",
      "PurchaseTotal": 4.0,
      "InvoicingFee": 5.0,
      "PaymentProviderPurchaseNumber": "sample string 6",
      "MerchantPurchaseNumber": "sample string 7",
      "PaymentReference": "sample string 8",
      "CustomerId": "cdcbecc4-642a-44ef-9ffc-142e62167e34",
      "MerchantId": "3a417133-4e72-47af-993b-a325b1d32672",
      "Merchant": {
        "Ssn": "sample string 1",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "Email": "sample string 4",
        "Phone": "sample string 5",
        "DeliveryAddressStreet": "sample string 6",
        "DeliveryAddressZip": "sample string 7",
        "DeliveryAddressCity": "sample string 8",
        "DeliveryAddressCountry": "sample string 9",
        "InvoiceAddressStreet": "sample string 10",
        "InvoiceAddressZip": "sample string 11",
        "InvoiceAddressCity": "sample string 12",
        "InvoiceAddressCountry": "sample string 13",
        "CompanyBusinessId": "sample string 14",
        "CompanyName": "sample string 15",
        "CompanyEInvoicingAddress": "sample string 16",
        "CompanyEInvoicingIntermediatorCode": "sample string 17",
        "CompanyInvoicingEmail": "sample string 18"
      },
      "PaymentProviderId": "4d13b1a8-8b72-4967-b228-986e8cb3433f",
      "PaymentProviderAccountTransactionId": "ef63b83a-63b7-4744-b224-22524cdeeb50",
      "StatusEnum": 100000000,
      "RegistrationTime": "2025-05-02T01:56:48.1287775+00:00",
      "PaymentTime": "2025-05-02T01:56:48.1287775+00:00",
      "CancelTime": "2025-05-02T01:56:48.1287775+00:00",
      "ReverseTime": "2025-05-02T01:56:48.1287775+00:00",
      "DeliveryTime": "2025-05-02T01:56:48.1287775+00:00",
      "SettlementTime": "2025-05-02T01:56:48.1287775+00:00",
      "DeliveryAddressStreet": "sample string 13",
      "DeliveryAddressZip": "sample string 14",
      "DeliveryAddressCity": "sample string 15",
      "DeliveryAddressCountry": "sample string 16",
      "InvoiceAddressStreet": "sample string 17",
      "InvoiceAddressZip": "sample string 18",
      "InvoiceAddressCity": "sample string 19",
      "InvoiceAddressCountry": "sample string 20",
      "CompanyBic": "sample string 21",
      "CompanyName": "sample string 22",
      "CompanyEInvoicingAddress": "sample string 23",
      "CompanyEInvoicingIntermediatorCode": "sample string 24",
      "InvoicingEmail": "sample string 25",
      "InvoiceReferenceNumber": "sample string 26",
      "CostPoolCode": "sample string 27",
      "BuyerNote": "sample string 28",
      "SellerNote": "sample string 29",
      "BuyerReference": "sample string 30",
      "SellerReference": "sample string 31",
      "IsLimitPurchase": true,
      "ReversedTotal": 33.0,
      "PurchaseItems": [
        {
          "Description": "sample string 1",
          "Amount": 2.0,
          "MerchantPurchaseItemNumber": "sample string 3",
          "GrossPrice": 4.0,
          "NetPrice": 5.0,
          "TaxPercentage": 6.0,
          "GrossTotal": 7.0,
          "NetTotal": 8.0,
          "ReversedTotal": 9.0,
          "CostPoolCode": "sample string 10",
          "TaxCode": "sample string 11",
          "BuyerReference": "sample string 12",
          "SellerReference": "sample string 13",
          "StatusEnum": 100000000
        },
        {
          "Description": "sample string 1",
          "Amount": 2.0,
          "MerchantPurchaseItemNumber": "sample string 3",
          "GrossPrice": 4.0,
          "NetPrice": 5.0,
          "TaxPercentage": 6.0,
          "GrossTotal": 7.0,
          "NetTotal": 8.0,
          "ReversedTotal": 9.0,
          "CostPoolCode": "sample string 10",
          "TaxCode": "sample string 11",
          "BuyerReference": "sample string 12",
          "SellerReference": "sample string 13",
          "StatusEnum": 100000000
        }
      ]
    },
    {
      "Id": "5a2e5f69-3a72-4b33-85c8-ee18f7e81c08",
      "Description": "sample string 2",
      "PurchaseDate": "2025-05-02T01:56:48.1287775+00:00",
      "PurchaseTotal": 4.0,
      "InvoicingFee": 5.0,
      "PaymentProviderPurchaseNumber": "sample string 6",
      "MerchantPurchaseNumber": "sample string 7",
      "PaymentReference": "sample string 8",
      "CustomerId": "cdcbecc4-642a-44ef-9ffc-142e62167e34",
      "MerchantId": "3a417133-4e72-47af-993b-a325b1d32672",
      "Merchant": {
        "Ssn": "sample string 1",
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "Email": "sample string 4",
        "Phone": "sample string 5",
        "DeliveryAddressStreet": "sample string 6",
        "DeliveryAddressZip": "sample string 7",
        "DeliveryAddressCity": "sample string 8",
        "DeliveryAddressCountry": "sample string 9",
        "InvoiceAddressStreet": "sample string 10",
        "InvoiceAddressZip": "sample string 11",
        "InvoiceAddressCity": "sample string 12",
        "InvoiceAddressCountry": "sample string 13",
        "CompanyBusinessId": "sample string 14",
        "CompanyName": "sample string 15",
        "CompanyEInvoicingAddress": "sample string 16",
        "CompanyEInvoicingIntermediatorCode": "sample string 17",
        "CompanyInvoicingEmail": "sample string 18"
      },
      "PaymentProviderId": "4d13b1a8-8b72-4967-b228-986e8cb3433f",
      "PaymentProviderAccountTransactionId": "ef63b83a-63b7-4744-b224-22524cdeeb50",
      "StatusEnum": 100000000,
      "RegistrationTime": "2025-05-02T01:56:48.1287775+00:00",
      "PaymentTime": "2025-05-02T01:56:48.1287775+00:00",
      "CancelTime": "2025-05-02T01:56:48.1287775+00:00",
      "ReverseTime": "2025-05-02T01:56:48.1287775+00:00",
      "DeliveryTime": "2025-05-02T01:56:48.1287775+00:00",
      "SettlementTime": "2025-05-02T01:56:48.1287775+00:00",
      "DeliveryAddressStreet": "sample string 13",
      "DeliveryAddressZip": "sample string 14",
      "DeliveryAddressCity": "sample string 15",
      "DeliveryAddressCountry": "sample string 16",
      "InvoiceAddressStreet": "sample string 17",
      "InvoiceAddressZip": "sample string 18",
      "InvoiceAddressCity": "sample string 19",
      "InvoiceAddressCountry": "sample string 20",
      "CompanyBic": "sample string 21",
      "CompanyName": "sample string 22",
      "CompanyEInvoicingAddress": "sample string 23",
      "CompanyEInvoicingIntermediatorCode": "sample string 24",
      "InvoicingEmail": "sample string 25",
      "InvoiceReferenceNumber": "sample string 26",
      "CostPoolCode": "sample string 27",
      "BuyerNote": "sample string 28",
      "SellerNote": "sample string 29",
      "BuyerReference": "sample string 30",
      "SellerReference": "sample string 31",
      "IsLimitPurchase": true,
      "ReversedTotal": 33.0,
      "PurchaseItems": [
        {
          "Description": "sample string 1",
          "Amount": 2.0,
          "MerchantPurchaseItemNumber": "sample string 3",
          "GrossPrice": 4.0,
          "NetPrice": 5.0,
          "TaxPercentage": 6.0,
          "GrossTotal": 7.0,
          "NetTotal": 8.0,
          "ReversedTotal": 9.0,
          "CostPoolCode": "sample string 10",
          "TaxCode": "sample string 11",
          "BuyerReference": "sample string 12",
          "SellerReference": "sample string 13",
          "StatusEnum": 100000000
        },
        {
          "Description": "sample string 1",
          "Amount": 2.0,
          "MerchantPurchaseItemNumber": "sample string 3",
          "GrossPrice": 4.0,
          "NetPrice": 5.0,
          "TaxPercentage": 6.0,
          "GrossTotal": 7.0,
          "NetTotal": 8.0,
          "ReversedTotal": 9.0,
          "CostPoolCode": "sample string 10",
          "TaxCode": "sample string 11",
          "BuyerReference": "sample string 12",
          "SellerReference": "sample string 13",
          "StatusEnum": 100000000
        }
      ]
    }
  ],
  "Ok": true,
  "ErrorMessage": "sample string 2",
  "ErrorCode": "sample string 3",
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<GetPurchasesRelatedToSettlementTransactionReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers.Merchant">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 3</ErrorCode>
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 2</ErrorMessage>
  <Message xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 4</Message>
  <Ok xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">true</Ok>
  <Reply>
    <Purchase>
      <BuyerNote>sample string 28</BuyerNote>
      <BuyerReference>sample string 30</BuyerReference>
      <CancelTime>2025-05-02T01:56:48.1287775+00:00</CancelTime>
      <CompanyBic>sample string 21</CompanyBic>
      <CompanyEInvoicingAddress>sample string 23</CompanyEInvoicingAddress>
      <CompanyEInvoicingIntermediatorCode>sample string 24</CompanyEInvoicingIntermediatorCode>
      <CompanyName>sample string 22</CompanyName>
      <CostPoolCode>sample string 27</CostPoolCode>
      <CustomerId>cdcbecc4-642a-44ef-9ffc-142e62167e34</CustomerId>
      <DeliveryAddressCity>sample string 15</DeliveryAddressCity>
      <DeliveryAddressCountry>sample string 16</DeliveryAddressCountry>
      <DeliveryAddressStreet>sample string 13</DeliveryAddressStreet>
      <DeliveryAddressZip>sample string 14</DeliveryAddressZip>
      <DeliveryTime>2025-05-02T01:56:48.1287775+00:00</DeliveryTime>
      <Description>sample string 2</Description>
      <Id>5a2e5f69-3a72-4b33-85c8-ee18f7e81c08</Id>
      <InvoiceAddressCity>sample string 19</InvoiceAddressCity>
      <InvoiceAddressCountry>sample string 20</InvoiceAddressCountry>
      <InvoiceAddressStreet>sample string 17</InvoiceAddressStreet>
      <InvoiceAddressZip>sample string 18</InvoiceAddressZip>
      <InvoiceReferenceNumber>sample string 26</InvoiceReferenceNumber>
      <InvoicingEmail>sample string 25</InvoicingEmail>
      <InvoicingFee>5</InvoicingFee>
      <IsLimitPurchase>true</IsLimitPurchase>
      <Merchant>
        <CompanyBusinessId>sample string 14</CompanyBusinessId>
        <CompanyEInvoicingAddress>sample string 16</CompanyEInvoicingAddress>
        <CompanyEInvoicingIntermediatorCode>sample string 17</CompanyEInvoicingIntermediatorCode>
        <CompanyInvoicingEmail>sample string 18</CompanyInvoicingEmail>
        <CompanyName>sample string 15</CompanyName>
        <DeliveryAddressCity>sample string 8</DeliveryAddressCity>
        <DeliveryAddressCountry>sample string 9</DeliveryAddressCountry>
        <DeliveryAddressStreet>sample string 6</DeliveryAddressStreet>
        <DeliveryAddressZip>sample string 7</DeliveryAddressZip>
        <Email>sample string 4</Email>
        <FirstName>sample string 2</FirstName>
        <InvoiceAddressCity>sample string 12</InvoiceAddressCity>
        <InvoiceAddressCountry>sample string 13</InvoiceAddressCountry>
        <InvoiceAddressStreet>sample string 10</InvoiceAddressStreet>
        <InvoiceAddressZip>sample string 11</InvoiceAddressZip>
        <LastName>sample string 3</LastName>
        <Phone>sample string 5</Phone>
        <Ssn>sample string 1</Ssn>
      </Merchant>
      <MerchantId>3a417133-4e72-47af-993b-a325b1d32672</MerchantId>
      <MerchantPurchaseNumber>sample string 7</MerchantPurchaseNumber>
      <PaymentProviderAccountTransactionId>ef63b83a-63b7-4744-b224-22524cdeeb50</PaymentProviderAccountTransactionId>
      <PaymentProviderId>4d13b1a8-8b72-4967-b228-986e8cb3433f</PaymentProviderId>
      <PaymentProviderPurchaseNumber>sample string 6</PaymentProviderPurchaseNumber>
      <PaymentReference>sample string 8</PaymentReference>
      <PaymentTime>2025-05-02T01:56:48.1287775+00:00</PaymentTime>
      <PurchaseDate>2025-05-02T01:56:48.1287775+00:00</PurchaseDate>
      <PurchaseItems>
        <PurchaseItem>
          <Amount>2</Amount>
          <BuyerReference>sample string 12</BuyerReference>
          <CostPoolCode>sample string 10</CostPoolCode>
          <Description>sample string 1</Description>
          <GrossPrice>4</GrossPrice>
          <GrossTotal>7</GrossTotal>
          <MerchantPurchaseItemNumber>sample string 3</MerchantPurchaseItemNumber>
          <NetPrice>5</NetPrice>
          <NetTotal>8</NetTotal>
          <ReversedTotal>9</ReversedTotal>
          <SellerReference>sample string 13</SellerReference>
          <StatusEnum>WaitingForPayment</StatusEnum>
          <TaxCode>sample string 11</TaxCode>
          <TaxPercentage>6</TaxPercentage>
        </PurchaseItem>
        <PurchaseItem>
          <Amount>2</Amount>
          <BuyerReference>sample string 12</BuyerReference>
          <CostPoolCode>sample string 10</CostPoolCode>
          <Description>sample string 1</Description>
          <GrossPrice>4</GrossPrice>
          <GrossTotal>7</GrossTotal>
          <MerchantPurchaseItemNumber>sample string 3</MerchantPurchaseItemNumber>
          <NetPrice>5</NetPrice>
          <NetTotal>8</NetTotal>
          <ReversedTotal>9</ReversedTotal>
          <SellerReference>sample string 13</SellerReference>
          <StatusEnum>WaitingForPayment</StatusEnum>
          <TaxCode>sample string 11</TaxCode>
          <TaxPercentage>6</TaxPercentage>
        </PurchaseItem>
      </PurchaseItems>
      <PurchaseTotal>4</PurchaseTotal>
      <RegistrationTime>2025-05-02T01:56:48.1287775+00:00</RegistrationTime>
      <ReverseTime>2025-05-02T01:56:48.1287775+00:00</ReverseTime>
      <ReversedTotal>33</ReversedTotal>
      <SellerNote>sample string 29</SellerNote>
      <SellerReference>sample string 31</SellerReference>
      <SettlementTime>2025-05-02T01:56:48.1287775+00:00</SettlementTime>
      <StatusEnum>WaitingForPayment</StatusEnum>
    </Purchase>
    <Purchase>
      <BuyerNote>sample string 28</BuyerNote>
      <BuyerReference>sample string 30</BuyerReference>
      <CancelTime>2025-05-02T01:56:48.1287775+00:00</CancelTime>
      <CompanyBic>sample string 21</CompanyBic>
      <CompanyEInvoicingAddress>sample string 23</CompanyEInvoicingAddress>
      <CompanyEInvoicingIntermediatorCode>sample string 24</CompanyEInvoicingIntermediatorCode>
      <CompanyName>sample string 22</CompanyName>
      <CostPoolCode>sample string 27</CostPoolCode>
      <CustomerId>cdcbecc4-642a-44ef-9ffc-142e62167e34</CustomerId>
      <DeliveryAddressCity>sample string 15</DeliveryAddressCity>
      <DeliveryAddressCountry>sample string 16</DeliveryAddressCountry>
      <DeliveryAddressStreet>sample string 13</DeliveryAddressStreet>
      <DeliveryAddressZip>sample string 14</DeliveryAddressZip>
      <DeliveryTime>2025-05-02T01:56:48.1287775+00:00</DeliveryTime>
      <Description>sample string 2</Description>
      <Id>5a2e5f69-3a72-4b33-85c8-ee18f7e81c08</Id>
      <InvoiceAddressCity>sample string 19</InvoiceAddressCity>
      <InvoiceAddressCountry>sample string 20</InvoiceAddressCountry>
      <InvoiceAddressStreet>sample string 17</InvoiceAddressStreet>
      <InvoiceAddressZip>sample string 18</InvoiceAddressZip>
      <InvoiceReferenceNumber>sample string 26</InvoiceReferenceNumber>
      <InvoicingEmail>sample string 25</InvoicingEmail>
      <InvoicingFee>5</InvoicingFee>
      <IsLimitPurchase>true</IsLimitPurchase>
      <Merchant>
        <CompanyBusinessId>sample string 14</CompanyBusinessId>
        <CompanyEInvoicingAddress>sample string 16</CompanyEInvoicingAddress>
        <CompanyEInvoicingIntermediatorCode>sample string 17</CompanyEInvoicingIntermediatorCode>
        <CompanyInvoicingEmail>sample string 18</CompanyInvoicingEmail>
        <CompanyName>sample string 15</CompanyName>
        <DeliveryAddressCity>sample string 8</DeliveryAddressCity>
        <DeliveryAddressCountry>sample string 9</DeliveryAddressCountry>
        <DeliveryAddressStreet>sample string 6</DeliveryAddressStreet>
        <DeliveryAddressZip>sample string 7</DeliveryAddressZip>
        <Email>sample string 4</Email>
        <FirstName>sample string 2</FirstName>
        <InvoiceAddressCity>sample string 12</InvoiceAddressCity>
        <InvoiceAddressCountry>sample string 13</InvoiceAddressCountry>
        <InvoiceAddressStreet>sample string 10</InvoiceAddressStreet>
        <InvoiceAddressZip>sample string 11</InvoiceAddressZip>
        <LastName>sample string 3</LastName>
        <Phone>sample string 5</Phone>
        <Ssn>sample string 1</Ssn>
      </Merchant>
      <MerchantId>3a417133-4e72-47af-993b-a325b1d32672</MerchantId>
      <MerchantPurchaseNumber>sample string 7</MerchantPurchaseNumber>
      <PaymentProviderAccountTransactionId>ef63b83a-63b7-4744-b224-22524cdeeb50</PaymentProviderAccountTransactionId>
      <PaymentProviderId>4d13b1a8-8b72-4967-b228-986e8cb3433f</PaymentProviderId>
      <PaymentProviderPurchaseNumber>sample string 6</PaymentProviderPurchaseNumber>
      <PaymentReference>sample string 8</PaymentReference>
      <PaymentTime>2025-05-02T01:56:48.1287775+00:00</PaymentTime>
      <PurchaseDate>2025-05-02T01:56:48.1287775+00:00</PurchaseDate>
      <PurchaseItems>
        <PurchaseItem>
          <Amount>2</Amount>
          <BuyerReference>sample string 12</BuyerReference>
          <CostPoolCode>sample string 10</CostPoolCode>
          <Description>sample string 1</Description>
          <GrossPrice>4</GrossPrice>
          <GrossTotal>7</GrossTotal>
          <MerchantPurchaseItemNumber>sample string 3</MerchantPurchaseItemNumber>
          <NetPrice>5</NetPrice>
          <NetTotal>8</NetTotal>
          <ReversedTotal>9</ReversedTotal>
          <SellerReference>sample string 13</SellerReference>
          <StatusEnum>WaitingForPayment</StatusEnum>
          <TaxCode>sample string 11</TaxCode>
          <TaxPercentage>6</TaxPercentage>
        </PurchaseItem>
        <PurchaseItem>
          <Amount>2</Amount>
          <BuyerReference>sample string 12</BuyerReference>
          <CostPoolCode>sample string 10</CostPoolCode>
          <Description>sample string 1</Description>
          <GrossPrice>4</GrossPrice>
          <GrossTotal>7</GrossTotal>
          <MerchantPurchaseItemNumber>sample string 3</MerchantPurchaseItemNumber>
          <NetPrice>5</NetPrice>
          <NetTotal>8</NetTotal>
          <ReversedTotal>9</ReversedTotal>
          <SellerReference>sample string 13</SellerReference>
          <StatusEnum>WaitingForPayment</StatusEnum>
          <TaxCode>sample string 11</TaxCode>
          <TaxPercentage>6</TaxPercentage>
        </PurchaseItem>
      </PurchaseItems>
      <PurchaseTotal>4</PurchaseTotal>
      <RegistrationTime>2025-05-02T01:56:48.1287775+00:00</RegistrationTime>
      <ReverseTime>2025-05-02T01:56:48.1287775+00:00</ReverseTime>
      <ReversedTotal>33</ReversedTotal>
      <SellerNote>sample string 29</SellerNote>
      <SellerReference>sample string 31</SellerReference>
      <SettlementTime>2025-05-02T01:56:48.1287775+00:00</SettlementTime>
      <StatusEnum>WaitingForPayment</StatusEnum>
    </Purchase>
  </Reply>
</GetPurchasesRelatedToSettlementTransactionReply>