Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gift Card] Schema documented is different from what is actually returned #7

Open
callmekatootie opened this issue Oct 21, 2022 · 3 comments

Comments

@callmekatootie
Copy link
Owner

Reference

The return response seems to be flat structure - with region_id and region being passed.

In reality, only region is passed in the response

@callmekatootie
Copy link
Owner Author

Actually, the full list of values returned:

{
  "id": "gift_01GFXBQ0V9TEWSJVT6AYQ2HKME",
  "region": {
    "id": "reg_01GFTW5G37J5E3FCX8XEJGWEZ9",
    "created_at": "2022-10-20T14:18:44.647Z",
    "updated_at": "2022-10-20T14:18:44.647Z",
    "deleted_at": null,
    "name": "EU",
    "currency_code": "eur",
    "tax_rate": 0,
    "tax_code": null,
    "gift_cards_taxable": true,
    "automatic_taxes": true,
    "tax_provider_id": null,
    "metadata": null,
    "payment_providers": [
      {
        "id": "stripe",
        "is_installed": true
      },
      {
        "id": "manual",
        "is_installed": true
      }
    ],
    "fulfillment_providers": [
      {
        "id": "manual",
        "is_installed": true
      }
    ]
  },
  "code": "VSYI-5UHT-OLXC-4WQX",
  "value": 4500,
  "balance": 4500
}

@callmekatootie
Copy link
Owner Author

There's no created_at, updated_at, ends_at...

@callmekatootie
Copy link
Owner Author

Region does not seem to return countries in it...

Lots of inconsistencies in what is returned and what isn't... API specification probably needs a recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant