POST api/Orders/SaveOrderPayment

Request Information

URI Parameters

None.

Body Parameters

UpsertOrdersPaymentRequest
NameDescriptionTypeAdditional information
BaseObject

BaseOrdersPaymentModel

None.

Request Formats

application/json, text/json

Sample:
{
  "BaseObject": {
    "OrdersId": 1,
    "PaymentMethod": 2,
    "Amount": 3.0,
    "DateCreated": "2026-03-20T14:29:01.2614262+00:00",
    "CreatedBy": 5,
    "ChargeId": "sample string 6",
    "PaymentWallet": "sample string 7",
    "AmountTendered": 8.0,
    "Change": 9.0,
    "Id": 1
  }
}

application/xml, text/xml

Sample:
<UpsertOrdersPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp.TakeAwayGenie">
  <BaseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Amount>3</d2p1:Amount>
    <d2p1:AmountTendered>8</d2p1:AmountTendered>
    <d2p1:Change>9</d2p1:Change>
    <d2p1:ChargeId>sample string 6</d2p1:ChargeId>
    <d2p1:CreatedBy>5</d2p1:CreatedBy>
    <d2p1:DateCreated>2026-03-20T14:29:01.2614262+00:00</d2p1:DateCreated>
    <d2p1:OrdersId>1</d2p1:OrdersId>
    <d2p1:PaymentMethod>2</d2p1:PaymentMethod>
    <d2p1:PaymentWallet>sample string 7</d2p1:PaymentWallet>
  </BaseObject>
</UpsertOrdersPaymentRequest>

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 'UpsertOrdersPaymentRequest'.

Response Information

Resource Description

UpsertOrdersPaymentResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

BaseObject

BaseOrdersPaymentModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "BaseObject": {
    "OrdersId": 1,
    "PaymentMethod": 2,
    "Amount": 3.0,
    "DateCreated": "2026-03-20T14:29:01.2614262+00:00",
    "CreatedBy": 5,
    "ChargeId": "sample string 6",
    "PaymentWallet": "sample string 7",
    "AmountTendered": 8.0,
    "Change": 9.0,
    "Id": 1
  }
}

application/xml, text/xml

Sample:
<UpsertOrdersPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp.TakeAwayGenie">
  <BaseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/TAG.DataModels" xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Amount>3</d2p1:Amount>
    <d2p1:AmountTendered>8</d2p1:AmountTendered>
    <d2p1:Change>9</d2p1:Change>
    <d2p1:ChargeId>sample string 6</d2p1:ChargeId>
    <d2p1:CreatedBy>5</d2p1:CreatedBy>
    <d2p1:DateCreated>2026-03-20T14:29:01.2614262+00:00</d2p1:DateCreated>
    <d2p1:OrdersId>1</d2p1:OrdersId>
    <d2p1:PaymentMethod>2</d2p1:PaymentMethod>
    <d2p1:PaymentWallet>sample string 7</d2p1:PaymentWallet>
  </BaseObject>
  <Message xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">sample string 2</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/TAG.ReqResp">true</Status>
</UpsertOrdersPaymentResponse>