GET | /checkout/url | Get a new payment URL from WRAPI. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | query | GUID | Yes | The WRAPI GUID |
CardId | query | string | Yes | The Full Card Id to use in the format {cardType}-{cardBrand} e.g. 1-visa |
Amount | query | decimal | Yes | The Amount to pay e.g. 99.99 |
BrandName | query | string | No | The 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
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)