---
updatedAt: 2026-04-21T16:19:07.000Z
---

# POST Create a Transaction Asynchronously

`POST  /disbursement/v1/transactions/async`

# Development Guide

The 'Create a Transaction Asynchronously' endpoint accepts all data required for the transaction and will respond synchronously with a `transactionId` resource. This allows transaction to be processed with high throughput.

MoneyGram will asynchronously validate the data for compliance purposes and process the transaction. Once MoneyGram has processed the transaction, the application can poll the [Retrieve a Lite Transaction Status](https://moneygram-group.readme.io/moneygram-developer/reference/transactionlookupsummary) or listen to the [Webhook](https://moneygram-group.readme.io/moneygram-developer/docs/subscription-types) to asynchronously retrieve the transaction  `referenceNumber` and quote information.

<br />

<br />

### 1. Prepare headers & authentication:

The application must call the *[Create a transaction with Auto-Commit Async](https://developer.moneygram.com/moneygram-developer/reference/instructpayouttransactioncreateasync)*' endpoint with a POST HTTP method, providing the OAuth `access_token` in the header and all other required header values.

<br />

> **Note**:  MoneyGram uses the OAuth 2.0 framework. The application must use their  [OAuth client credentials](https://developer.moneygram.com/moneygram-developer/docs/o-auth-api) to generate an `access_token` by calling the [Get access token](https://developer.moneygram.com/moneygram-developer/reference/getaccesstoken) endpoint. The token is valid for **1 hour** and must be passed as a header value in all subsequent API HTTP calls.  [Learn More](https://developer.moneygram.com/moneygram-developer/docs/o-auth-api)

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

<Recipe slug="batch-disbursement-auto-commit-async-headers" title="Batch Disbursement Auto-Commit Async - Headers" />

<br />

<br />

<br />

### 2. Provide request body:  "Transact by send amount"  *OR* "Transact by receive amount":

The application must use the <a href="https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/" target="_blank">oneOf Keyword</a> to update a transaction by send or receive amount. At this point the application also has the option to **re-quote** the `transactionId` by entering a different `sendAmount.value`, `serviceOptionCode` or `destinationCountry`:

<br />

* **Transact by send amount:** The application must provide the following required fields in the request body: `targetAudience`, `agentPartnerId`, `destinationCountryCode `,  `serviceOptionCode`, `sendAmount.value`,  `sendAmount.currencyCode`, and `receiveCurrencyCode`. <br />
  ***OR***

<br />

* **Transact by receive amount:** The application must provide the following required fields in the request body: `targetAudience`, `agentPartnerId`, `destinationCountryCode `,  `serviceOptionCode`,  `receiveAmount.value`, `receiveAmount.currencyCode`, and `sendCurrencyCode`

<br />

> **Note**:
>
> * The Update API uses [ISO Standards ](https://developer.moneygram.com/moneygram-developer/docs/api-overview) for country and currency values.  MoneyGram provides [Reference Data APIs](https://developer.moneygram.com/moneygram-developer/docs/reference-data-api-overview) which can be queried to understand the supported values and associated metadata.
> * Additional data collection may be required based on the `sendAmount`and `destinationCountryCode`.

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

<Recipe slug="batch-disbursement-auto-commit-async-by-send-amount" title="Batch Disbursement Auto-Commit Async - By Send Amount" />

> .

<Recipe slug="batch-disbursement-auto-commit-async-by-receive-amount" title="Batch Disbursement Auto-Commit Async - By Receive Amount" />

<br />

<br />

<br />

### 3. Provide the `sender`  in the request body:

he the application must use the <a href="https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/" target="_blank">oneOf Keyword</a> to provide the sender information. The application can use three oneOf options to provide sender information:

<br />

* **Option 1 - `businessProfileId`:** For partner's using a MoneyGram business profile, the applications can provide the MoneyGram `businessProfileId`. To use this option, the application must first call the [Create Business Profile API]() to create a business profile at MoneyGram and generate a `businessProfileId`. The `businessProfileId` is a unique identifier of the business and will last the life time of the account. <br />
  ***OR***

<br />

* **Option 2 - `partnerBusinessProfileId`**: For partner's using their own business profile, the application can pass their unique profile identifier in the `partnerBusinessProfileId` . The application must first call the [Create Business Profile API]() to create a business profile at MoneyGram and pass their unique `partnerBusinessProfileId`. MoneyGram will associate the partner's identifier with our business profile creation. <br />
  ***OR***

<br />

* **Option 3 - `business`**: For partner's using an account-free model, the application can pass all the business sender fields in the business object.

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

<Recipe slug="batch-disbursement-auto-commit-async-sender-businessprofileid" title="Batch Disbursement Auto-Commit Async - Sender (businessProfileId)" />

> .

<Recipe slug="batch-disbursement-auto-commit-async-sender-partnerbusinessprofileid" title="Batch Disbursement Auto-Commit Async - Sender (partnerBusinessProfileId)" />

> .

<Recipe slug="batch-disbursement-auto-commit-async-sender-business" title="Batch Disbursement Auto-Commit Async - Sender (business)" />

<br />

<br />

<br />

### 4. Provide the required Beneficiary fields in the request body:

The application must use the <a href="https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/" target="_blank">oneOf Keyword</a> to provide the beneficiary. The application can only use one oneOf options to provide beneficiary information in this application when performing a B2C transaction:

<br />

* **Option 1 - `consumer`**: For partner's performing a Business-to-Consumer (B2C) transactions, the application can provide `consumer` details as the beneficiary.

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

> .

<Recipe slug="batch-disbursement-auto-commit-async-benficiary-consumer" title="Batch Disbursement Auto-Commit Async - Benficiary (Consumer)" />

<br />

<br />

<br />

### 5. Provide the`transactionInformation` in the request body (optional):

Any required **transaction information** can be provided in the `transactionInformation` object.

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

<Recipe slug="batch-disbursement-auto-commit-async-transaction-information" title="Batch Disbursement Auto-Commit Async - Transaction Information" />

<br />

<br />

<br />

### 6. Make a request and handle response:

The application must call the 'Create a transaction with auto-commit async' endpoint with a POST HTTP method. The application must build to handle the following response scenarios:

<br />

* **Success | Parse the Response | 200 OK HTTP Status**\
  When the 'Create Transaction Asynchronously' endpoint responds with a 200 HTTP Status the respond with a `transactionId`.  MoneyGram will process the transaction Asynchronously.

<br />

* **Failed | Handle the Error  | 400 Bad Request HTTP Status**\
  When the 'Create a transaction with auto-commit async' endpoint responds with 400 Bad Request HTTP Status the application cannot proceed. Specific error code/s will be returned with an array of offending fields. The application will need to resolve these errors and resubmit the transaction. The application can make repeated attempts on the 'Create a transaction with auto-commit' endpoint until validation is successful.

<br />

> **Note**: In some scenarios,  [enhanced due diligence](https://developer.moneygram.com/moneygram-developer/docs/handling-additional-compliance-data) needs to be undertaken on the consumer.  Specific error code/s will be returned and an array of offending fields. The fields/values must to be provided and resubmitted on the Update API for further checks.

<br />

<Callout icon="🚀" theme="default">
  ### Launch Code Example
</Callout>

<Recipe slug="batch-disbursement-auto-commit-async-200-ok" title="Batch Disbursement Auto-Commit Async - 200 OK" />

> .

<Recipe slug="batch-disbursement-auto-commit-async-400-bad-request" title="Batch Disbursement Auto-Commit Async - 400 Bad Request" />

<br />

<br />

<br />

### 8. You're Done! Listen to the [Webhook ](https://moneygram-group.readme.io/moneygram-developer/docs/subscription-types)or use the ['Retrieve a Lite Transaction Status'](https://moneygram-group.readme.io/moneygram-developer/docs/get-retrieve-a-transaction-summary) to get the `referenceNumber` asynchronously:

The application must listen to the webhook that will respond with the `referenceNumber` in a notification asynchronously. The application can also poll the 'Retrieve a Lite Transaction Status' API to get the `referenceNumber` asynchronously.

<br />

***

<br />

# Code Examples

<br />

```node
const axios = require('axios');
const { v4: uuidv4 } = require('uuid');

const updateTransaction = async () => {

    // Step 1: Read configuration values with upmost security
    const token = "your_access_token_from_oauth_response"
    // For production - api.moneygram.com & For test - sandboxapi.moneygram.com    
    const host = "sandboxapi.moneygram.com";
    const transactionId = "current_transaction_id";
    const url = 'https://' + host + '/disbursement/v1/transactions/async';

    // Step 2: Create the PUT request headers & body
    const headers = {
        'Content-Type': 'application/json',
        'X-MG-ClientRequestId': uuidv4(), // New UUID for each request tracing
        'Authorization': 'Bearer ' + token,
    };
    const request = {
        agentPartnerId: "your_partner_id",
        targetAudience: "AGENT_FACING",
        userLanguage: "en-US",
        destinationCountryCode: "USA",
        destinationCountrySubdivisionCode: "US-MN",
        serviceOptionCode: "WILL_CALL",
        sendAmount: {
            value: 500,
            currencyCode: "USD"
        },
        receiveCurrencyCode: "USD",
        sender: {
            business: {
                businessName: "ACME",
                legalEntityName: "ACME",
                businessRegistrationNumber: "ACME2024",
                businessCountryOfRegistration: "USA",
                address: {
                    line1: "100 Main St",
                    city: "Springfield",
                    countryCode: "USA"
                }
            }
        },
        beneficiary: {
            consumer: {
                name: {
                    firstName: "Sally",
                    lastName: "Smith"
                },
                address: {
                    line1: "200 Main St",
                    city: "Springfield",
                    countryCode: "USA"
                }
            }
        }
    }
    try {
        // Step 3: Send the request and obtain the response
        axios.put(url, request, { headers })
            .then(function (response) {
                // Step 4: Parse the success response and process further
                // Verify readyForCommit is true, if yes, transaction is ready to commit
                console.log(JSON.stringify(response.data, null, 2))
            })
            .catch(function (error) {
                // Step 5: Parse the error response and handle the errors
                if (error.response) {
                    console.log('Response status:', error.response.status);
                    console.log('Response body:', error.response.data);
                } else {
                    // TODO: handle generic errors
                    console.error('Error:', error.message);
                }
            });
    } catch (error) {
        // TODO: handle exception
        console.error('Error:', error.message);
    }
};

updateTransaction();
```
```python
import requests
import uuid
import json

def update_transaction():

    # Step 1: Read configuration values with upmost security
    token = "your_access_token_from_oauth_response"
    # For production - api.moneygram.com & For test - sandboxapi.moneygram.com    
    host = "sandboxapi.moneygram.com";
    transactionId = "current_transaction_id";
    url = 'https://' + host + '/disbursement/v1/transactions/async';

    # Step 2: Create the PUT request headers & body
    headers = {
        'Content-Type': 'application/json',
        'X-MG-ClientRequestId': str(uuid.uuid4()), # New UUID for each request tracing
        'Authorization': 'Bearer ' + token,
    }
    request = {
      'agentPartnerId': 'your_partner_id',
      'targetAudience': 'AGENT_FACING',
      'userLanguage': 'en-US',
      'destinationCountryCode': 'USA',
      'destinationCountrySubdivisionCode': 'US-MN',
      'serviceOptionCode': 'WILL_CALL',
      'sendAmount': {
          'currencyCode': 'USD',
          'value': 500
      },
      'receiveCurrencyCode': 'USD',
      'sender': {
          'business': {
              'businessName': "ACME",
              'legalEntityName': "ACME",
              'businessRegistrationNumber': "ACME2024",
              'businessCountryOfRegistration': "USA",
                   'address': {
                      'line1': "100 Main St",
                      'city': "Springfield",
                      'countryCode': "USA"
              }
         }
    },
      'beneficiary': {
         'consumer': {
          'name': {
            'firstName': "Sally",
            'lastName': "Smith"
          },
           'address': {
            'line1': "200 Main St",
            'city': "Springfield",
            'countryCode': "USA"
          }
      }
    }
    }
    try:
        # Step 3: Send the request and obtain the response
        response = requests.put(url, json=request, headers=headers)

        # Step 4: Parse the success response and process further
        if response.status_code == 200:
            parsed_response = json.dumps(json.loads(response.text), indent=2)
            print(parsed_response)
        else:
            # Step 5: Parse the error response and handle the errors
            print("Request failed with status code:", response.status_code)
            print(json.dumps(json.loads(response.text), indent=2))

    except requests.exceptions.RequestException as e:
        # Print any error that occurred during the request
        # TODO: handle exception
        print("An error occurred:", e)

update_transaction()
```
```java
package disbursement;

import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import javax.json.JsonWriter;
import java.io.StringWriter;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.UUID;

public class UpdateTransaction {

    public static void main(String[] args) {
        // Step 1: Read configuration values with upmost security
        String token = "your_access_token_from_oauth_response";

        // For production - api.moneygram.com & For test - sandboxapi.moneygram.com
        String host = "sandboxapi.moneygram.com";
        String transactionId = "current_transaction_id";
        String tokenEndpoint = "https://" + host + "/disbursement/v1/transactions/async" 

        // Step 2: Create the PUT request headers & body
        // Create a JSON object
        JsonObjectBuilder sendAmountBuilder = Json.createObjectBuilder()
            .add("value", 500)
            .add("currencyCode", "USD");
        JsonObjectBuilder senderBuilder = Json.createObjectBuilder()
            .add("sender", "business")
            .add("businessName", "ACME")
            .add("legalEntityName", "ACME")
            .add("businessRegistrationNumber", "ACME2024")
            .add("businessCountryOfRegistration", "USA");
        JsonObjectBuilder beneficiaryBuilder = Json.createObjectBuilder()
            .add("beneficiary", "consumer")
            .add("name", Json.createObjectBuilder().add("firstName", "firstName").add("lastName", "lastName"))
            .add("address",Json.createObjectBuilder().add("line1", "line1").add("city", "city").add("countryCode", "countryCode"));
        JsonObjectBuilder requestBuilder = Json.createObjectBuilder()
            .add("agentPartnerId", "your_partner_id")
            .add("targetAudience", "AGENT_FACING")
            .add("userLanguage", "en-US")
            .add("destinationCountryCode", "USA")
            .add("destinationCountrySubdivisionCode", "US-MN")
            .add("serviceOptionCode", "WILL_CALL")
            .add("sendAmount", sendAmountBuilder)
            .add("receiveCurrencyCode", "USD")
            .add("sender", senderInitiator)
            .add("beneficiary", beneficiaryBuilder);

        JsonObject jsonObject = requestBuilder.build();
        // Create a StringWriter to write the JSON string
        StringWriter stringWriter = new StringWriter();
        try (JsonWriter jsonWriter = Json.createWriter(stringWriter)) {
            jsonWriter.writeObject(jsonObject);
        }
        // Get the JSON string from the StringWriter
        String jsonString = stringWriter.toString();

        HttpClient httpClient = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create(tokenEndpoint))
                .PUT(HttpRequest.BodyPublishers.ofString(jsonString))
                .setHeader("Authorization", "Bearer " + token)
                .setHeader("X-MG-ClientRequestId", String.valueOf(UUID.randomUUID()))
                .build();

        try {
            // Step 3: Send the request and obtain the response
            HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

            // Retrieve the status code and body from the response
            int statusCode = response.statusCode();

            // Step 4: Parse the success response and process further
            if (statusCode == 200) {
                String responseBody = response.body();
                System.out.println(responseBody);
            } else {
                // Step 5: Parse the error response and handle the errors
                String responseBody = response.body();
                System.out.println(responseBody);
            }
        } catch (Exception e) {
            e.printStackTrace();
            // TODO: handle exception
        }
    }
}
```

<br />

***

<br />

# Support APIs

To make your development easier, MoneyGram has provided a **Reference Data APIs Module** that can be queried to provide a list of supported fields, values and associated meta-data to use in your integration.

| Name                                                                                                                         | HTTP Method | Endpoints                                   | Description                                                         |
| :--------------------------------------------------------------------------------------------------------------------------- | :---------- | :------------------------------------------ | :------------------------------------------------------------------ |
| [Retrieve Countries](https://developer.moneygram.com/moneygram-developer/reference/countries-2)                              | GET         | /reference-data/v1/Country                  | Retrieves supported values and metadata for countries               |
| [Retrieve Countries ISO3](https://developer.moneygram.com/moneygram-developer/reference/country)                             | GET         | /reference-data/v1 /countries/`{iso3Code}`  | Retrieves supported values and metadata for countries by ISO 3 Code |
| [Retrieve Currencies](https://developer.moneygram.com/moneygram-developer/reference/currencies-2)                            | GET         | /reference-data/v1/currencies               | Retrieves supported values and metadata for currencies              |
| [Retrieve Enumerations](https://developer.moneygram.com/moneygram-developer/reference/enumerations-2)                        | GET         | /reference-data/v1/enumerations             | Retrieves enumerated values for fields                              |
| [Retrieve Identification Documents](https://developer.moneygram.com/moneygram-developer/reference/identificationdocuments-1) | GET         | /reference-data/v1/identification-Documents | Retrieves required fields for identification documents              |
| [Retrieve Service Options](https://developer.moneygram.com/moneygram-developer/reference/serviceoptions)                     | GET         | /reference-data/v1/payout-options           | Retrieves supported values and metadata for Service Options         |

<br />

***

<br />

# API Structure

<br />

## Header Parameters

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `X-MG-ClientRequestId`
      </td>

      <td>
        String
      </td>

      <td>
        Required
      </td>

      <td>
        Client Request ID that can be passed by the client application.  
        Client request ID must be unique within a single session for unique requests.  
        This attribute can be used for ensuring idempotent request processing for some APIs.  
        MoneyGram recommends using a UUID for the value of this field.
      </td>
    </tr>

    <tr>
      <td>
        `X-MG-ConsumerIPAddress`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        IP Address of the system initiating the session
      </td>
    </tr>
  </tbody>
</Table>

<br />

<br />

***

## Request Body Parameters

<br />

| Body Parameter                      | Description                |
| :---------------------------------- | :------------------------- |
| transactBySendAmountAsyncRequest    | Transact by send amount    |
| transactByReceiveAmountAsyncRequest | Transact by receive amount |

<br />

***

<br />

## Request Body Fields

### Partner Information, Service Option, Destination, Amounts

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `targetAudience`
      </td>

      <td>
        String (Required)
      </td>

      <td>
        Tailors MoneyGram’s error messages and field metadata to an in-store, digital or crypto customer. (Enumerated value)  
        _NOTE: For a full list of accepted target audience values. See the TARGET_AUDIENCE enumeration from the [Reference Data Enumerations endpoint](https://developer.moneygram.com/moneygram-developer/reference/enumerations-2) _
      </td>
    </tr>

    <tr>
      <td>
        `agentPartnerId`
      </td>

      <td>
        String (Required)  
        Max length: 8
      </td>

      <td>
        Unique identifier for the agent or partner
      </td>
    </tr>

    <tr>
      <td>
        `userLanguage`
      </td>

      <td>
        String (Optional)  
        Max length: 6
      </td>

      <td>
        Language used by the user/operator
      </td>
    </tr>

    <tr>
      <td>
        `partnerTransactionId`
      </td>

      <td>
        String (Optional)
      </td>

      <td>
        Partners Unique identifier for the transaction resource.
      </td>
    </tr>

    <tr>
      <td>
        `destinationCountryCode`
      </td>

      <td>
        String (Required)  
        Max Length: 3
      </td>

      <td>
        Transaction Destination Country (ISO alpha-3 code)  
        _NOTE: For a full list of accepted destination Countries and supported destinationCountrySubdivisionCode see [Reference Data API Module: Retrieve Countries ISO3 endpoint](https://moneygram-group.readme.io/moneygram-developer/docs/countries-iso3-code)_
      </td>
    </tr>

    <tr>
      <td>
        `destinationCountrySubdivisionCode`
      </td>

      <td>
        String (Optional)  
        Max length: 6
      </td>

      <td>
        Destination state/province is conditionally required when transacting to certain destination countries. (ISO alpha-3 code)  
        _NOTE: For a full list of accepted destination countries and supported destination country subdivision codes see [Reference Data API Module: Retrieve Countries ISO3 endpoint](https://moneygram-group.readme.io/moneygram-developer/docs/countries-iso3-code)_
      </td>
    </tr>

    <tr>
      <td>
        `serviceOptionCode`
      </td>

      <td>
        String (Required)  
        Max length: 21
      </td>

      <td>
        Unique category code to identify the transaction method  
        _NOTE: For a full list of accepted service option codes per destination country see the [Reference Data API Module: service-options endpoint](https://developer.moneygram.com/moneygram-developer/docs/get-retrieve-service-options)_
      </td>
    </tr>

    <tr>
      <td>
        `serviceOptionRoutingCode`
      </td>

      <td>
        String (Optional)  
        Max length: 21
      </td>

      <td>
        Unique identifier of the individual banking, wallet, or card provider for the service option.  
        _NOTE: For a full list of accepted service option codes per destination country see the [Reference Data API Module: service-options endpoint](https://developer.moneygram.com/moneygram-developer/docs/get-retrieve-service-options)_
      </td>
    </tr>

    <tr>
      <td>
        `sendAmount.value`
      </td>

      <td>
        Number (Required)  
        Min length: 0  
        Max length: 14  
        Max Decimal Value: 3
      </td>

      <td>
        Transaction amount and currency excluding fees and exchange rate.  
        _NOTE: For Crypto partners this is the fiat currency for the BUY/Sell or Ramp-on/Ramp-off_  
        _For a full list of transaction currency codes see the [API Reference Data Module: currencies endpoint](https://moneygram-group.readme.io/moneygram-developer/docs/currencies)_
      </td>
    </tr>

    <tr>
      <td>
        `sendAmount.currencyCode`
      </td>

      <td>
        String (Required)  
        Max length: 3
      </td>

      <td>
        Transaction send currency code for a [transactBySendAmountRequest](https://developer.moneygram.com/moneygram-developer/docs/put-update-a-transaction-disbursements#provide-body-payload--transact-by-send-amount--or-transact-by-receive-amount)
      </td>
    </tr>

    <tr>
      <td>
        `receiveCurrencyCode`
      </td>

      <td>
        String (Required)  
        Max length: 3
      </td>

      <td>
        Receive Currency is needed when transacting to a destination country that supports more than one currency for a [transactBySendAmountRequest](https://developer.moneygram.com/moneygram-developer/docs/put-update-a-transaction-disbursements#provide-body-payload--transact-by-send-amount--or-transact-by-receive-amount) (ISO alpha-3 code)
      </td>
    </tr>

    <tr>
      <td>
        `receiveAmount.value`
      </td>

      <td>
        Number (Required)  
        Min length: 0  
        Max length: 14  
        Max Decimal Value: 3
      </td>

      <td>
        Transaction receive amount excluding fees and exchange rate for a [transactByReceiveAmountRequest](https://developer.moneygram.com/moneygram-developer/docs/update-a-transaction#make-a-request)  
        [Transaction Currency (ISO alpha-3 code)](https://moneygram-group.readme.io/moneygram-developer/docs/currencies)
      </td>
    </tr>

    <tr>
      <td>
        `receiveAmount.currencyCode`
      </td>

      <td>
        String (Required)  
        Max length: 3
      </td>

      <td>
        Transaction receive currency code for a [transactByReceiveAmountRequest](https://developer.moneygram.com/moneygram-developer/docs/update-a-transaction#make-a-request) (ISO alpha-3 code)
      </td>
    </tr>

    <tr>
      <td>
        `sendCurrencyCode`
      </td>

      <td>
        String (Optional)  
        Max length: 3
      </td>

      <td>
        Receive currency is needed when transacting to a destination country that supports more than one currency for a [transactByReceiveAmount Request](https://developer.moneygram.com/moneygram-developer/docs/update-a-transaction#make-a-request) (ISO alpha-3 code)
      </td>
    </tr>

    <tr>
      <td>
        `promotionCodes`
      </td>

      <td>
        String (Optional)  
        Max length: 20
      </td>

      <td>
        Unique code to apply a promotional discount
      </td>
    </tr>
  </tbody>
</Table>

<br />

### Sender oneOf Options:

The sender <a href="<https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not"> target="\_blank""> "oneOf"</a> options allow the application to collect the business sender information for a transaction using one of three options <code>businessProfileId</code>, <code>partnerBusinessProfileId</code>, or <code>business</code>

<br />

### Option 1: `sender.businessProfileId`

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sender.businessProfileId`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        A unique MoneyGram identifier for the business.
      </td>
    </tr>
  </tbody>
</Table>

<br />

### Option 2: `sender.partnerBusinessProfileId`

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sender.partnerBusinessProfileId`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        The partner’s business profileId that will be passed from the partner and mapped to the MoneyGram business profile Id.
      </td>
    </tr>
  </tbody>
</Table>

<br />

### Option 3: `sender.business`

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sender.business.partnerBusinessProfileId`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Partners business profileId this will be passed from the partner and mapped to the MoneyGram profileId.
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.businessName`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 100
      </td>

      <td>
        Required
      </td>

      <td>
        Name of the business
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.legalEntityName`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 100
      </td>

      <td>
        Required
      </td>

      <td>
        The legal name of the business
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.businessType`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Type of business  
        (Enumerated Values)
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.businessRegistrationNumber`
      </td>

      <td>
        String
      </td>

      <td>
        Required
      </td>

      <td>
        Business registration number
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.businessIssueDate`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Date of business formation
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.businessCountryOfRegistration`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 20
      </td>

      <td>
        Required
      </td>

      <td>
        Business’s country of registration
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.line1`
      </td>

      <td>
        String  
        Min Length: 5  
        Max Length: 30
      </td>

      <td>
        Required
      </td>

      <td>
        Residence address line 1
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.line2`
      </td>

      <td>
        String  
        Min Length: 0  
        Max Length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Residence address line 2 (if applicable)
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.line3`
      </td>

      <td>
        String  
        Min Length: 0  
        Max Length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Residence address line 3 (if applicable)
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.city`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 20
      </td>

      <td>
        Required
      </td>

      <td>
        Business City
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.countryCode`
      </td>

      <td>
        String  
        Length: 3
      </td>

      <td>
        Required
      </td>

      <td>
        Country of residence (ISO Alpha-3 Code)
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.countrySubdivisionCode`
      </td>

      <td>
        String  
        Length: 6
      </td>

      <td>
        Optional
      </td>

      <td>
        State/province of business
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.address.postalCode`
      </td>

      <td>
        String  
        Min Length: 2  
        Max Length: 6
      </td>

      <td>
        Optional
      </td>

      <td>
        Postal code/ZIP of business
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.contactDetails.email`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 255
      </td>

      <td>
        Optional
      </td>

      <td>
        Email address
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.contactDetails.phone.number`
      </td>

      <td>
        String  
        Min Length: 5  
        Max Length: 14
      </td>

      <td>
        Optional
      </td>

      <td>
        Business phone number
      </td>
    </tr>

    <tr>
      <td>
        `sender.business.contactDetails.phone.countryDialCode`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 3
      </td>

      <td>
        Optional
      </td>

      <td>
        Country calling code  
        _Note: For country calling code see [Reference Data API Module /countries endpoint](https://developer.moneygram.com/moneygram-developer/docs/countries) `phoneDialCodes`_
      </td>
    </tr>
  </tbody>
</Table>

<br />

### Beneficiary oneOf Options:

<HTMLBlock>{`
<p>The beneficiary <a href=\"https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not\" target=\"_blank\"\">\"oneOf\"</a> options allow the application to collect the beneficiary information for a transaction using one of two different options <code>business</code>, or <code>consumer</code>.</p>
`}</HTMLBlock>

<br />

### Option 1: `beneficiary.consumer`

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `beneficiary.consumer.name.firstName`
      </td>

      <td>
        String  
        Min length: 1  
        Max length: 20
      </td>

      <td>
        Required
      </td>

      <td>
        First Name
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.name.middleName`
      </td>

      <td>
        String  
        Min length: 1  
        Max length: 20
      </td>

      <td>
        Optional
      </td>

      <td>
        Middle Name (if applicable)
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.name.lastName`
      </td>

      <td>
        String  
        Min length: 1  
        Max length: 30
      </td>

      <td>
        Required
      </td>

      <td>
        Last Name
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.name.secondLastName`
      </td>

      <td>
        String  
        Min length: 1  
        Max length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Second Last Name
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.line1`
      </td>

      <td>
        String  
        Min length: 5  
        Max length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Residence address line 1
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.line2`
      </td>

      <td>
        String  
        Min length: 0  
        Max length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Residence address line 2 (if applicable)
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.line3`
      </td>

      <td>
        String  
        Min length: 0  
        Max length: 30
      </td>

      <td>
        Optional
      </td>

      <td>
        Residence address line 3 (if applicable)
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.city`
      </td>

      <td>
        String  
        Min length: 0  
        Max length: 20
      </td>

      <td>
        Required
      </td>

      <td>
        City of residence
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.countrySubdivisionCode`
      </td>

      <td>
        String  
        Max Length: 6
      </td>

      <td>
        Optional
      </td>

      <td>
        State/province of residence.  
        _NOTE: For a full list of accepted countries and supported destination country subdivision codes see [Reference Data API Module: Retrieve Countries ISO3 endpoint](https://moneygram-group.readme.io/moneygram-developer/docs/countries-iso3-code)_
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.countryCode`
      </td>

      <td>
        String  
        Max length: 3
      </td>

      <td>
        Required
      </td>

      <td>
        Country of residence.  
        _NOTE: For a full list of accepted countries and supported destination country subdivision codes see [Reference Data API Module: Retrieve Countries ISO3 endpoint](https://moneygram-group.readme.io/moneygram-developer/docs/countries-iso3-code)_
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.address.postalCode`
      </td>

      <td>
        String  
        Min length: 2  
        Max length: 6
      </td>

      <td>
        Optional
      </td>

      <td>
        Postal code/ZIP of residence
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.mobilePhone.number`
      </td>

      <td>
        String  
        Min length: 5  
        Max length: 14
      </td>

      <td>
        Optional
      </td>

      <td>
        Phone number
      </td>
    </tr>

    <tr>
      <td>
        `beneficiary.consumer.mobilePhone.countryDialCode`
      </td>

      <td>
        String  
        Min length: 1  
        Max length: 5
      </td>

      <td>
        Optional
      </td>

      <td>
        Country calling code (ISO alpha-3 code)
      </td>
    </tr>
  </tbody>
</Table>

<br />

### Attachments

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `attachments.name`
      </td>

      <td>
        String  
        Min Length: 1  
        Max Length: 100
      </td>

      <td>
        Optional
      </td>

      <td>
        Name of the attachment
      </td>
    </tr>

    <tr>
      <td>
        `attachments.type`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Type of attachment (Enumerated Values)

        * invoice, purchase_order
        * delivery_slip
        * contract, customs_declaration
        * bill_of_landing
        * bank_statement
        * tax_return
        * financial_statement
        * loan_agreement
        * grant_approval
      </td>
    </tr>

    <tr>
      <td>
        `attachments.typeCategory`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Category of the attachment (Enumerated Values)

        * purposeOfTransaction
        * sourceOfFunds
        * proofOfFund
        * proofOfAddress
      </td>
    </tr>

    <tr>
      <td>
        `attachments.file`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        The file to be uploaded
      </td>
    </tr>
  </tbody>
</Table>

<br />

<br />

### Additional Details

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `additionalDetails`
      </td>

      <td>
        Dynamic
      </td>

      <td>
        Optional
      </td>

      <td>
        Dynamic field key/values for the transaction
      </td>
    </tr>
  </tbody>
</Table>

<br />

***

<br />

## Response Fields

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Required  
        /Optional
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `transactionId`
      </td>

      <td>
        String  
        Max length: 36
      </td>

      <td>
        Optional
      </td>

      <td>
        Unique identifiers for the transaction resource
      </td>
    </tr>

    <tr>
      <td>
        `partnerTransactionId`
      </td>

      <td>
        String
      </td>

      <td>
        Optional
      </td>

      <td>
        Partners Unique identifier for the transaction resource
      </td>
    </tr>
  </tbody>
</Table>