| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| POST | /OwnerCards/Purchase/Quote |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OwnerCardTypeId | body | int | No | |
| GiftCardCode | body | string | No | |
| IdempotencyKey | body | string | No | |
| IsRecurring | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OwnerCardTypeId | form | int | No | |
| OwnerId | form | int | No | |
| Currency | form | string | No | |
| PriceMinor | form | int | No | |
| GiftAppliedMinor | form | int | No | |
| RemainingMinor | form | int | No | |
| GiftHoldId | form | int? | No | |
| FullyCoveredByGiftCard | form | bool | No | |
| RequiresCardMandate | form | bool | No | |
| GiftRejectedReason | form | string | No | |
| GiftMessage | form | LocalizedMessage | No | |
| StatusCode | form | int | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Is | form | string | No | |
| En | form | string | No |
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.
POST /OwnerCards/Purchase/Quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ownerCardTypeId: 0,
giftCardCode: String,
idempotencyKey: String,
isRecurring: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ownerCardTypeId: 0,
ownerId: 0,
currency: String,
priceMinor: 0,
giftAppliedMinor: 0,
remainingMinor: 0,
giftHoldId: 0,
fullyCoveredByGiftCard: False,
requiresCardMandate: False,
giftRejectedReason: String,
giftMessage:
{
is: String,
en: String
},
statusCode: 0,
message: String
}