Api.Wrapi

<back to all web services

GetPaymentUrl

This resource is used to manage the order in HAPI.

The following routes are available for this service:
GET/checkout/urlGet a new payment URL from WRAPI.
GetPaymentUrl Parameters:
NameParameterData TypeRequiredDescription
IdqueryGUIDYesThe WRAPI GUID
CardIdquerystringYesThe Full Card Id to use in the format {cardType}-{cardBrand} e.g. 1-visa
AmountquerydecimalYesThe Amount to pay e.g. 99.99
BrandNamequerystringNoThe Brand Name e.g. santa, esprit, inghams

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /checkout/url HTTP/1.1 
Host: wrapi-api.dev.hotelplan.co.uk 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

(string)