POST Vipps/CaptureCharge

Request Information

URI Parameters

None.

Body Parameters

VippsCaptureChargeGetRequest
NameDescriptionTypeAdditional information
amount

integer

None.

IdempotencyKey

string

None.

ChargeID

string

None.

AgreementID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "amount": 1,
  "IdempotencyKey": "sample string 1",
  "ChargeID": "sample string 2",
  "AgreementID": "sample string 3"
}

text/html

Sample:
{"amount":1,"IdempotencyKey":"sample string 1","ChargeID":"sample string 2","AgreementID":"sample string 3"}

application/xml, text/xml

Sample:
<VippsCaptureChargeGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CTHelpers">
  <AgreementID>sample string 3</AgreementID>
  <ChargeID>sample string 2</ChargeID>
  <IdempotencyKey>sample string 1</IdempotencyKey>
  <amount>1</amount>
</VippsCaptureChargeGetRequest>

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

Response Information

Resource Description

VippsCharge
NameDescriptionTypeAdditional information
Status

string

None.

ChargeID

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "ChargeID": "sample string 2",
  "ErrorMessage": "sample string 3"
}

text/html

Sample:
{"Status":"sample string 1","ChargeID":"sample string 2","ErrorMessage":"sample string 3"}

application/xml, text/xml

Sample:
<VippsCharge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CTHelpers">
  <ChargeID>sample string 2</ChargeID>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Status>sample string 1</Status>
</VippsCharge>