POST api/MeterMACSGen2/TopUp

TopUp electricity balance for specified account

Request Information

URI Parameters

None.

Body Parameters

MMG2TopUpBindingModel
NameDescriptionTypeAdditional information
AccountCode

Code of account to top up

string

None.

BoatNo

ID of boat on account to top up

integer

None.

MarinaCode

Code of marina where to post top up invoice

string

None.

TotalValue

Value of top up

decimal number

None.

PaymentRef

Payment reference

string

None.

PaymentSuccessful

Flag to indicate successful payment taken

boolean

None.

Message

Any additional message to record against the payment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "accountCode": "sample string 1",
  "boatNo": 1,
  "marinaCode": "sample string 2",
  "totalValue": 3.1,
  "paymentRef": "sample string 4",
  "paymentSuccessful": true,
  "message": "sample string 6"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AccountCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="BoatNo"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="MarinaCode"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TotalValue"

3.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentRef"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="PaymentSuccessful"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Message"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, multipart/form-data

Sample:

Sample not available.