POST api/users/me/paypal

Creates a pending balance top-up and returns its PayPal payment URL. Taxes are added by the payment service. Balance is credited only after payment confirmation.

Request Information

URI Parameters

None.

Body Parameters

The amount to add in EUR, excluding taxes.

CreatePayPalUrlRequest
NameDescriptionTypeAdditional information
Amount

Positive amount in EUR, excluding taxes, with at most two decimal places.

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Amount": 1.0
}

application/xml, text/xml

Sample:
<CreatePayPalUrlRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models">
  <Amount>1</Amount>
</CreatePayPalUrlRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The URL at which the user can complete payment.

PayPalUrlResponse
NameDescriptionTypeAdditional information
Url

PayPal URL where the user can complete payment, including applicable taxes.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Url": "sample string 1"
}

application/xml, text/xml

Sample:
<PayPalUrlResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models">
  <Url>sample string 1</Url>
</PayPalUrlResponse>