POST MobilePay/AgreementCreate

Create new MobilePay agreement

Request Information

URI Parameters

None.

Body Parameters

RequestMobilePayAgreementCreate
NameDescriptionTypeAdditional information
UserID

integer

None.

WebSubscriptionID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "WebSubscriptionID": 2
}

text/html

Sample:
{"UserID":1,"WebSubscriptionID":2}

application/xml, text/xml

Sample:
<RequestMobilePayAgreementCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <UserID>1</UserID>
  <WebSubscriptionID>2</WebSubscriptionID>
</RequestMobilePayAgreementCreate>

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

Response Information

Resource Description

MobilePayAgreement
NameDescriptionTypeAdditional information
Status

string

None.

RedirectURI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "RedirectURI": "sample string 2"
}

text/html

Sample:
{"Status":"sample string 1","RedirectURI":"sample string 2"}

application/xml, text/xml

Sample:
<MobilePayAgreement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <RedirectURI>sample string 2</RedirectURI>
  <Status>sample string 1</Status>
</MobilePayAgreement>