POST api/payment-methods/UpdatePaymentMethods?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

PaymentMethodsDTO
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

statuscode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "statuscode": "sample string 3"
}

application/xml, text/xml

Sample:
<PaymentMethodsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs">
  <ID>1</ID>
  <Name>sample string 2</Name>
  <StatusCode>sample string 3</StatusCode>
</PaymentMethodsDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModelOfPaymentMethodsDTO
NameDescriptionTypeAdditional information
Data

PaymentMethodsDTO

None.

Success

boolean

None.

StatusCode

integer

None.

Message

string

None.

ErrorMessage

string

None.

Metadata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "id": 1,
    "name": "sample string 2",
    "statuscode": "sample string 3"
  },
  "Success": true,
  "StatusCode": 2,
  "Message": "sample string 3",
  "ErrorMessage": "sample string 4",
  "Metadata": {}
}

application/xml, text/xml

Sample:
<ResponseModelOfPaymentMethodsDTOb1afPy6h xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.Response">
  <ErrorMessage>sample string 4</ErrorMessage>
  <Message>sample string 3</Message>
  <Metadata />
  <StatusCode>2</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs">
    <d2p1:ID>1</d2p1:ID>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:StatusCode>sample string 3</d2p1:StatusCode>
  </Data>
</ResponseModelOfPaymentMethodsDTOb1afPy6h>