@one-view/voucher-wallet-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

FORMAT: 1A HOST: https://api-pandacare.foodpanda.com/voucher-wallet

voucher-wallet

Voucher wallet plugin

Voucher Wallet [/v1/customers/{geid}/{customerId}/wallet]

Get voucher wallet

  • Parameters
    • geid (string, required, FP_SG) - global entity id
    • customerId (string, required) - customer ID

Get voucher wallet [GET]

  • Request

    • Headers

        Authorization: bearer token
        X-Contact-Id: case-id
      
  • Response 200 (application/json)

    • Attributes (Vouchers)
  • Response 403 (application/json)

    • Attributes (Error)
  • Response 404 (application/json)

    • Attributes (Error)
  • Response 500 (application/json)

    • Attributes (Error)

Voucher [/v1/vouchers/{geid}/{voucherCode}]

Get voucher by code

  • Parameters
    • geid (string, required, FP_SG) - global entity id
    • voucherCode (string, required) - voucher code

Get single voucher by code [GET]

  • Request

    • Headers

        Authorization: bearer token
        X-Contact-Id: case-id
      
  • Response 200 (application/json)

    • Attributes (Voucher)
  • Response 403 (application/json)

    • Attributes (Error)
  • Response 404 (application/json)

    • Attributes (Error)
  • Response 500 (application/json)

    • Attributes (Error)

Data Structures

int32 (number)

int64 (number)

error_object (object)

  • status (string)
  • title (string)

Error (object)

  • errors (array[error_object], fixed-type)

Vouchers

  • list (array[Voucher], required, fixed-type)

Voucher

  • code : vmdMlZ8 (string) - voucher code
  • name : happy new year (string) - voucher name
  • description : for user activation (string) - voucher description
  • expiry : 1619667165 (string) - timestamp formatted date
  • minimumOrder : $10.00 (string) minimum order amount
  • value : $20.00 (string) voucher value
  • status (VoucherStatus)
  • attributes (array[VoucherAttribute], fixed-type)

VoucherStatus (enum)

  • APPLICABLE
  • NOT_APPLICABLE
  • EXPIRED
  • USED

VoucherAttribute

  • label : code (string, required) - voucher label
  • value (object) - actual voucher value
  • displayValue : vmdMlZ8 (string, required) - voucher value
  • isRestricted : true (boolean, required) - is the value restricted to be copied

Readme

Keywords

none

Package Sidebar

Install

npm i @one-view/voucher-wallet-types

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

16.5 kB

Total Files

4

Last publish

Collaborators

  • ramadimasatria
  • forex
  • ichsanrp
  • alicanakyuz
  • gabrielang-fp
  • hendra.wijaya
  • fp_apac_jonathan.sudibya
  • jianann-fp
  • shing-fp
  • alipsidik