> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.crowdchange.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Créer une transaction hors ligne

> Enregistrez une transaction de don hors ligne au nom de l'utilisateur authentifié pour une campagne CrowdChange, avec montant et coordonnées du donateur.

## Paramètres de chemin

<ParamField path="id" type="integer" required>
  ID de la campagne.
</ParamField>

## Corps

<ParamField body="token" type="string" required>
  Jeton d'accès de l'utilisateur.
</ParamField>

<ParamField body="amount" type="number" required>
  Montant total de la transaction hors ligne au format xxx.xx.
</ParamField>

<ParamField body="fundraiser_id" type="integer" required>
  ID de la campagne.
</ParamField>

<ParamField body="fundraiser_team_id" type="integer">
  ID de l'équipe.
</ParamField>

<ParamField body="fundraiser_page_id" type="integer">
  ID de la page.
</ParamField>

<ParamField body="email" type="string">
  Courriel du donateur.
</ParamField>

<ParamField body="business_name" type="string">
  Nom de l'entreprise
</ParamField>

<ParamField body="billing" type="object">
  Informations de facturation.

  <Expandable title="propriétés">
    <ParamField body="first_name" type="string">
      Prénom du donateur.
    </ParamField>

    <ParamField body="last_name" type="string">
      Nom de famille du donateur.
    </ParamField>

    <ParamField body="address" type="string" required>
      Adresse municipale.
    </ParamField>

    <ParamField body="city" type="string" required>
      Ville.
    </ParamField>

    <ParamField body="state" type="string" required>
      État ou province.
    </ParamField>

    <ParamField body="zip" type="string" required>
      Code postal.
    </ParamField>

    <ParamField body="country" type="string" required>
      Code de pays ISO 3166-1 alpha-2.
    </ParamField>
  </Expandable>
</ParamField>

## Réponse

<ResponseField name="id" type="integer">
  ID de la transaction.
</ResponseField>

<ResponseField name="user_id" type="integer">
  ID du donateur.
</ResponseField>

<ResponseField name="email" type="string">
  Courriel du donateur.
</ResponseField>

<ResponseField name="amount" type="number">
  Montant total.
</ResponseField>

<ResponseField name="currency" type="string">
  Code de devise. Valeurs permises : `CAD`, `USD`, `AUD`, `EUR`
</ResponseField>

<ResponseField name="fundraiser_id" type="integer">
  ID de la campagne.
</ResponseField>

<ResponseField name="fundraiser_team_id" type="integer">
  ID de l'équipe.
</ResponseField>

<ResponseField name="fundraiser_page_id" type="integer">
  ID de la page.
</ResponseField>

**Autres réponses**

| Status | Description |
| ------ | ----------- |
| `400`  | Bad Request |
| `403`  | Forbidden   |

<ResponseExample>
  ```json theme={null}
  {
    "id": 123123,
    "user_id": 120120,
    "email": "john@example.com",
    "amount": 49.95,
    "currency": "USD",
    "fundraiser_id": 1,
    "fundraiser_team_id": 1,
    "fundraiser_page_id": 1
  }
  ```
</ResponseExample>
