# Support for fiat payments

ShareMint supports for fiat payments via our API.

To use this feature visit the *Admin* page of your project. In the section you can get an API access key. This key is secret and allows you to add payments made in fiat.

The API endpoint to add a fiat payment is:

```
POST https://sharemint.xyz/api/external/save-payment
```

With data:

```
slug: string
apiSecret: string
invitedById: string
value: string
quantity?: string
address?: string
email?: string
```

`slug` is the ShareMint project slug.

`apiSecret` can be found on the project's *Admin* page.

`invitedById` is the referral code of the user that referred this payment.

`value` is the amount paid in US Dollars.

`quantity` is the quantity of items purchased. Optional and defaults to `1`.

`address` is the purchaser's crypto wallet address.

`email` is the purchaser's email address.

One of `address` or `email` is required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharemint.xyz/fundamentals/support-for-fiat-payments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
