POST api/OuterGatePrePaid/Add
Request Information
URI Parameters
None.
Body Parameters
AddPrePaidRequestName | Description | Type | Additional information |
---|---|---|---|
amount |
Recharge amount |
decimal number |
Required |
cause |
Prepaid cause |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "amount": 1.0, "cause": "sample string 2" }
application/xml, text/xml
Sample:
<AddPrePaidRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tocode.Sepafin.Api.PrePaid"> <Amount>1</Amount> <Cause>sample string 2</Cause> </AddPrePaidRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddPrePaidResponseName | Description | Type | Additional information |
---|---|---|---|
identification |
Id of prepaid request |
globally unique identifier |
None. |
cause |
Prepaid cause (autogenerated if null) |
string |
None. |
createdAt |
Creation date |
date time |
None. |
state |
State |
PrepaidStates |
None. |
stateValue |
State |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "identification": "bb1e7a60-85a9-4a11-9cfb-dbae27721301", "cause": "sample string 2", "createdAt": "2025-05-14T03:23:00.0785106+02:00", "state": 0, "stateValue": "Registered" }
application/xml, text/xml
Sample:
<AddPrePaidResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tocode.Sepafin.Api.PrePaid"> <Cause>sample string 2</Cause> <CreatedAt>2025-05-14T03:23:00.0785106+02:00</CreatedAt> <Identification>bb1e7a60-85a9-4a11-9cfb-dbae27721301</Identification> <State>Registered</State> </AddPrePaidResponse>