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

# Create transaction link

> Creates a transaction link

<ResponseExample>
  ```json Response theme={null}
  {
      "link": "https://registro.propaga.io/transaction/04e78c90-4514-4a69-b68b-06516a0e0496",
      "transactionId": "04e78c90-4514-4a69-b68b-06516a0e0496"
  }
  ```
</ResponseExample>

## Body

<ParamField body="transaction" type="object" required>
  <ParamField body="cornerStoreId" type="string" required>
    Propaga's corner store id
  </ParamField>

  <ParamField body="totalAmount" type="number" required>
    Total amount of the order
  </ParamField>

  <ParamField body="wholesalerTransactionId" type="string">
    Your internal ID for this order
  </ParamField>

  <ParamField body="products" type="array" required>
    <Expandable title="properties">
      <ParamField body="externalSKU" type="string" />

      <ParamField body="name" type="string" />

      <ParamField body="quantity" type="number" />
    </Expandable>
  </ParamField>

  <ParamField body="metadata" type="object">
    Any metadata you want to save for the transaction
  </ParamField>
</ParamField>

<ParamField path="externalId" type="string" required>
  Wholesaler's user ID
</ParamField>

## Response

<ResponseField name="link" type="string">
  Transaction link
</ResponseField>

<ResponseField name="transactionId" type="string">
  Propaga's transaction id
</ResponseField>
