| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| POST | /OwnerCards/Purchase/Quote |
|---|
export class LocalizedMessage
{
public is?: string;
public en?: string;
public constructor(init?: Partial<LocalizedMessage>) { (Object as any).assign(this, init); }
}
export class OwnerCardPurchaseQuoteResult
{
public ownerCardTypeId?: number;
public ownerId?: number;
public currency?: string;
public priceMinor?: number;
public giftAppliedMinor?: number;
public remainingMinor?: number;
public giftHoldId?: number;
public fullyCoveredByGiftCard?: boolean;
public requiresCardMandate?: boolean;
public giftRejectedReason?: string;
public giftMessage?: LocalizedMessage;
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<OwnerCardPurchaseQuoteResult>) { (Object as any).assign(this, init); }
}
export class OwnerCardPurchaseQuoteRequest
{
public ownerCardTypeId?: number;
public giftCardCode?: string;
public idempotencyKey?: string;
public isRecurring?: boolean;
public constructor(init?: Partial<OwnerCardPurchaseQuoteRequest>) { (Object as any).assign(this, init); }
}
TypeScript OwnerCardPurchaseQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"ownerCardTypeId":0,"giftCardCode":"String","idempotencyKey":"String","isRecurring":false}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}