Skip to content

EDU-17778 Configuring an external Gift Card Provider#2620

Open
ricardoaerobr wants to merge 1 commit into
mainfrom
EDU-17778-Configuring-an-external-Gift-Card-Provider-guide
Open

EDU-17778 Configuring an external Gift Card Provider#2620
ricardoaerobr wants to merge 1 commit into
mainfrom
EDU-17778-Configuring-an-external-Gift-Card-Provider-guide

Conversation

@ricardoaerobr
Copy link
Copy Markdown
Collaborator

Summary

EDU-17778 Configuring an external Gift Card Provider


Type of change

  • New content — Adds new documentation.
  • Content update — Improves existing documentation (clarity, structure, examples, accuracy).
  • Bug fix — Fixes markdown issues.
  • Editorial fix — Spelling, grammar, or minor copy edits that don’t change meaning.
  • Content removal — Deletes deprecated or obsolete content.

Checklist

  • The content follows the VTEX Style Guide.
  • Markdown renders correctly (headings, lists, tables, callouts).
  • Links, images, code blocks, and examples are valid.
  • Terminology, product names, and API references are consistent.
  • Frontmatter (title, description, tags, slug) is correct
  • Files follow the expected folder structure and naming conventions.

AI review instructions

This repository supports automated AI reviews for Markdown files in the docs folder, except docs/localization.

To run reviews on this PR, add at least one of the following labels:

  • AI style review: evaluates tone and adherence to VTEX style guidelines.
  • AI grammar review: identifies grammar and spelling issues.

Once at least one label is added, the review(s) will run automatically.

After the review is completed, the corresponding label will be removed and the label AI reviewed will be added to the PR.

Note

To rerun a review, remove and add the desired label again.

@github-actions
Copy link
Copy Markdown
Contributor

👁️‍🗨️ Preview changes on Developer Portal

You can use the link below to load the Developer Portal in preview mode with the changes from this branch:

👉 Open preview environment

Below is the list of modified pages and their corresponding preview URLs:

File Preview URL Sidebar
docs/localization/configuring-an-external-gift-card-provider.md https://developers.vtex.com/docs/guides/configuring-an-external-gift-card-provider ⚠️ Missing from navigation.json


In this guide, you will learn how to:

- [Register the Gift Card Provider in VTEX](#step-1-register-the-gift-card-provider-in-vtex)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD051/link-fragments Link fragments should be valid [Context: "Register the Gift Card Provider in VTEX"]

In this guide, you will learn how to:

- [Register the Gift Card Provider in VTEX](#step-1-register-the-gift-card-provider-in-vtex)
- [Confirm the provider registration](#step-2-confirm-the-provider-registration)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD051/link-fragments Link fragments should be valid [Context: "Confirm the provider registration"]


- [Register the Gift Card Provider in VTEX](#step-1-register-the-gift-card-provider-in-vtex)
- [Confirm the provider registration](#step-2-confirm-the-provider-registration)
- [Implement the provider protocol endpoints](#step-3-implement-the-provider-protocol-endpoints)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD051/link-fragments Link fragments should be valid [Context: "Implement the provider protocol endpoints"]


Use the [Create or update gift card provider](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#put-/api/giftcardproviders/-giftCardProviderId-) endpoint to register or update a provider in VTEX.

__PUT - Update gift card provider__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "PUT - Update gift card provide..."]


Use the [Create or update gift card provider](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#put-/api/giftcardproviders/-giftCardProviderId-) endpoint to register or update a provider in VTEX.

__PUT - Update gift card provider__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD050/strong-style Strong style [Expected: asterisk; Actual: underscore]


After registering the provider, use the [List all gift card providers](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#get-/api/giftcardproviders) endpoint to confirm that the configuration is available in the VTEX account.

__GET - List all gift card providers__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD050/strong-style Strong style [Expected: asterisk; Actual: underscore]


After registering the provider, use the [List all gift card providers](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#get-/api/giftcardproviders) endpoint to confirm that the configuration is available in the VTEX account.

__GET - List all gift card providers__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD050/strong-style Strong style [Expected: asterisk; Actual: underscore]

- [Cancel a gift card transaction](https://developers.vtex.com/docs/api-reference/giftcard-provider-protocol#post-/giftcards/-giftCardId-/transactions/-transactionId-/cancellations) (`POST /giftcards/{giftCardId}/transactions/{transactionId}/cancellations`)

> ⚠️ All provider protocol endpoints must accept `application/vnd.vtex.giftcards.v1+json` as the media type. For `POST` requests, VTEX sends this value in both `Accept` and `Content-Type`. For `GET` requests, VTEX sends it in `Accept`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD028/no-blanks-blockquote Blank line inside blockquote

> ⚠️ All provider protocol endpoints must accept `application/vnd.vtex.giftcards.v1+json` as the media type. For `POST` requests, VTEX sends this value in both `Accept` and `Content-Type`. For `GET` requests, VTEX sends it in `Accept`.

> ⚠️ The provider server must also accept additional VTEX headers, such as `<ul>` `<li>` `content-length`: body size in bytes (only in POSTs)`</li>` `<li>` `x-vtex-operation-id`: Internal operation UUID `</li>` `<li>` `x-vtex-debug-id`: Debug ID (may have an empty value) `</li>` `<li>` `traceparent`: W3C distributed tracing header `</li>` `<li>` `baggage`: tracking metadata `</li>` `</li>` `accept-encoding`: gzip `</li>` `</ul>`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD028/no-blanks-blockquote Blank line inside blockquote

This request creates the transaction that reserves or debits the gift card amount. In the response, return a unique transaction `id`.

> ⚠️ VTEX uses this value as `{transactionId}` in settlement and cancellation URLs. The provider must store and recognize this identifier in subsequent requests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD028/no-blanks-blockquote Blank line inside blockquote


Use the [Create or update gift card provider](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#put-/api/giftcardproviders/-giftCardProviderId-) endpoint to register or update a provider in VTEX.

__PUT - Update gift card provider__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
__PUT - Update gift card provider__
**PUT - Update gift card provider**


After registering the provider, use the [List all gift card providers](https://developers.vtex.com/docs/api-reference/giftcard-hub-api#get-/api/giftcardproviders) endpoint to confirm that the configuration is available in the VTEX account.

__GET - List all gift card providers__
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
__GET - List all gift card providers__
**GET - List all gift card providers**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant