> ## 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 pour une campagne CrowdChange au nom d'un donateur, incluant montant, mode de paiement et coordonnées.

## Paramètres de chemin

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

## Paramètres du corps

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

<ParamField body="name" type="string">
  Nom complet du donateur.
</ParamField>

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

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

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

<ParamField body="is_lump_sum" type="boolean">
  Indique si la transaction est enregistrée comme un montant forfaitaire.
</ParamField>

<ParamField body="is_pending" type="boolean">
  Indique si la transaction est en attente.
</ParamField>

<ParamField body="pay_method" type="string">
  Mode de paiement utilisé pour la transaction hors ligne.
</ParamField>

<ParamField body="comment" type="string">
  Commentaire associé à la transaction.
</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="business_name" type="string">
      Nom de l'entreprise
    </ParamField>

    <ParamField body="is_foundation" type="boolean">
      Indique si le don est effectué par une fondation.
    </ParamField>

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

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

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

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

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

    <ParamField body="phone" type="string">
      Numéro de téléphone du donateur.
    </ParamField>
  </Expandable>
</ParamField>

## Réponse

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

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

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

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

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

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

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

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

**Autres réponses**

| Statut | Description      |
| ------ | ---------------- |
| `400`  | Requête invalide |
| `403`  | Interdit         |

<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>
